Click or drag to resize

DistanceDisplayCondition 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 the object.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsDisplayCondition
    AGI.Foundation.GraphicsDistanceDisplayCondition

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 DistanceDisplayCondition : DisplayCondition

The DistanceDisplayCondition type exposes the following members.

Constructors
  NameDescription
Public methodDistanceDisplayCondition
Initializes a default distance display condition. MinimumDistance is set to 0 and MaximumDistance is set to Double.MaxValue. With this interval, an object is always rendered regardless of its distance to the camera.
Public methodDistanceDisplayCondition(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 object 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.
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