Glyph Version 3.18.6 |
pw:: TRexConditionT-Rex condition type Derives FromSummary
create
This action creates a new T-Rex condition object. ParametersNone ReturnsThis action returns a new pw::TRexCondition object. getByName
This action gets a T-Rex condition object with the given name. Parameters
ReturnsThis action returns a pw::TRexCondition object. getByEntities
This action returns a list of T-Rex condition objects, one for each input register. Parameters
ReturnsThis action retuns a list of pw::TRexCondition objects. InformationIf a given register does not have a T-Rex condition assigned to it, the “Unspecified” T-Rex condition will be returned. However calling the getRegisters action on the “Unspecified” T-Rex condition will only return the register if it is currently part of an active UnstructuredSolver mode. getNames
This action gets a list of T-Rex condition names. ParametersNone ReturnsThis action returns the T-Rex condition names as a list of strings. ConditionType
This default is the condition type of a T-Rex condition when created. TypeThis default is a string with values < Off | Wall | Angle | Match | AdjacentGrid | AspectRatio | MaximumAspectRatio >. DefaultThe default is Off. Adaptation
This default is the adaptation of a T-Rex condition when created. TypeThis default is a string with values < Off | On >. DefaultThe default is Off. AutomaticWallValue
This attribute is the spacing to automatically apply whenever the type of a T-Rex condition is set to Wall. TypeThis attribute is a float with the range [0, infinity). DefaultThe default for this attribute is 0.1. AutomaticAngleValue
This attribute is the angle to automatically determine the local spacing apply whenever the type of a T-Rex condition is set to Angle. TypeThis attribute is a float with the range [0, 45]. DefaultThe default for this attribute is 0.0. AutomaticAspectRatioValue
This attribute is the aspect ratio to automatically determine the local spacing apply whenever the type of a T-Rex condition is set to AspectRatio or MaximumAspectRatio. TypeThis attribute is a float with the range (0, infinity). DefaultThe default for this attribute is 10.0. Name
This attribute is the name of the T-Rex condition. TypeThis attribute is a string. DefaultThe default for this attribute is a uniquely generated name. ConditionType
This attribute is the condition type of the T-Rex condition. TypeThis attribute is a string with values < Off | Wall | Angle | Match | AdjacentGrid | AspectRatio | MaximumAspectRatio >. DefaultThe default for this attribute is the value in the ConditionType default when the T-Rex condition was created. Adaptation
This attribute is the adaptation type of the T-Rex condition. TypeThis attribute is a string with values < Off | On >. DefaultThe default for this attribute is the value in the Adaptation default when the T-Rex condition was created. Value
This attribute is the value of the T-Rex condition. If the condition type is Wall, the value is the spacing. If the condition type is Angle, the value is the angle. If the condtion type is AspectRatio or MaximumAspectRatio, the value is the aspect ratio TypeThis attribute is a float. DefaultThe default for this attribute is 0.0. apply
This action applies this TRex boundary condition to a set of entities and/or entity registers. If an entity is specified, the default boundary condition for that entity is set, but no registers that use that entity are affected. The default boundary condition for an entity is applied when the entity is used in a new higher-level entity. When applying boundary conditions to an entity, this action only sets the “default” condition for that entity. The “default” condition is applied to all subsequent uses (registers) of that entity. In comparison, when a boundary condition is applied to a register, this action sets the condition for both the register and changes the “default” condition for the entity. Parameters
ReturnsThis action returns nothing. getRegisters
This action returns the registers that this boundary condition has been applied to. Parameters
ReturnsThis action returns a list of registers. InformationIf this is the “Unspecified” T-Rex condition, the registers that will be returned are only those registers that are currently part of an active UnstructuredSolver mode. If this is called during an active solver mode, it will return only the registers that are active in the solver. This means that is may be an incomplete list of the registers using the boundary condition. getRegisterCount
This action returns the number of registers that this boundary condition has been applied to. Parameters
ReturnsThis action returns an integer value. InformationThis returns a count of all registers that use the boundary condition. If this is called while a solver mode is active, it includes both the registers that are active in the solver and registers not active in the solver. Note that the getRegisters function only returns the former and not the latter. |
This action creates a new T-Rex condition object.
pw::TRexCondition create
This action gets a T-Rex condition object with the given name.
pw::TRexCondition getByName name
This action returns a list of T-Rex condition objects, one for each input register.
pw::TRexCondition getByEntities register_list
This action gets a list of T-Rex condition names.
pw::TRexCondition getNames
This default is the condition type of a T-Rex condition when created.
pw::TRexCondition get/setDefault ConditionType type
This default is the adaptation of a T-Rex condition when created.
pw::TRexCondition get/setDefault Adaptation type
This attribute is the spacing to automatically apply whenever the type of a T-Rex condition is set to Wall.
pw::TRexCondition get/setAutomaticWallValue spacing
This attribute is the angle to automatically determine the local spacing apply whenever the type of a T-Rex condition is set to Angle.
pw::TRexCondition get/setAutomaticAngleValue angle
This attribute is the aspect ratio to automatically determine the local spacing apply whenever the type of a T-Rex condition is set to AspectRatio or MaximumAspectRatio.
pw::TRexCondition get/setAutomaticAspectRatioValue ratio
This attribute is the name of the T-Rex condition.
$tc get/setName name
This attribute is the value of the T-Rex condition.
$tc get/setValue value
This action deletes this T-Rex condition.
$tc delete
This action applies this TRex boundary condition to a set of entities and/or entity registers.
$tc apply register_or_entity_list
This action returns the registers that this boundary condition has been applied to.
$bc getRegisters ?-visibility onoff?
This action returns the number of registers that this boundary condition has been applied to.
$bc getRegisterCount ?-visibility onoff?