PolylinePrimitive#
- class ansys.stk.core.graphics.PolylinePrimitive#
Bases:
IPrimitive
Render a polyline in the 3D scene. Each line segment may have a different color. A polyline can be constructed with a position interpolator to render great arcs or rhumb lines.
Overview#
Define the positions for a polyline primitive. The polyline is rendered in its reference frame. |
|
Define the positions and colors of a polyline. The polyline is rendered in its reference frame. |
|
Define the positions and colors of a polyline. The polyline is rendered in its reference frame. renderPassHint is provided for efficiency. |
|
Define the positions of a polyline using the positions of the specified surfaceShapesResult. |
|
Define the positions of a polyline using the boundary positions of the specified surfaceTriangulatorResult. |
|
Define the positions of a polyline using the outline positions of the specified solidTriangulatorResult. |
|
For convenience. Defines the positions of a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set. |
|
For convenience. Defines the positions and colors of a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set. |
|
For convenience. Defines the positions and colors of a polyline using cartographic positions. renderPassHint is provided for efficiency. This is equivalent to converting each position in positions to cartesian and calling Set. |
|
Define the positions of a polyline using a subset of input positions. |
|
For convenience. Defines the positions of a polyline using a subset of input cartographic positions. This is equivalent to converting the subset of positions to cartesian and calling SetSubset. |
|
Update a subset of positions in a polyline. |
|
Update a subset of positions in a polyline. |
|
Update a subset of positions and/or colors in a polyline. |
|
Update a subset of positions and/or colors in a polyline. |
|
For convenience. Updates a subset of positions in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial. |
|
For convenience. Updates a subset of positions in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial. |
|
For convenience. Updates a subset of positions and/or colors in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial. |
|
|
For convenience. Updates a subset of positions and/or colors in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial. |
Define the positions, colors, and/or optional point properties of a polyline. The polyline is rendered in its reference frame. |
|
For convenience. Defines the positions, colors, and/or optional point properties of a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set. |
|
Update a subset of positions, colors, and/or optional point properties in a polyline. |
|
For convenience. Updates a subset of positions, colors, and/or optional point properties in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial. |
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 the position interpolator applied to positions passed to Set, SetCartographic, SetSubset, and SetSubsetCartographic methods. When this property is null, linear interpolation is used. |
|
Get how the polyline interprets the positions passed to Set methods. |
|
Get the primitive’s set hint. See the Set Hint Performance Overview for selecting an appropriate value to construct the primitive with. |
|
Get or set whether an outline is rendered around the polyline. |
|
Get or set the outline’s color. |
|
Get or set the translucency of the outline. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent. |
|
Get or set the width, in pixels, of the outline around the polyline. |
|
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 whether the polyline will be clipped by the central body. |
Import detail#
from ansys.stk.core.graphics import PolylinePrimitive
Property detail#
- property PolylinePrimitive.minimum_width_supported: float#
Get the minimum width, in pixels, supported by the video card.
- property PolylinePrimitive.maximum_width_supported: float#
Get the maximum width, in pixels, supported by the video card.
- property PolylinePrimitive.position_interpolator: IPositionInterpolator#
Get the position interpolator applied to positions passed to Set, SetCartographic, SetSubset, and SetSubsetCartographic methods. When this property is null, linear interpolation is used.
- property PolylinePrimitive.polyline_type: PolylineType#
Get how the polyline interprets the positions passed to Set methods.
- property PolylinePrimitive.set_hint: SetHint#
Get the primitive’s set hint. See the Set Hint Performance Overview for selecting an appropriate value to construct the primitive with.
- property PolylinePrimitive.display_outline: bool#
Get or set whether an outline is rendered around the polyline.
- property PolylinePrimitive.outline_translucency: float#
Get or set the translucency of the outline. Translucency is between 0 and 1, where 0 is opaque and 1 is transparent.
- property PolylinePrimitive.outline_width: float#
Get or set the width, in pixels, of the outline around the polyline.
Method detail#
- PolylinePrimitive.set(self, positions: list) None #
Define the positions for a polyline primitive. The polyline is rendered in its reference frame.
- PolylinePrimitive.set_with_colors(self, positions: list, colors: list) None #
Define the positions and colors of a polyline. The polyline is rendered in its reference frame.
- PolylinePrimitive.set_with_colors_and_hint(self, positions: list, colors: list, render_pass_hint: RenderPassHint) None #
Define the positions and colors of a polyline. The polyline is rendered in its reference frame. renderPassHint is provided for efficiency.
- PolylinePrimitive.set_with_surface_shapes_result(self, surface_shapes_result: SurfaceShapesResult) None #
Define the positions of a polyline using the positions of the specified surfaceShapesResult.
- Parameters:
surface_shapes_result :
SurfaceShapesResult
- Returns:
- PolylinePrimitive.set_with_surface_triangulator_result(self, surface_triangulator_result: SurfaceTriangulatorResult) None #
Define the positions of a polyline using the boundary positions of the specified surfaceTriangulatorResult.
- Parameters:
surface_triangulator_result :
SurfaceTriangulatorResult
- Returns:
- PolylinePrimitive.set_with_solid_triangulator_result(self, solid_triangulator_result: SolidTriangulatorResult) None #
Define the positions of a polyline using the outline positions of the specified solidTriangulatorResult.
- Parameters:
solid_triangulator_result :
SolidTriangulatorResult
- Returns:
- PolylinePrimitive.set_cartographic(self, central_body: str, positions: list) None #
For convenience. Defines the positions of a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set.
- PolylinePrimitive.set_cartographic_with_colors(self, central_body: str, positions: list, colors: list) None #
For convenience. Defines the positions and colors of a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set.
- PolylinePrimitive.set_cartographic_with_colors_and_hint(self, central_body: str, positions: list, colors: list, render_pass_hint: RenderPassHint) None #
For convenience. Defines the positions and colors of a polyline using cartographic positions. renderPassHint is provided for efficiency. This is equivalent to converting each position in positions to cartesian and calling Set.
- PolylinePrimitive.set_subset(self, positions: list, index: int, count: int) None #
Define the positions of a polyline using a subset of input positions.
- PolylinePrimitive.set_subset_cartographic(self, central_body: str, positions: list, index: int, count: int) None #
For convenience. Defines the positions of a polyline using a subset of input cartographic positions. This is equivalent to converting the subset of positions to cartesian and calling SetSubset.
- PolylinePrimitive.set_partial(self, positions: list, indices: list) None #
Update a subset of positions in a polyline.
- PolylinePrimitive.set_partial_with_indices_order(self, positions: list, indices: list, indices_order_hint: PrimitiveIndicesOrderHint) None #
Update a subset of positions in a polyline.
- PolylinePrimitive.set_partial_with_colors(self, positions: list, colors: list, indices: list) None #
Update a subset of positions and/or colors in a polyline.
- PolylinePrimitive.set_partial_with_colors_indices_order_and_render_pass_hint(self, positions: list, colors: list, indices: list, indices_order_hint: PrimitiveIndicesOrderHint, render_pass_hint: RenderPassHint) None #
Update a subset of positions and/or colors in a polyline.
- PolylinePrimitive.set_partial_cartographic(self, central_body: str, positions: list, indices: list) None #
For convenience. Updates a subset of positions in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.
- PolylinePrimitive.set_partial_cartographic_with_indices_order(self, central_body: str, positions: list, indices: list, indices_order_hint: PrimitiveIndicesOrderHint) None #
For convenience. Updates a subset of positions in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.
- PolylinePrimitive.set_partial_cartographic_with_colors(self, central_body: str, positions: list, colors: list, indices: list) None #
For convenience. Updates a subset of positions and/or colors in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.
- PolylinePrimitive.set_partial_cartographic_with_colors_indices_order_and_render_pass(self, central_body: str, positions: list, colors: list, indices: list, indices_order_hint: PrimitiveIndicesOrderHint, render_pass_hint: RenderPassHint) None #
For convenience. Updates a subset of positions and/or colors in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.
- PolylinePrimitive.set_with_colors_and_optional_parameters(self, positions: list, colors: list, optional_parameters: PolylinePrimitiveOptionalParameters) None #
Define the positions, colors, and/or optional point properties of a polyline. The polyline is rendered in its reference frame.
- PolylinePrimitive.set_cartographic_with_colors_and_optional_parameters(self, central_body: str, positions: list, colors: list, optional_parameters: PolylinePrimitiveOptionalParameters) None #
For convenience. Defines the positions, colors, and/or optional point properties of a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set.
- PolylinePrimitive.set_partial_with_colors_and_optional_parameters(self, positions: list, colors: list, optional_parameters: PolylinePrimitiveOptionalParameters, indices: list) None #
Update a subset of positions, colors, and/or optional point properties in a polyline.
- PolylinePrimitive.set_partial_cartographic_with_optional_parameters(self, central_body: str, positions: list, colors: list, optional_parameters: PolylinePrimitiveOptionalParameters, indices: list) None #
For convenience. Updates a subset of positions, colors, and/or optional point properties in a polyline using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.