Click or drag to resize

DistanceToPositionDisplayCondition Class

Defines an inclusive distance interval, in meters, that determines when an object, such as a primitive, is rendered based on the distance, in meters, from the camera to a position defined in the given ReferenceFrame.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsDisplayCondition
    AGI.Foundation.GraphicsDistanceToPositionDisplayCondition

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public sealed class DistanceToPositionDisplayCondition : DisplayCondition

The DistanceToPositionDisplayCondition type exposes the following members.

Constructors
  NameDescription
Public methodDistanceToPositionDisplayCondition
Initializes a default distance to position display condition. With this constructor, an object is always rendered regardless of the camera's distance to the Position.
Public methodDistanceToPositionDisplayCondition(Cartesian, Double, Double)
Initializes a distance display condition with the inclusive distance interval [minimumDistance, maximumDistance]. When this display condition is assigned to an object, such as a primitive, the object is only rendered when the distance, in meters, from the camera to the position is within the interval.
Public methodDistanceToPositionDisplayCondition(ReferenceFrame, Cartesian, Double, Double)
Initializes a distance display condition with the inclusive distance interval [minimumDistance, maximumDistance]. When this display condition is assigned to an object, such as a primitive, the object is only rendered when the distance, in meters, from the camera to the position is within the interval.
Top
Properties
  NameDescription
Public propertyMaximumDistance
Gets or sets the maximum distance, in meters, of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.
Public propertyMaximumDistanceSquared
Gets the squared maximum distance, in meters, of the inclusive distance interval.
Public propertyMinimumDistance
Gets or sets the minimum distance, in meters, of the inclusive distance interval.
Public propertyMinimumDistanceSquared
Gets the squared minimum distance, in meters, of the inclusive distance interval.
Public propertyPosition
Gets or sets the position used to compute the distance from the camera.
Public propertyReferenceFrame
Gets or sets the reference frame that Position is defined in.
Top
Methods
  NameDescription
Public methodDispose (Inherited from DisplayCondition.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also