HC_Conditional_Style
-
Key
HC_Conditional_Style(char const *style, char const *conditions) - Key HC_Conditional_Style(char const style, char const conditions)
Similar to Style_Segment(), but uses a list of conditions that must be satisfied in order for the inclusion to apply.
The conditional variant of Style_Segment allows the user to register, during the styling, one or a series of conditions that must match with the conditions set on the containing segment ( see Set_Conditions() ) in order for the styling to apply. The conditions are user-defined and have no internal meaning to HOOPS other than as elements that can be compared. Conditions are inherited down the tree like other regular attributes and are resolved at draw time when inheritance is fully resolved.
HC_Show_Conditional_Style, HC_Set_Conditions, HC_Show_ConditionsParameters
style: Pathname to extra segment(s) to be styled when displaying the current segment.
conditions: The conditions that are associated with a particular conditional style and that are valid input to Set_Conditions().
Returns
A new key for the segment as styled, as opposed to its original segment key.