PrimitiveManager#
- class ansys.stk.core.graphics.PrimitiveManager#
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.
Overview#
Add a primitive to the manager. Primitives must be added to the manager to be rendered. |
|
Remove all primitives from the manager. |
|
Determine whether the manager contains a primitive. |
|
Remove a primitive from the manager. The primitive is no longer rendered unless it is added back into the manager. |
Return an enumerator that iterates through the collection. The order of the primitives is not guaranteed to be the order that the primitives were added. |
|
Get the number of primitives in the manager. |
|
Get or set the sort order for translucent primitives in the primitive manager. This determines a trade-off between rendering speed and quality⦠|
Import detail#
from ansys.stk.core.graphics import PrimitiveManager
Property detail#
- property PrimitiveManager._new_enum: EnumeratorProxy#
Return an enumerator that iterates through the collection. The order of the primitives is not guaranteed to be the order that the primitives were added.
- property PrimitiveManager.translucent_primitives_sort_order: PrimitivesSortOrder#
Get or set the sort order for translucent primitives in the primitive manager. This determines a trade-off between rendering speed and qualityβ¦
Method detail#
- PrimitiveManager.add(self, primitive: IPrimitive) None #
Add a primitive to the manager. Primitives must be added to the manager to be rendered.
- Parameters:
primitive :
IPrimitive
- Returns:
- PrimitiveManager.contains(self, primitive: IPrimitive) bool #
Determine whether the manager contains a primitive.
- Parameters:
primitive :
IPrimitive
- Returns:
- PrimitiveManager.remove(self, primitive: IPrimitive) None #
Remove a primitive from the manager. The primitive is no longer rendered unless it is added back into the manager.
- Parameters:
primitive :
IPrimitive
- Returns: