class OSGSIM_EXPORT osgSim::MultiSwitch

MultiSwitch is a Group node which allows switching between sets of selected children.

Inheritance:


Public Methods

[more] MultiSwitch()
[more] MultiSwitch(const MultiSwitch&, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy
[more] META_Node(osgSim, MultiSwitch)
[more]virtual void traverse(osg::NodeVisitor& nv)
[more]void setNewChildDefaultValue(bool value)
[more]bool getNewChildDefaultValue() const
[more]virtual bool addChild( osg::Node* child )
[more]virtual bool insertChild( unsigned int index, osg::Node* child )
[more]virtual bool removeChild( osg::Node* child )
[more]void setValue(unsigned int switchSet, unsigned int pos, bool value)
[more]bool getValue(unsigned int switchSet, unsigned int pos) const
[more]void setChildValue(const osg::Node* child, unsigned int switchSet, bool value)
[more]bool getChildValue(const osg::Node* child, unsigned int switchSet) const
[more]bool setAllChildrenOff(unsigned int switchSet)
Set all the children off (false), and set the new default child value to off (false)
[more]bool setAllChildrenOn(unsigned int switchSet)
Set all the children on (true), and set the new default child value to on (true)
[more]bool setSingleChildOn(unsigned int switchSet, unsigned int pos)
Set a single child to be on, MultiSwitch off all other children
[more]void setActiveSwitchSet(unsigned int switchSet)
Set which of the available switch set lists to use
[more]unsigned int getActiveSwitchSet() const
Get which of the available switch set lists to use
[more]const SwitchSetList& getSwitchSetList() const
[more]const ValueList& getValueList(unsigned int switchSet) const

Public

[more]typedef std::vector<bool> ValueList
[more]typedef std::vector<ValueList> SwitchSetList

Protected Fields

[more]bool _newChildDefaultValue
[more]unsigned int _activeSwitchSet
[more]SwitchSetList _values

Protected Methods

[more]virtual ~MultiSwitch()
[more]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.
o MultiSwitch()

o MultiSwitch(const MultiSwitch&, const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy

o META_Node(osgSim, MultiSwitch)

ovirtual void traverse(osg::NodeVisitor& nv)

ovoid setNewChildDefaultValue(bool value)

obool getNewChildDefaultValue() const

ovirtual bool addChild( osg::Node* child )

ovirtual bool insertChild( unsigned int index, osg::Node* child )

ovirtual bool removeChild( osg::Node* child )

ovoid setValue(unsigned int switchSet, unsigned int pos, bool value)

obool getValue(unsigned int switchSet, unsigned int pos) const

ovoid setChildValue(const osg::Node* child, unsigned int switchSet, bool value)

obool getChildValue(const osg::Node* child, unsigned int switchSet) const

obool setAllChildrenOff(unsigned int switchSet)
Set all the children off (false), and set the new default child value to off (false)

obool setAllChildrenOn(unsigned int switchSet)
Set all the children on (true), and set the new default child value to on (true)

obool setSingleChildOn(unsigned int switchSet, unsigned int pos)
Set a single child to be on, MultiSwitch off all other children

ovoid setActiveSwitchSet(unsigned int switchSet)
Set which of the available switch set lists to use

ounsigned int getActiveSwitchSet() const
Get which of the available switch set lists to use

otypedef std::vector<bool> ValueList

otypedef std::vector<ValueList> SwitchSetList

oconst SwitchSetList& getSwitchSetList() const

oconst ValueList& getValueList(unsigned int switchSet) const

ovirtual ~MultiSwitch()

ovoid expandToEncompassSwitchSet(unsigned int switchSet)

obool _newChildDefaultValue

ounsigned int _activeSwitchSet

oSwitchSetList _values


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.