Skip to content

Commit

Permalink
Merge pull request #171 from AnalyticalGraphicsInc/showThroughEllipsoid
Browse files Browse the repository at this point in the history
Add `showThroughEllipsoid` to sensors.
  • Loading branch information
shunter authored Feb 3, 2020
2 parents a1da648 + 9d064ce commit 9415f9b
Show file tree
Hide file tree
Showing 82 changed files with 3,426 additions and 1,198 deletions.
87 changes: 87 additions & 0 deletions DotNet/CesiumLanguageWriter/Generated/ConicSensorCesiumWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ public class ConicSensorCesiumWriter : CesiumPropertyWriter<ConicSensorCesiumWri
/// </summary>
public const string EnvironmentIntersectionWidthPropertyName = "environmentIntersectionWidth";

/// <summary>
/// The name of the <c>showThroughEllipsoid</c> property.
/// </summary>
public const string ShowThroughEllipsoidPropertyName = "showThroughEllipsoid";

private readonly Lazy<BooleanCesiumWriter> m_show = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowPropertyName), false);
private readonly Lazy<DoubleCesiumWriter> m_innerHalfAngle = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(InnerHalfAnglePropertyName), false);
private readonly Lazy<DoubleCesiumWriter> m_outerHalfAngle = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(OuterHalfAnglePropertyName), false);
Expand All @@ -160,6 +165,7 @@ public class ConicSensorCesiumWriter : CesiumPropertyWriter<ConicSensorCesiumWri
private readonly Lazy<BooleanCesiumWriter> m_showEnvironmentIntersection = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowEnvironmentIntersectionPropertyName), false);
private readonly Lazy<ColorCesiumWriter> m_environmentIntersectionColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(EnvironmentIntersectionColorPropertyName), false);
private readonly Lazy<DoubleCesiumWriter> m_environmentIntersectionWidth = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(EnvironmentIntersectionWidthPropertyName), false);
private readonly Lazy<BooleanCesiumWriter> m_showThroughEllipsoid = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowThroughEllipsoidPropertyName), false);

/// <summary>
/// Initializes a new instance.
Expand Down Expand Up @@ -2211,5 +2217,86 @@ public void WriteEnvironmentIntersectionWidthPropertyReference(string identifier
}
}

/// <summary>
/// Gets the writer for the <c>showThroughEllipsoid</c> property. The returned instance must be opened by calling the <see cref="CesiumElementWriter.Open"/> method before it can be used for writing. The <c>showThroughEllipsoid</c> property defines whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
[NotNull]
public BooleanCesiumWriter ShowThroughEllipsoidWriter
{
get { return m_showThroughEllipsoid.Value; }
}

/// <summary>
/// Opens and returns the writer for the <c>showThroughEllipsoid</c> property. The <c>showThroughEllipsoid</c> property defines whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
[NotNull]
public BooleanCesiumWriter OpenShowThroughEllipsoidProperty()
{
OpenIntervalIfNecessary();
return OpenAndReturn(ShowThroughEllipsoidWriter);
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>boolean</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="value">The value.</param>
public void WriteShowThroughEllipsoidProperty(bool value)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteBoolean(value);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="value">The reference.</param>
public void WriteShowThroughEllipsoidPropertyReference(Reference value)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(value);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="value">The reference.</param>
public void WriteShowThroughEllipsoidPropertyReference(string value)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(value);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="identifier">The identifier of the object which contains the referenced property.</param>
/// <param name="propertyName">The property on the referenced object.</param>
public void WriteShowThroughEllipsoidPropertyReference(string identifier, string propertyName)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(identifier, propertyName);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="identifier">The identifier of the object which contains the referenced property.</param>
/// <param name="propertyNames">The hierarchy of properties to be indexed on the referenced object.</param>
public void WriteShowThroughEllipsoidPropertyReference(string identifier, string[] propertyNames)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(identifier, propertyNames);
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ public class CustomPatternSensorCesiumWriter : CesiumPropertyWriter<CustomPatter
/// </summary>
public const string EnvironmentIntersectionWidthPropertyName = "environmentIntersectionWidth";

/// <summary>
/// The name of the <c>showThroughEllipsoid</c> property.
/// </summary>
public const string ShowThroughEllipsoidPropertyName = "showThroughEllipsoid";

private readonly Lazy<BooleanCesiumWriter> m_show = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowPropertyName), false);
private readonly Lazy<DirectionListCesiumWriter> m_directions = new Lazy<DirectionListCesiumWriter>(() => new DirectionListCesiumWriter(DirectionsPropertyName), false);
private readonly Lazy<DoubleCesiumWriter> m_radius = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(RadiusPropertyName), false);
Expand All @@ -142,6 +147,7 @@ public class CustomPatternSensorCesiumWriter : CesiumPropertyWriter<CustomPatter
private readonly Lazy<BooleanCesiumWriter> m_showEnvironmentIntersection = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowEnvironmentIntersectionPropertyName), false);
private readonly Lazy<ColorCesiumWriter> m_environmentIntersectionColor = new Lazy<ColorCesiumWriter>(() => new ColorCesiumWriter(EnvironmentIntersectionColorPropertyName), false);
private readonly Lazy<DoubleCesiumWriter> m_environmentIntersectionWidth = new Lazy<DoubleCesiumWriter>(() => new DoubleCesiumWriter(EnvironmentIntersectionWidthPropertyName), false);
private readonly Lazy<BooleanCesiumWriter> m_showThroughEllipsoid = new Lazy<BooleanCesiumWriter>(() => new BooleanCesiumWriter(ShowThroughEllipsoidPropertyName), false);

/// <summary>
/// Initializes a new instance.
Expand Down Expand Up @@ -1824,5 +1830,86 @@ public void WriteEnvironmentIntersectionWidthPropertyReference(string identifier
}
}

/// <summary>
/// Gets the writer for the <c>showThroughEllipsoid</c> property. The returned instance must be opened by calling the <see cref="CesiumElementWriter.Open"/> method before it can be used for writing. The <c>showThroughEllipsoid</c> property defines whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
[NotNull]
public BooleanCesiumWriter ShowThroughEllipsoidWriter
{
get { return m_showThroughEllipsoid.Value; }
}

/// <summary>
/// Opens and returns the writer for the <c>showThroughEllipsoid</c> property. The <c>showThroughEllipsoid</c> property defines whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
[NotNull]
public BooleanCesiumWriter OpenShowThroughEllipsoidProperty()
{
OpenIntervalIfNecessary();
return OpenAndReturn(ShowThroughEllipsoidWriter);
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>boolean</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="value">The value.</param>
public void WriteShowThroughEllipsoidProperty(bool value)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteBoolean(value);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="value">The reference.</param>
public void WriteShowThroughEllipsoidPropertyReference(Reference value)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(value);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="value">The reference.</param>
public void WriteShowThroughEllipsoidPropertyReference(string value)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(value);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="identifier">The identifier of the object which contains the referenced property.</param>
/// <param name="propertyName">The property on the referenced object.</param>
public void WriteShowThroughEllipsoidPropertyReference(string identifier, string propertyName)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(identifier, propertyName);
}
}

/// <summary>
/// Writes a value for the <c>showThroughEllipsoid</c> property as a <c>reference</c> value. The <c>showThroughEllipsoid</c> property specifies whether or not a sensor intersecting the ellipsoid is drawn through the ellipsoid and potentially out to the other side. If not specified, the default value is <see langword="false"/>.
/// </summary>
/// <param name="identifier">The identifier of the object which contains the referenced property.</param>
/// <param name="propertyNames">The hierarchy of properties to be indexed on the referenced object.</param>
public void WriteShowThroughEllipsoidPropertyReference(string identifier, string[] propertyNames)
{
using (var writer = OpenShowThroughEllipsoidProperty())
{
writer.WriteReference(identifier, propertyNames);
}
}

}
}
Loading

0 comments on commit 9415f9b

Please sign in to comment.