VectorPrimitive#
- class ansys.stk.core.graphics.VectorPrimitive#
Bases:
IPrimitive
Render a vector in the 3D scene. A vector is defined by a source (given by a reference frame) and a direction (given by a vector). Length is auto-calculated or can be set separately.
Overview#
Get or set whether the primitive is lit. |
|
Get or set the user-defined label. |
|
Get or set whether the vector’s label is displayed. |
|
Get or set whether the vector’s magnitude is displayed. |
|
Get or set whether the vector’s RA-Dec is displayed. |
|
Get or set whether the persistence trace (points) is displayed. |
|
Get or set whether the persistence sweep (triangles) is displayed. |
|
Get or set whether persistence lines are displayed. |
|
Get or set persistence point/line width. |
|
Get or set whether the persistence path should fade over time. |
|
Get or set the maximum duration of the persistence path. |
|
Get or set the vector’s source-to-arrow-tip length. |
|
Get or set the vector’s width in pixels. As the camera distances changes from this primitive, the geometry will autoscale to maintain this thickness. |
|
Get or set whether vector’s ‘true scale’ length (based on how the primitive was created) should be used. |
Import detail#
from ansys.stk.core.graphics import VectorPrimitive
Property detail#
- property VectorPrimitive.display_magnitude: bool#
Get or set whether the vector’s magnitude is displayed.
- property VectorPrimitive.display_ra_dec: bool#
Get or set whether the vector’s RA-Dec is displayed.
- property VectorPrimitive.display_trace: bool#
Get or set whether the persistence trace (points) is displayed.
- property VectorPrimitive.display_sweep: bool#
Get or set whether the persistence sweep (triangles) is displayed.
- property VectorPrimitive.fade_persistence: bool#
Get or set whether the persistence path should fade over time.
- property VectorPrimitive.persistence_duration: float#
Get or set the maximum duration of the persistence path.