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#
Add a path point to the back of the line. |
|
Add a path point to the front of the line. |
|
Add the range of path points to the back of the line. |
|
Add the range of path points to the front of the line. |
|
Access the path point at the back of the line. |
|
Remove all of the points. |
|
Access the path point at the front of the line. |
|
Return the point at the given zero-based index. |
|
Remove all points after index. |
|
Remove all points before index. |
|
Remove a path point to the back of the line. |
|
Remove a path point to the front of the line. |
Return an enumerator that iterates through the collection. |
|
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 whether the polyline will be clipped by the central body. |
|
Return the number of points. |
|
Get or set whether an outline is rendered around the line. |
|
Get the maximum width, in pixels, supported by the video card. |
|
Get the minimum width, in pixels, supported by the video card. |
|
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. |
|
Get or set how the primitive interprets the positions. |
|
Get or set how the primitive will be updated based on the current animation time. |
|
Get or set the line width, in pixels. |
Import detail#
from ansys.stk.core.graphics import PathPrimitive
Property detail#
- property PathPrimitive._new_enum: EnumeratorProxy#
Return an enumerator that iterates through the collection.
- 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.central_body_clipped: bool#
Get or set whether the polyline will be clipped by the central body.
- property PathPrimitive.display_outline: bool#
Get or set whether an outline is rendered around the line.
- property PathPrimitive.maximum_width_supported: float#
Get the maximum width, in pixels, supported by the video card.
- property PathPrimitive.minimum_width_supported: float#
Get the minimum width, in pixels, supported by the video card.
- 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.polyline_type: PolylineType#
Get or set how the primitive interprets the positions.
- property PathPrimitive.update_policy: IPathPrimitiveUpdatePolicy#
Get or set how the primitive will be updated based on the current animation time.
Method detail#
- 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_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_back(self, positions: list) None #
Add the range of path points to the back of the line.
- PathPrimitive.add_range_to_front(self, positions: list) None #
Add the range of path points to the front of the line.
- PathPrimitive.back(self) PathPoint #
Access the path point at the back of the line.
- Returns:
PathPoint
- PathPrimitive.front(self) PathPoint #
Access the path point at the front of the line.
- Returns:
PathPoint
- PathPrimitive.item(self, index: int) PathPoint #
Return the point at the given zero-based index.
- Parameters:
index :
int
- Returns:
PathPoint