This behaviour accepts a list of 'Targets' and will ensure that only one of them is visible at a time.
The 'Targets' parameter should be a string with object names separated by spaces.
#include
<class_visibility_switch_1_1_visibility_switch.h>
Public Member Functions |
|
__init__ () | |
getParameterType () | |
Provide the type of 'Targets' parameter
since it is not a standard python type. |
|
setVisibleIndex () | |
getVisibleIndex () | |
cycle () | |
Shows the next target, hiding the one that
was previously visible. |
|
update () | |
Implement this method in subclasses to
perform the actual behavior. |
VisibilitySwitch.VisibilitySwitch.__init__ | ( | ) |
Reimplemented from Behavior.Behavior.
VisibilitySwitch.VisibilitySwitch.getParameterType | ( | ) |
Provide the type of 'Targets' parameter since it is not a standard python type.
Reimplemented from Behavior.Behavior.
VisibilitySwitch.VisibilitySwitch.setVisibleIndex | ( | ) |
VisibilitySwitch.VisibilitySwitch.getVisibleIndex | ( | ) |
VisibilitySwitch.VisibilitySwitch.cycle | ( | ) |
Shows the next target, hiding the one that was previously visible.
VisibilitySwitch.VisibilitySwitch.update | ( | ) |
Implement this method in subclasses to perform the actual behavior.
timestep is in seconds.
Reimplemented from Behavior.Behavior.