PixelSizeDisplayConditionFactory#

class ansys.stk.core.graphics.PixelSizeDisplayConditionFactory#

Define an inclusive interval, in pixels, that determines when an object, such as a primitive, is rendered based on the number of pixels the object’s bounding sphere (or in the case of screen overlays, bounding rectangle) covers on the screen…

Overview#

initialize

Initialize a default pixel size display condition. minimum pixel size is set to 0 and maximum pixel size is set to Int32.MaxValue. With this interval, an object is always rendered regardless of how many pixels its bounding sphere or rectangle covers.

initialize_with_pixel_sizes

Initialize a pixel size display condition with the inclusive interval [minimumPixelSize, maximumPixelSize]…

Import detail#

from ansys.stk.core.graphics import PixelSizeDisplayConditionFactory

Method detail#

PixelSizeDisplayConditionFactory.initialize(self) PixelSizeDisplayCondition#

Initialize a default pixel size display condition. minimum pixel size is set to 0 and maximum pixel size is set to Int32.MaxValue. With this interval, an object is always rendered regardless of how many pixels its bounding sphere or rectangle covers.

Returns:

PixelSizeDisplayCondition

PixelSizeDisplayConditionFactory.initialize_with_pixel_sizes(self, minimum_pixel_size: int, maximum_pixel_size: int) PixelSizeDisplayCondition#

Initialize a pixel size display condition with the inclusive interval [minimumPixelSize, maximumPixelSize]…

Parameters:

minimum_pixel_size : int

maximum_pixel_size : int

Returns:

PixelSizeDisplayCondition