A primitive that is composed of multiple other primitives. Since composites can contain other composites, they are commonly used to build hierarchies of primitives to efficiently evaluate display conditions.
Primitives in a composite must have the same ReferenceFrame.
public sealed class CompositePrimitive : Primitive, IEnumerable<Primitive>
Public NotInheritable Class CompositePrimitive Inherits Primitive Implements IEnumerable(Of Primitive)
public ref class CompositePrimitive sealed : public Primitive, IEnumerable<Primitive^>
[<SealedAttribute>] type CompositePrimitive = class inherit Primitive interface IEnumerable<Primitive> end
The CompositePrimitive type exposes the following members.
Initializes a default composite primitive.
Gets or sets if the primitive's BoundingSphere is automatically computed.(Inherited from Primitive.)
Gets or sets the bounding sphere that encompasses the primitive. The center is defined in the primitive's ReferenceFrame.(Overrides PrimitiveBoundingSphere.)
The composite primitive does not support the color property.(Overrides PrimitiveColor.)
Gets the number of primitives in the composite.
Gets or sets if the primitive should be rendered. Both this and DisplayCondition must evaluate to true for the primitive to be rendered.(Inherited from Primitive.)
Gets or sets the composite's display condition. During rendering, first a composite's display condition is evaluated. If it succeeds, the display condition for each primitive in the composite is evaluated.
Gets or sets the reference frame this primitive is defined and rendered in.(Overrides PrimitiveReferenceFrame.)
Gets or sets custom data associated with this primitive.(Inherited from Primitive.)
The composite primitive does not support the translucency property.(Overrides PrimitiveTranslucency.)
Gets or sets the sort order for translucent primitives in this composite. 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.
Adds a primitive to the composite.
Removes all primitives from the composite.
Determines whether the composite contains a primitive.
|Dispose||(Inherited from Primitive.)|
Determines whether the specified object is equal to the current object.(Inherited from Object.)
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.
Serves as the default hash function.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Removes a primitive from the composite.
Returns a string that represents the current object.(Inherited from Object.)