PathPrimitive#
- class ansys.stk.core.graphics.PathPrimitive#
Bases:
IPrimitive
Render a line to the 3D scene. Similar to the polyline primitive; however, the PathPrimitive was designed for the efficient addition/removal of points to/from the front or back of the line.
Overview#
Return the point at the given zero-based index. |
|
Add a path point to the front of the line. |
|
Add the range of path points to the front of the line. |
|
Add a path point to the back of the line. |
|
Add the range of path points to the back of the line. |
|
Remove a path point to the front of the line. |
|
Remove all points before index. |
|
Remove a path point to the back of the line. |
|
Remove all points after index. |
|
Access the path point at the front of the line. |
|
Access the path point at the back of the line. |
|
Remove all of the points. |
Return the number of points. |
|
Return the capacity that was set during object construction. The capacity is the amount of memory reserved for storing the points on the path. This will be automatically updated when adding/removing points. |
|
Get or set how the primitive will be updated based on the current animation time. |
|
Get or set how the primitive interprets the positions. |
|
Get or set the line width, in pixels. |
|
Get the minimum width, in pixels, supported by the video card. |
|
Get the maximum width, in pixels, supported by the video card. |
|
Get or set whether an outline is rendered around the line. |
|
Get or set the width, in pixels, of the outline around the line. |
|
Get or set whether individual line indices will be included in the pick results returned from the sceneβs Pick method. Each line index that is picked will be returned as a batch primitive index. |
|
Return an enumerator that iterates through the collection. |
|
Get or set whether the polyline will be clipped by the central body. |
Import detail#
from ansys.stk.core.graphics import PathPrimitive
Property detail#
- property PathPrimitive.capacity: int#
Return the capacity that was set during object construction. The capacity is the amount of memory reserved for storing the points on the path. This will be automatically updated when adding/removing points.
- property PathPrimitive.update_policy: IPathPrimitiveUpdatePolicy#
Get or set how the primitive will be updated based on the current animation time.
- property PathPrimitive.polyline_type: PolylineType#
Get or set how the primitive interprets the positions.
- property PathPrimitive.minimum_width_supported: float#
Get the minimum width, in pixels, supported by the video card.
- property PathPrimitive.maximum_width_supported: float#
Get the maximum width, in pixels, supported by the video card.
- property PathPrimitive.display_outline: bool#
Get or set whether an outline is rendered around the line.
- property PathPrimitive.outline_width: float#
Get or set the width, in pixels, of the outline around the line.
- property PathPrimitive.per_item_picking_enabled: bool#
Get or set whether individual line indices will be included in the pick results returned from the sceneβs Pick method. Each line index that is picked will be returned as a batch primitive index.
- property PathPrimitive._new_enum: EnumeratorProxy#
Return an enumerator that iterates through the collection.
Method detail#
- PathPrimitive.item(self, index: int) PathPoint #
Return the point at the given zero-based index.
- Parameters:
index :
int
- Returns:
PathPoint
- PathPrimitive.add_front(self, path_point: PathPoint) None #
Add a path point to the front of the line.
- Parameters:
path_point :
PathPoint
- Returns:
- PathPrimitive.add_range_to_front(self, positions: list) None #
Add the range of path points to the front of the line.
- PathPrimitive.add_back(self, path_point: PathPoint) None #
Add a path point to the back of the line.
- Parameters:
path_point :
PathPoint
- Returns:
- PathPrimitive.add_range_to_back(self, positions: list) None #
Add the range of path points to the back of the line.
- PathPrimitive.front(self) PathPoint #
Access the path point at the front of the line.
- Returns:
PathPoint