DistanceToPositionDisplayCondition#

class ansys.stk.core.graphics.DistanceToPositionDisplayCondition#

Bases: IDisplayCondition

Define an inclusive distance interval that determines when an object, such as a primitive, is rendered based on the distance from the camera to a position defined in the given reference frame.

Overview#

minimum_distance

Get or set the minimum distance of the inclusive distance interval.

minimum_distance_squared

Get the squared minimum distance of the inclusive distance interval.

maximum_distance

Get or set the maximum distance of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.

maximum_distance_squared

Get the squared maximum distance of the inclusive distance interval.

position

Get or set the position used to compute the distance from the camera. The array contains the components of the position arranged in the order x, y, z.

reference_frame

Get or set the reference frame that position is defined in.

Import detail#

from ansys.stk.core.graphics import DistanceToPositionDisplayCondition

Property detail#

property DistanceToPositionDisplayCondition.minimum_distance: float#

Get or set the minimum distance of the inclusive distance interval.

property DistanceToPositionDisplayCondition.minimum_distance_squared: float#

Get the squared minimum distance of the inclusive distance interval.

property DistanceToPositionDisplayCondition.maximum_distance: float#

Get or set the maximum distance of the inclusive distance interval. Use Double.MaxValue to ignore checking the maximum distance.

property DistanceToPositionDisplayCondition.maximum_distance_squared: float#

Get the squared maximum distance of the inclusive distance interval.

property DistanceToPositionDisplayCondition.position: list#

Get or set the position used to compute the distance from the camera. The array contains the components of the position arranged in the order x, y, z.

property DistanceToPositionDisplayCondition.reference_frame: IVectorGeometryToolSystem#

Get or set the reference frame that position is defined in.