14#ifndef OSG_MULTISWITCH
15#define OSG_MULTISWITCH 1
49 void setValue(
unsigned int switchSet,
unsigned int pos,
bool value);
51 bool getValue(
unsigned int switchSet,
unsigned int pos)
const;
88 void setValueName(
unsigned int switchSet,
const std::string& name);
90 const std::string&
getValueName(
unsigned int switchSet)
const {
return _valueNames[switchSet]; }
Definition MultiSwitch:26
virtual bool insertChild(unsigned int index, osg::Node *child)
virtual bool addChild(osg::Node *child)
unsigned int _activeSwitchSet
Definition MultiSwitch:100
bool setSingleChildOn(unsigned int switchSet, unsigned int pos)
void setNewChildDefaultValue(bool value)
Definition MultiSwitch:39
const ValueList & getValueList(unsigned int switchSet) const
Definition MultiSwitch:86
SwitchSetList _values
Definition MultiSwitch:101
virtual bool removeChild(osg::Node *child)
virtual void traverse(osg::NodeVisitor &nv)
void setValueList(unsigned int switchSet, const ValueList &values)
SwitchSetNameList _valueNames
Definition MultiSwitch:102
void setSwitchSetList(const SwitchSetList &switchSetList)
std::vector< bool > ValueList
Definition MultiSwitch:72
bool getNewChildDefaultValue() const
Definition MultiSwitch:41
bool getValue(unsigned int switchSet, unsigned int pos) const
void setActiveSwitchSet(unsigned int switchSet)
Definition MultiSwitch:67
const SwitchSetList & getSwitchSetList() const
Definition MultiSwitch:80
std::vector< ValueList > SwitchSetList
Definition MultiSwitch:73
std::vector< std::string > SwitchSetNameList
Definition MultiSwitch:74
void setValueName(unsigned int switchSet, const std::string &name)
bool getChildValue(const osg::Node *child, unsigned int switchSet) const
virtual ~MultiSwitch()
Definition MultiSwitch:94
void expandToEncompassSwitchSet(unsigned int switchSet)
META_Node(osgSim, MultiSwitch)
bool _newChildDefaultValue
Definition MultiSwitch:99
MultiSwitch(const MultiSwitch &, const osg::CopyOp ©op=osg::CopyOp::SHALLOW_COPY)
bool setAllChildrenOff(unsigned int switchSet)
unsigned int getActiveSwitchSet() const
Definition MultiSwitch:70
const std::string & getValueName(unsigned int switchSet) const
Definition MultiSwitch:90
bool setAllChildrenOn(unsigned int switchSet)
void setValue(unsigned int switchSet, unsigned int pos, bool value)
void setChildValue(const osg::Node *child, unsigned int switchSet, bool value)
@ SHALLOW_COPY
Definition CopyOp:47
Definition NodeVisitor:82
Definition BlinkSequence:27
#define OSGSIM_EXPORT
Definition osgSim/Export:38