Click or drag to resize

PixelSizeDisplayCondition Class

Defines an inclusive interval, in pixels, that determines when an object, such as a primitive, is rendered based on the number of pixels the object's bounding sphere (or in the case of screen overlays, bounding rectangle) covers on the screen. This is commonly used to implement level of detail algorithms that take into account the field of view.
Inheritance Hierarchy

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
public sealed class PixelSizeDisplayCondition : DisplayCondition

The PixelSizeDisplayCondition type exposes the following members.

Public methodPixelSizeDisplayCondition
Initializes a default pixel size display condition. MinimumPixelSize is set to 0 and MaximumPixelSize is set to Int32.MaxValue. With this interval, an object is always rendered regardless of how many pixels its bounding sphere or rectangle covers.
Public methodPixelSizeDisplayCondition(Int32, Int32)
Initializes a pixel size display condition with the inclusive interval [minimumPixelSize, maximumPixelSize]. When this display condition is assigned to an object, such as a primitive, the object is only rendered when the number of pixels consumed by the object's bounding sphere, projected onto the screen, (or in the case of screen overlays, the area of its bounding rectangle) is within the interval.
Public propertyMaximumPixelSize
Gets or sets the maximum pixel size of the inclusive distance interval. Use Int32.MaxValue to ignore checking the maximum distance.
Public propertyMinimumPixelSize
Gets or sets the minimum pixel size of the inclusive distance interval.
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.)
See Also