Inheritance diagram for osg::Switch:
Public Types | |
enum | SwitchType { ALL_CHILDREN_ON = -1, ALL_CHILDREN_OFF = -2 } |
Special mode values for the Switch. More... | |
Public Methods | |
Switch () | |
Switch (const Switch &, const CopyOp ©op=CopyOp::SHALLOW_COPY) | |
Copy constructor using CopyOp to manage deep vs shallow copy. | |
META_Node (osg, Switch) | |
virtual void | traverse (NodeVisitor &nv) |
Traverse downwards : calls children's accept method with NodeVisitor. | |
void | setValue (const int value) |
Selects the active child Node or enables a special SwitchType mode. | |
const int | getValue () const |
Returns the number of the active child Node or the SwitchType. | |
Protected Methods | |
virtual | ~Switch () |
Protected Attributes | |
int | _value |
The current Switch value. |
Typical uses would be for objects which might need to be rendered differently at different times, for instance a switch could be used to represent the different states of a traffic light.
|
Special mode values for the Switch. Use these if you want to turn on/off all child nodes. |
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy.
|
|
|
|
Returns the number of the active child Node or the SwitchType.
|
|
Reimplemented in osg::Sequence. |
|
Selects the active child Node or enables a special SwitchType mode.
|
|
Traverse downwards : calls children's accept method with NodeVisitor.
Reimplemented from osg::Group. Reimplemented in osg::Sequence. |
|
The current Switch value.
|