Click or drag to resize

PrimitiveManager Class

The primitive manager contains spatial data structures used to efficiently render primitives. Once a primitive is constructed, it must be added to the primitive manager before it will be rendered.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.GraphicsPrimitiveManager

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.1.418.0 (24.1.418.0)
Syntax
public sealed class PrimitiveManager : IEnumerable<Primitive>, 
	IDisposable

The PrimitiveManager type exposes the following members.

Properties
  NameDescription
Public propertyCount
Gets the number of primitives in the manager.
Public propertyPrecisionExponent Obsolete.
Gets or sets the exponent used to compute the maximum precision for primitive rendering. For example, a value of -3 indicates the maximum precision of 2^-3, 0.125 m along the x, y, or z axis. The worst case precision, taking into account all axes, is sqrt(3 * (2^-3)^2), 0.2165 m. The default is -2.
Public propertyTranslucentPrimitivesSortOrder
Gets or sets the sort order for translucent primitives in the primitive manager. This determines a trade-off between rendering speed and quality. It is only recommended to use PrimitivesSortOrderBackToFront when translucent primitives along the same line of sight cause blending artifacts.
Top
Methods
  NameDescription
Public methodAdd
Adds a primitive to the manager. Primitives must be added to the manager to be rendered.
Public methodClear
Removes all primitives from the manager.
Public methodContains
Determines whether the manager contains a primitive.
Public methodDispose
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetEnumerator
Returns an enumerator that iterates through the collection. The order of the primitives is not guaranteed to be the order that the primitives were added.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodRemove
Removes a primitive from the manager. The primitive is no longer rendered unless it is added back into the manager.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also