Inheritance diagram for osgSim::MultiSwitch:
Public Types | |
typedef std::vector< bool > | ValueList |
typedef std::vector< ValueList > | SwitchSetList |
Public Member Functions | |
MultiSwitch () | |
MultiSwitch (const MultiSwitch &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY) | |
META_Node (osgSim, MultiSwitch) | |
virtual void | traverse (osg::NodeVisitor &nv) |
void | setNewChildDefaultValue (bool value) |
bool | getNewChildDefaultValue () const |
virtual bool | addChild (osg::Node *child) |
virtual bool | insertChild (unsigned int index, osg::Node *child) |
virtual bool | removeChild (osg::Node *child) |
void | setValue (unsigned int switchSet, unsigned int pos, bool value) |
bool | getValue (unsigned int switchSet, unsigned int pos) const |
void | setChildValue (const osg::Node *child, unsigned int switchSet, bool value) |
bool | getChildValue (const osg::Node *child, unsigned int switchSet) const |
bool | setAllChildrenOff (unsigned int switchSet) |
bool | setAllChildrenOn (unsigned int switchSet) |
bool | setSingleChildOn (unsigned int switchSet, unsigned int pos) |
void | setActiveSwitchSet (unsigned int switchSet) |
unsigned int | getActiveSwitchSet () const |
const SwitchSetList & | getSwitchSetList () const |
const ValueList & | getValueList (unsigned int switchSet) const |
Protected Member Functions | |
virtual | ~MultiSwitch () |
void | expandToEncompassSwitchSet (unsigned int switchSet) |
Protected Attributes | |
bool | _newChildDefaultValue |
unsigned int | _activeSwitchSet |
SwitchSetList | _values |
|
|
|
|
|
|
|
Copy constructor using CopyOp to manage deep vs shallow copy. |
|
|
|
Add Node to Group. If node is not NULL and is not contained in Group then increment its reference count, add it to the child list and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. Otherwise return false. Scene nodes can't be added as child nodes. Reimplemented from osg::Group. |
|
|
|
Get which of the available switch set lists to use. |
|
|
|
|
|
|
|
|
|
|
|
Insert Node to Group at specific location. The new child node is inserted into the child list before the node at the specified index. No nodes are removed from the group with this operation. Reimplemented from osg::Group. |
|
|
|
Remove Node from Group. If Node is contained in Group then remove it from the child list, decrement its reference count, and dirty the bounding sphere to force it to recompute on next getBound() and return true for success. If Node is not found then return false and do not change the reference count of the Node. Reimplemented from osg::Group. |
|
Set which of the available switch set lists to use. |
|
Set all the children off (false), and set the new default child value to off (false). |
|
Set all the children on (true), and set the new default child value to on (true). |
|
|
|
|
|
Set a single child to be on, MultiSwitch off all other children. |
|
|
|
Traverse downwards : calls children's accept method with NodeVisitor. Reimplemented from osg::Group. |
|
|
|
|
|
|