Click or drag to resize

DistanceToPrimitiveDisplayCondition Class

Defines an inclusive distance interval, in meters, that determines when an object, such as a screen overlay, is rendered based on the distance, in meters, from the camera to the Primitive. This is different from DistanceDisplayCondition because it is based on the camera's distance to a specified Primitive, rather than the camera's distance to the object that uses this display condition.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsDisplayCondition
    AGI.Foundation.GraphicsDistanceToPrimitiveDisplayCondition

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

The DistanceToPrimitiveDisplayCondition type exposes the following members.

Constructors
  NameDescription
Public methodDistanceToPrimitiveDisplayCondition
Initializes a default distance to primitive display condition. With this constructor, an object is always rendered regardless of the camera's distance to the Primitive.
Public methodDistanceToPrimitiveDisplayCondition(Primitive, Double, Double)
Initializes a distance to primitive display condition with the inclusive distance interval [minimumDistance, maximumDistance]. When this display condition is assigned to an object, such as a screen overlay, the object is only rendered when the distance, in meters, from the camera to the Primitive, 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 propertyPrimitive
Gets or sets the primitive associated with this instance.
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