ConstantDisplayConditionFactory#

class ansys.stk.core.graphics.ConstantDisplayConditionFactory#

A display condition that evaluates to a user-defined value. This is commonly used to hide primitives by assigning to a primitive a display condition that always returns false.

Overview#

initialize

Initialize a default constant display condition. display is set to false so when this display condition is assigned to an object, such as a primitive, the object is not rendered.

initialize_display

Initialize a constant display condition with the value the display condition evaluates to.

Import detail#

from ansys.stk.core.graphics import ConstantDisplayConditionFactory

Method detail#

ConstantDisplayConditionFactory.initialize(self) ConstantDisplayCondition#

Initialize a default constant display condition. display is set to false so when this display condition is assigned to an object, such as a primitive, the object is not rendered.

Returns:

ConstantDisplayCondition

ConstantDisplayConditionFactory.initialize_display(self, display: bool) ConstantDisplayCondition#

Initialize a constant display condition with the value the display condition evaluates to.

Parameters:

display : bool

Returns:

ConstantDisplayCondition