Skip to content

Commit

Permalink
Merge pull request #168 from AnalyticalGraphicsInc/polygonHoles
Browse files Browse the repository at this point in the history
Add polygon holes
  • Loading branch information
shunter authored Jul 11, 2019
2 parents 74f2247 + f499984 commit 549ef38
Show file tree
Hide file tree
Showing 78 changed files with 2,691 additions and 165 deletions.
11 changes: 10 additions & 1 deletion DotNet/CesiumLanguageWriter.sln
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Schema", "Schema", "{04E49F
..\Schema\PolylineOutlineMaterial.json = ..\Schema\PolylineOutlineMaterial.json
..\Schema\Position.json = ..\Schema\Position.json
..\Schema\PositionList.json = ..\Schema\PositionList.json
..\Schema\PositionListOfLists.json = ..\Schema\PositionListOfLists.json
..\Schema\Rectangle.json = ..\Schema\Rectangle.json
..\Schema\RectangleCoordinates.json = ..\Schema\RectangleCoordinates.json
..\Schema\Repeat.json = ..\Schema\Repeat.json
Expand All @@ -95,6 +96,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GenerateFromSchema", "Gener
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{5E4C0F36-35DC-4ED8-91EC-EAAC109836A0}"
ProjectSection(SolutionItems) = preProject
..\Schema\Examples\Articulations.json = ..\Schema\Examples\Articulations.json
..\Schema\Examples\Billboard.json = ..\Schema\Examples\Billboard.json
..\Schema\Examples\BoundingRectangleValue.json = ..\Schema\Examples\BoundingRectangleValue.json
..\Schema\Examples\BoundingRectangleValueSamples.json = ..\Schema\Examples\BoundingRectangleValueSamples.json
Expand All @@ -109,7 +111,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Examples", "Examples", "{5E
..\Schema\Examples\DistanceDisplayConditionValue.json = ..\Schema\Examples\DistanceDisplayConditionValue.json
..\Schema\Examples\DistanceDisplayConditionValueSamples.json = ..\Schema\Examples\DistanceDisplayConditionValueSamples.json
..\Schema\Examples\DocumentPacket.json = ..\Schema\Examples\DocumentPacket.json
..\Schema\Examples\Articulations.json = ..\Schema\Examples\Articulations.json
..\Schema\Examples\ModelArticulations.json = ..\Schema\Examples\ModelArticulations.json
..\Schema\Examples\ModelNodeTransformations.json = ..\Schema\Examples\ModelNodeTransformations.json
..\Schema\Examples\NearFarScalarValue.json = ..\Schema\Examples\NearFarScalarValue.json
Expand Down Expand Up @@ -163,11 +164,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ValueProperties", "ValuePro
..\Schema\ValueProperties\BooleanValueProperty.json = ..\Schema\ValueProperties\BooleanValueProperty.json
..\Schema\ValueProperties\BoundingRectangleValueProperty.json = ..\Schema\ValueProperties\BoundingRectangleValueProperty.json
..\Schema\ValueProperties\Cartesian2ValueProperty.json = ..\Schema\ValueProperties\Cartesian2ValueProperty.json
..\Schema\ValueProperties\Cartesian3ListOfListsValueProperty.json = ..\Schema\ValueProperties\Cartesian3ListOfListsValueProperty.json
..\Schema\ValueProperties\Cartesian3ListValueProperty.json = ..\Schema\ValueProperties\Cartesian3ListValueProperty.json
..\Schema\ValueProperties\Cartesian3ValueProperty.json = ..\Schema\ValueProperties\Cartesian3ValueProperty.json
..\Schema\ValueProperties\Cartesian3VelocityValueProperty.json = ..\Schema\ValueProperties\Cartesian3VelocityValueProperty.json
..\Schema\ValueProperties\CartographicDegreesListOfListsValueProperty.json = ..\Schema\ValueProperties\CartographicDegreesListOfListsValueProperty.json
..\Schema\ValueProperties\CartographicDegreesListValueProperty.json = ..\Schema\ValueProperties\CartographicDegreesListValueProperty.json
..\Schema\ValueProperties\CartographicDegreesValueProperty.json = ..\Schema\ValueProperties\CartographicDegreesValueProperty.json
..\Schema\ValueProperties\CartographicRadiansListOfListsValueProperty.json = ..\Schema\ValueProperties\CartographicRadiansListOfListsValueProperty.json
..\Schema\ValueProperties\CartographicRadiansListValueProperty.json = ..\Schema\ValueProperties\CartographicRadiansListValueProperty.json
..\Schema\ValueProperties\CartographicRadiansValueProperty.json = ..\Schema\ValueProperties\CartographicRadiansValueProperty.json
..\Schema\ValueProperties\CartographicRectangleDegreesValueProperty.json = ..\Schema\ValueProperties\CartographicRectangleDegreesValueProperty.json
Expand All @@ -184,6 +188,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "ValueProperties", "ValuePro
..\Schema\ValueProperties\IntegerValueProperty.json = ..\Schema\ValueProperties\IntegerValueProperty.json
..\Schema\ValueProperties\LabelStyleValueProperty.json = ..\Schema\ValueProperties\LabelStyleValueProperty.json
..\Schema\ValueProperties\NearFarScalarValueProperty.json = ..\Schema\ValueProperties\NearFarScalarValueProperty.json
..\Schema\ValueProperties\ReferenceListOfListsValueProperty.json = ..\Schema\ValueProperties\ReferenceListOfListsValueProperty.json
..\Schema\ValueProperties\ReferenceListValueProperty.json = ..\Schema\ValueProperties\ReferenceListValueProperty.json
..\Schema\ValueProperties\ReferenceValueProperty.json = ..\Schema\ValueProperties\ReferenceValueProperty.json
..\Schema\ValueProperties\RgbafValueProperty.json = ..\Schema\ValueProperties\RgbafValueProperty.json
Expand All @@ -209,11 +214,14 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Values", "Values", "{A9C205
..\Schema\Values\BooleanValue.json = ..\Schema\Values\BooleanValue.json
..\Schema\Values\BoundingRectangleValue.json = ..\Schema\Values\BoundingRectangleValue.json
..\Schema\Values\Cartesian2Value.json = ..\Schema\Values\Cartesian2Value.json
..\Schema\Values\Cartesian3ListOfListsValue.json = ..\Schema\Values\Cartesian3ListOfListsValue.json
..\Schema\Values\Cartesian3ListValue.json = ..\Schema\Values\Cartesian3ListValue.json
..\Schema\Values\Cartesian3Value.json = ..\Schema\Values\Cartesian3Value.json
..\Schema\Values\Cartesian3VelocityValue.json = ..\Schema\Values\Cartesian3VelocityValue.json
..\Schema\Values\CartographicDegreesListOfListsValue.json = ..\Schema\Values\CartographicDegreesListOfListsValue.json
..\Schema\Values\CartographicDegreesListValue.json = ..\Schema\Values\CartographicDegreesListValue.json
..\Schema\Values\CartographicDegreesValue.json = ..\Schema\Values\CartographicDegreesValue.json
..\Schema\Values\CartographicRadiansListOfListsValue.json = ..\Schema\Values\CartographicRadiansListOfListsValue.json
..\Schema\Values\CartographicRadiansListValue.json = ..\Schema\Values\CartographicRadiansListValue.json
..\Schema\Values\CartographicRadiansValue.json = ..\Schema\Values\CartographicRadiansValue.json
..\Schema\Values\CartographicRectangleDegreesValue.json = ..\Schema\Values\CartographicRectangleDegreesValue.json
Expand All @@ -232,6 +240,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Values", "Values", "{A9C205
..\Schema\Values\IntegerValue.json = ..\Schema\Values\IntegerValue.json
..\Schema\Values\LabelStyleValue.json = ..\Schema\Values\LabelStyleValue.json
..\Schema\Values\NearFarScalarValue.json = ..\Schema\Values\NearFarScalarValue.json
..\Schema\Values\ReferenceListOfListsValue.json = ..\Schema\Values\ReferenceListOfListsValue.json
..\Schema\Values\ReferenceListValue.json = ..\Schema\Values\ReferenceListValue.json
..\Schema\Values\ReferenceValue.json = ..\Schema\Values\ReferenceValue.json
..\Schema\Values\RgbafValue.json = ..\Schema\Values\RgbafValue.json
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections.Generic;
using JetBrains.Annotations;

namespace CesiumLanguageWriter.Advanced
{
/// <summary>
/// Adapts a class that implements <see cref="ICesiumCartesian3ListOfListsValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of lists of <see cref="Cartesian"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumCartesian3ListOfListsValuePropertyWriter"/> to adapt.</typeparam>
[CSToJavaUseWildcardGenerics]
public class CesiumCartesian3ListOfListsValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<IEnumerable<Cartesian>>>
where TFrom : class, ICesiumCartesian3ListOfListsValuePropertyWriter
{
/// <summary>
/// Initializes a new instance.
/// </summary>
/// <param name="parent">The instance to wrap.</param>
/// <param name="writeValueCallback">The callback to write a list of lists of <see cref="Cartesian"/> values.</param>
/// <param name="writeDeleteValueCallback">The callback to write an indication that the client should delete existing data.</param>
public CesiumCartesian3ListOfListsValuePropertyAdaptor([NotNull] TFrom parent,
[NotNull] CesiumWriterAdaptorWriteCallback<TFrom, IEnumerable<IEnumerable<Cartesian>>> writeValueCallback,
[NotNull] CesiumWriterAdaptorWriteDeleteCallback<TFrom> writeDeleteValueCallback)
: base(parent, writeValueCallback, writeDeleteValueCallback)
{
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections.Generic;
using JetBrains.Annotations;

namespace CesiumLanguageWriter.Advanced
{
/// <summary>
/// Adapts a class that implements <see cref="ICesiumCartographicDegreesListOfListsValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of lists of <see cref="Cartographic"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumCartographicDegreesListOfListsValuePropertyWriter"/> to adapt.</typeparam>
[CSToJavaUseWildcardGenerics]
public class CesiumCartographicDegreesListOfListsValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<IEnumerable<Cartographic>>>
where TFrom : class, ICesiumCartographicDegreesListOfListsValuePropertyWriter
{
/// <summary>
/// Initializes a new instance.
/// </summary>
/// <param name="parent">The instance to wrap.</param>
/// <param name="writeValueCallback">The callback to write a list of lists of <see cref="Cartographic"/> values.</param>
/// <param name="writeDeleteValueCallback">The callback to write an indication that the client should delete existing data.</param>
public CesiumCartographicDegreesListOfListsValuePropertyAdaptor([NotNull] TFrom parent,
[NotNull] CesiumWriterAdaptorWriteCallback<TFrom, IEnumerable<IEnumerable<Cartographic>>> writeValueCallback,
[NotNull] CesiumWriterAdaptorWriteDeleteCallback<TFrom> writeDeleteValueCallback)
: base(parent, writeValueCallback, writeDeleteValueCallback)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CesiumLanguageWriter.Advanced
/// Adapts a class that implements <see cref="ICesiumCartographicDegreesListValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of <see cref="Cartographic"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumCartographicDegreesValuePropertyWriter"/> to adapt.</typeparam>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumCartographicDegreesListValuePropertyWriter"/> to adapt.</typeparam>
public class CesiumCartographicDegreesListValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<Cartographic>>
where TFrom : class, ICesiumCartographicDegreesListValuePropertyWriter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections.Generic;
using JetBrains.Annotations;

namespace CesiumLanguageWriter.Advanced
{
/// <summary>
/// Adapts a class that implements <see cref="ICesiumCartographicRadiansListOfListsValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of lists of <see cref="Cartographic"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumCartographicRadiansListOfListsValuePropertyWriter"/> to adapt.</typeparam>
[CSToJavaUseWildcardGenerics]
public class CesiumCartographicRadiansListOfListsValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<IEnumerable<Cartographic>>>
where TFrom : class, ICesiumCartographicRadiansListOfListsValuePropertyWriter
{
/// <summary>
/// Initializes a new instance.
/// </summary>
/// <param name="parent">The instance to wrap.</param>
/// <param name="writeValueCallback">The callback to write a list of lists of <see cref="Cartographic"/> values.</param>
/// <param name="writeDeleteValueCallback">The callback to write an indication that the client should delete existing data.</param>
public CesiumCartographicRadiansListOfListsValuePropertyAdaptor([NotNull] TFrom parent,
[NotNull] CesiumWriterAdaptorWriteCallback<TFrom, IEnumerable<IEnumerable<Cartographic>>> writeValueCallback,
[NotNull] CesiumWriterAdaptorWriteDeleteCallback<TFrom> writeDeleteValueCallback)
: base(parent, writeValueCallback, writeDeleteValueCallback)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CesiumLanguageWriter.Advanced
/// Adapts a class that implements <see cref="ICesiumCartographicRadiansListValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of <see cref="Cartographic"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumCartographicRadiansValuePropertyWriter"/> to adapt.</typeparam>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumCartographicRadiansListValuePropertyWriter"/> to adapt.</typeparam>
public class CesiumCartographicRadiansListValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<Cartographic>>
where TFrom : class, ICesiumCartographicRadiansListValuePropertyWriter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CesiumLanguageWriter.Advanced
/// Adapts a class that implements <see cref="ICesiumDoubleListValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of <see cref="double"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumDoubleValuePropertyWriter"/> to adapt.</typeparam>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumDoubleListValuePropertyWriter"/> to adapt.</typeparam>
public class CesiumDoubleListValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<double>>
where TFrom : class, ICesiumDoubleListValuePropertyWriter
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System.Collections.Generic;
using JetBrains.Annotations;

namespace CesiumLanguageWriter.Advanced
{
/// <summary>
/// Adapts a class that implements <see cref="ICesiumReferenceListOfListsValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of lists of <see cref="Reference"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumReferenceListOfListsValuePropertyWriter"/> to adapt.</typeparam>
[CSToJavaUseWildcardGenerics]
public class CesiumReferenceListOfListsValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<IEnumerable<Reference>>>
where TFrom : class, ICesiumReferenceListOfListsValuePropertyWriter
{
/// <summary>
/// Initializes a new instance.
/// </summary>
/// <param name="parent">The instance to wrap.</param>
/// <param name="writeValueCallback">The callback to write a list of lists of <see cref="Reference"/> values.</param>
/// <param name="writeDeleteValueCallback">The callback to write an indication that the client should delete existing data.</param>
public CesiumReferenceListOfListsValuePropertyAdaptor([NotNull] TFrom parent,
[NotNull] CesiumWriterAdaptorWriteCallback<TFrom, IEnumerable<IEnumerable<Reference>>> writeValueCallback,
[NotNull] CesiumWriterAdaptorWriteDeleteCallback<TFrom> writeDeleteValueCallback)
: base(parent, writeValueCallback, writeDeleteValueCallback)
{
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CesiumLanguageWriter.Advanced
/// Adapts a class that implements <see cref="ICesiumReferenceListValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of <see cref="Reference"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumReferenceValuePropertyWriter"/> to adapt.</typeparam>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumReferenceListValuePropertyWriter"/> to adapt.</typeparam>
public class CesiumReferenceListValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<Reference>>
where TFrom : class, ICesiumReferenceListValuePropertyWriter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CesiumLanguageWriter.Advanced
/// Adapts a class that implements <see cref="ICesiumSphericalListValuePropertyWriter"/> to implement
/// <see cref="ICesiumPropertyWriter"/> for a list of <see cref="Spherical"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumSphericalValuePropertyWriter"/> to adapt.</typeparam>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumSphericalListValuePropertyWriter"/> to adapt.</typeparam>
public class CesiumSphericalListValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<Spherical>>
where TFrom : class, ICesiumSphericalListValuePropertyWriter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace CesiumLanguageWriter.Advanced
/// Adapts a class that implements <see cref="ICesiumUnitSphericalListValuePropertyWriter"/> to implement
/// <see cref="ICesiumInterpolatableValuePropertyWriter{TValue}"/> for a list of <see cref="UnitSpherical"/> values.
/// </summary>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumUnitSphericalValuePropertyWriter"/> to adapt.</typeparam>
/// <typeparam name="TFrom">The class that implements <see cref="ICesiumUnitSphericalListValuePropertyWriter"/> to adapt.</typeparam>
public class CesiumUnitSphericalListValuePropertyAdaptor<TFrom> : CesiumWriterAdaptor<TFrom, IEnumerable<UnitSpherical>>
where TFrom : class, ICesiumUnitSphericalListValuePropertyWriter
{
Expand Down
Loading

0 comments on commit 549ef38

Please sign in to comment.