MultiSwitch is a Group node which allows switching between sets of selected children.
Inheritance:
Public Methods
-
MultiSwitch()
-
MultiSwitch(const MultiSwitch&, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs 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)
- Set all the children off (false), and set the new default child value to off (false)
-
bool setAllChildrenOn(unsigned int switchSet)
- Set all the children on (true), and set the new default child value to on (true)
-
bool setSingleChildOn(unsigned int switchSet, unsigned int pos)
- Set a single child to be on, MultiSwitch off all other children
-
void setActiveSwitchSet(unsigned int switchSet)
- Set which of the available switch set lists to use
-
unsigned int getActiveSwitchSet() const
- Get which of the available switch set lists to use
-
const SwitchSetList& getSwitchSetList() const
-
const ValueList& getValueList(unsigned int switchSet) const
Public
-
typedef std::vector<bool> ValueList
-
typedef std::vector<ValueList> SwitchSetList
Protected Fields
-
bool _newChildDefaultValue
-
unsigned int _activeSwitchSet
-
SwitchSetList _values
Protected Methods
-
virtual ~MultiSwitch()
-
void expandToEncompassSwitchSet(unsigned int switchSet)
Documentation
MultiSwitch is a Group node which allows switching between sets of selected children.
MultiSwtich is based on the OpenFlight switch behaviour.
MultiSwitch()
MultiSwitch(const MultiSwitch&, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
- Copy constructor using CopyOp to manage deep vs 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)
- Set all the children off (false), and set the new default child value to off (false)
bool setAllChildrenOn(unsigned int switchSet)
- Set all the children on (true), and set the new default child value to on (true)
bool setSingleChildOn(unsigned int switchSet, unsigned int pos)
- Set a single child to be on, MultiSwitch off all other children
void setActiveSwitchSet(unsigned int switchSet)
- Set which of the available switch set lists to use
unsigned int getActiveSwitchSet() const
- Get which of the available switch set lists to use
typedef std::vector<bool> ValueList
typedef std::vector<ValueList> SwitchSetList
const SwitchSetList& getSwitchSetList() const
const ValueList& getValueList(unsigned int switchSet) const
virtual ~MultiSwitch()
void expandToEncompassSwitchSet(unsigned int switchSet)
bool _newChildDefaultValue
unsigned int _activeSwitchSet
SwitchSetList _values
- This class has no child classes.
Alphabetic index HTML hierarchy of classes or Java
This page was generated with the help of DOC++.