TextBatchPrimitiveOptionalParameters#
- class ansys.stk.core.graphics.TextBatchPrimitiveOptionalParameters#
Optional per-string and per-batch parameters for text batch primitiveβ¦
Overview#
Define a collection of origins, one for each string in the batch. |
|
Define a collection of eye offsets, one for each string in the batch. |
|
Define a collection of pixel offsets, one for each string in the batch. |
|
Define a collection of colors, one for each string in the batch. |
Get or set the per-batch origin, which is applied to each string in the text batch. |
|
Get or set the per-batch eye offset, which is applied to each string in the text batch. The array contains the components of the offset arranged in the order x, y, z. |
|
Get or set the per-batch pixel offset, which is applied to each string in the text batch. The array contains one x pixel offset followed by one y pixel offset. |
|
Get or set the maximum length of each string in the text batch. |
|
Get or set a flag that informs the CTextBatchPrimitive to use rendering optimized for screen space text. |
Import detail#
from ansys.stk.core.graphics import TextBatchPrimitiveOptionalParameters
Property detail#
- property TextBatchPrimitiveOptionalParameters.origin: Origin#
Get or set the per-batch origin, which is applied to each string in the text batch.
- property TextBatchPrimitiveOptionalParameters.eye_offset: list#
Get or set the per-batch eye offset, which is applied to each string in the text batch. The array contains the components of the offset arranged in the order x, y, z.
- property TextBatchPrimitiveOptionalParameters.pixel_offset: list#
Get or set the per-batch pixel offset, which is applied to each string in the text batch. The array contains one x pixel offset followed by one y pixel offset.
Method detail#
- TextBatchPrimitiveOptionalParameters.set_origins(self, origins: list) None #
Define a collection of origins, one for each string in the batch.
- TextBatchPrimitiveOptionalParameters.set_eye_offsets(self, eye_offsets: list) None #
Define a collection of eye offsets, one for each string in the batch.