MarkerBatchPrimitive#
- class ansys.stk.core.graphics.MarkerBatchPrimitive#
Bases:
IPrimitive
Render one or more markers in the 3D scene. Markers are 2D images that always face the viewer which can be sized in pixels or meters. Markers are also referred to as sprites or billboards…
Overview#
Define the positions of markers in a marker batch. The markers are rendered in the primitive’s reference frame. |
|
Define the positions and optional per-marker parameters of markers in a marker batch. The markers are rendered in the primitive’s reference frame. |
|
Define the positions and optional per-marker parameters of markers in a marker batch. The markers are rendered in the primitive’s reference frame. renderPassHint is provided for efficiency. |
|
For convenience. Defines the positions of markers in a marker batch using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set. |
|
For convenience. Defines the positions and optional per-marker parameters of markers in a marker batch using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set. |
|
|
For convenience. Defines the positions and optional per-marker parameters of markers in a marker batch using cartographic positions. renderPassHint is provided for efficiency… |
Update a subset of marker positions in a marker batch. |
|
Update a subset of marker positions in a marker batch. |
|
Update a subset of marker positions and/or per-marker parameters in a marker batch. |
|
|
Update a subset of marker positions and/or per-marker parameters in a marker batch. |
For convenience. Updates a subset of positions in a marker batch 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 marker batch 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 optional per-marker parameters of markers in a marker batch 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 optional per-marker parameters of markers in a marker batch using cartographic positions. renderPassHint is provided for efficiency… |
Determine whether or not the video card supports the marker batch primitive with the given renderingMethod. |
|
Set the up vector of the markers to always be aligned to the up vector of the camera. This is the default alignment. |
|
Set the up vector of the markers to point towards the north axis of centralBody. It will be aligned with the tangent vector of the surface that points north. |
|
Set the up vector of the markers to point towards the axis of centralBody. It will be aligned with the tangent vector of the surface that points towards the axis… |
Get the source used for the size of markers in the batch. |
|
Get the order in which markers in the marker batch are sorted before rendering. |
|
Get the primitive’s set hint. See the Set Hint Performance Overview for selecting an appropriate value to construct the primitive with. |
|
Get the rendering method used to render the marker batch. |
|
Get or set the pass during which the marker batch is rendered. |
|
Get or set the scale applied to the radius of this primitive’s bounding sphere. |
|
Get or set a distance display condition that is evaluated per marker in the marker batch during rendering. This is different than display condition, which is evaluated once for the entire marker batch… |
|
Get or set the per-batch texture, which is applied to each marker in the batch. |
|
Get or set the unit that each marker’s size is defined in. |
|
Get or set the per-batch size, which is applied to each marker in the batch. The array contains one width followed by one height. |
|
Get or set the per-batch origin, which is applied to each marker in the batch. |
|
Get or set the per-batch pixel offset, which is applied to each marker in the batch. The array contains one x pixel offset followed by one y pixel offset. |
|
Get or set the per-batch eye offset, which is applied to each marker in the batch. The array contains the components of the eye offset in the order x, y, z. |
|
Get or set the per-batch rotation angle which is applied to each marker in the batch. |
|
Get or set the per-batch texture coordinate, which is applied to each marker in the batch. The array contains the texture coordinates arranged in the order s, t, p, q. |
|
Get or set whether the primitive is rendered in wireframe. This is useful for debugging. |
|
Get or set whether individual marker indices will be included in the pick results returned from the scene’s Pick method. Each marker index that is picked will be returned as a batch primitive index. |
|
Get or set the filter used for per-marker or per-batch textures. |
|
Get or set whether the screen space position of each marker is clamped to a pixel. |
|
Get or set whether the markers are clipped by the central body. |
Import detail#
from ansys.stk.core.graphics import MarkerBatchPrimitive
Property detail#
- property MarkerBatchPrimitive.size_source: MarkerBatchSizeSource#
Get the source used for the size of markers in the batch.
- property MarkerBatchPrimitive.sort_order: MarkerBatchSortOrder#
Get the order in which markers in the marker batch are sorted before rendering.
- property MarkerBatchPrimitive.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 MarkerBatchPrimitive.rendering_method: MarkerBatchRenderingMethod#
Get the rendering method used to render the marker batch.
- property MarkerBatchPrimitive.render_pass: MarkerBatchRenderPass#
Get or set the pass during which the marker batch is rendered.
- property MarkerBatchPrimitive.bounding_sphere_scale: float#
Get or set the scale applied to the radius of this primitive’s bounding sphere.
- property MarkerBatchPrimitive.distance_display_condition_per_marker: DistanceDisplayCondition#
Get or set a distance display condition that is evaluated per marker in the marker batch during rendering. This is different than display condition, which is evaluated once for the entire marker batch…
- property MarkerBatchPrimitive.texture: RendererTexture2D#
Get or set the per-batch texture, which is applied to each marker in the batch.
- property MarkerBatchPrimitive.size_unit: MarkerBatchSizeUnit#
Get or set the unit that each marker’s size is defined in.
- property MarkerBatchPrimitive.size: list#
Get or set the per-batch size, which is applied to each marker in the batch. The array contains one width followed by one height.
- property MarkerBatchPrimitive.origin: Origin#
Get or set the per-batch origin, which is applied to each marker in the batch.
- property MarkerBatchPrimitive.pixel_offset: list#
Get or set the per-batch pixel offset, which is applied to each marker in the batch. The array contains one x pixel offset followed by one y pixel offset.
- property MarkerBatchPrimitive.eye_offset: list#
Get or set the per-batch eye offset, which is applied to each marker in the batch. The array contains the components of the eye offset in the order x, y, z.
- property MarkerBatchPrimitive.rotation: float#
Get or set the per-batch rotation angle which is applied to each marker in the batch.
- property MarkerBatchPrimitive.texture_coordinate: list#
Get or set the per-batch texture coordinate, which is applied to each marker in the batch. The array contains the texture coordinates arranged in the order s, t, p, q.
- property MarkerBatchPrimitive.wireframe: bool#
Get or set whether the primitive is rendered in wireframe. This is useful for debugging.
- property MarkerBatchPrimitive.per_item_picking_enabled: bool#
Get or set whether individual marker indices will be included in the pick results returned from the scene’s Pick method. Each marker index that is picked will be returned as a batch primitive index.
- property MarkerBatchPrimitive.texture_filter: TextureFilter2D#
Get or set the filter used for per-marker or per-batch textures.
Method detail#
- MarkerBatchPrimitive.set(self, positions: list) None #
Define the positions of markers in a marker batch. The markers are rendered in the primitive’s reference frame.
- MarkerBatchPrimitive.set_with_optional_parameters(self, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters) None #
Define the positions and optional per-marker parameters of markers in a marker batch. The markers are rendered in the primitive’s reference frame.
- MarkerBatchPrimitive.set_with_optional_parameters_and_render_pass_hint(self, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters, render_pass_hint: RenderPassHint) None #
Define the positions and optional per-marker parameters of markers in a marker batch. The markers are rendered in the primitive’s reference frame. renderPassHint is provided for efficiency.
- MarkerBatchPrimitive.set_cartographic(self, central_body: str, positions: list) None #
For convenience. Defines the positions of markers in a marker batch using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set.
- MarkerBatchPrimitive.set_cartographic_with_optional_parameters(self, central_body: str, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters) None #
For convenience. Defines the positions and optional per-marker parameters of markers in a marker batch using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling Set.
- MarkerBatchPrimitive.set_cartographic_with_optional_parameters_and_render_pass_hint(self, central_body: str, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters, render_pass_hint: RenderPassHint) None #
For convenience. Defines the positions and optional per-marker parameters of markers in a marker batch using cartographic positions. renderPassHint is provided for efficiency…
- MarkerBatchPrimitive.set_partial(self, positions: list, indices: list) None #
Update a subset of marker positions in a marker batch.
- MarkerBatchPrimitive.set_partial_with_indices_order(self, positions: list, indices: list, indices_order_hint: PrimitiveIndicesOrderHint) None #
Update a subset of marker positions in a marker batch.
- MarkerBatchPrimitive.set_partial_with_optional_parameters(self, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters, indices: list) None #
Update a subset of marker positions and/or per-marker parameters in a marker batch.
- MarkerBatchPrimitive.set_partial_with_optional_parameters_indices_order_and_render_pass(self, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters, indices: list, indices_order_hint: PrimitiveIndicesOrderHint, render_pass_hint: RenderPassHint) None #
Update a subset of marker positions and/or per-marker parameters in a marker batch.
- MarkerBatchPrimitive.set_partial_cartographic(self, central_body: str, positions: list, indices: list) None #
For convenience. Updates a subset of positions in a marker batch using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.
- MarkerBatchPrimitive.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 marker batch using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.
- MarkerBatchPrimitive.set_partial_cartographic_with_optional_parameters(self, central_body: str, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters, indices: list) None #
For convenience. Updates a subset of positions and/or optional per-marker parameters of markers in a marker batch using cartographic positions. This is equivalent to converting each position in positions to cartesian and calling SetPartial.
- MarkerBatchPrimitive.set_partial_cartographic_with_optional_parameters_indices_order_and_render_pass(self, central_body: str, positions: list, optional_parameters: MarkerBatchPrimitiveOptionalParameters, indices: list, indices_order_hint: PrimitiveIndicesOrderHint, render_pass_hint: RenderPassHint) None #
For convenience. Updates a subset of positions and/or optional per-marker parameters of markers in a marker batch using cartographic positions. renderPassHint is provided for efficiency…
- MarkerBatchPrimitive.supported(self, rendering_method: MarkerBatchRenderingMethod) bool #
Determine whether or not the video card supports the marker batch primitive with the given renderingMethod.
- Parameters:
rendering_method :
MarkerBatchRenderingMethod
- Returns:
- MarkerBatchPrimitive.align_to_screen(self) None #
Set the up vector of the markers to always be aligned to the up vector of the camera. This is the default alignment.
- Returns:
- MarkerBatchPrimitive.align_to_north(self, central_body: str) None #
Set the up vector of the markers to point towards the north axis of centralBody. It will be aligned with the tangent vector of the surface that points north.