HC_Set_Conditional_Action
-
void
HC_Set_Conditional_Action(char const *options, char const *condition) - void HC_Set_Conditional_Action(char const options, char const condition)
Allows the user to associated specific action(s) with a set of conditions.
The options parameter to Set_Conditional_Action is a comma-separated list of settings which can include the following:
prune segment= *([segment|segment tree], [replace|merge])*
The default values are segment and replace. Thus “prune segment” is the same as “prune segment = (segment, replace)”. When this action is triggered, HOOPS acts as though the segment and subtree was culled and does not defer.
If you specify “segment tree”, the test will remain in effect for the subtree and will be evaluated when new conditions are set while “segment” means that the test will be evaluated only once at the location defined after and local conditions are processed.
If you specify “merge”, existing conditions for this action will remain and logically OR with newly specified conditions while “replace” means that existing conditions will be removed and only the newly specified conditions will remain.
HC_Set_Conditions, HC_Show_Conditional_Action_TypesParameters
options: A quoted string or a string variable containing a list of the actions to associate with a condition.
condition: A quoted string or a string variable containing the condition(s) to trigger the action.