59 virtual bool removeChildren(
unsigned int pos,
unsigned int numChildrenToRemove);
The core osg library provides the basic scene graph classes such as Nodes, State and Drawables,...
Definition AlphaFunc:19
BoundingSphered BoundingSphere
Definition BoundingSphere:308
Copy Op(erator) used to control whether shallow or deep copy is used during copy construction and clo...
Definition CopyOp:41
@ SHALLOW_COPY
Definition CopyOp:47
virtual bool insertChild(unsigned int index, Node *child)
Insert Node to Group at specific location.
virtual bool addChild(Node *child)
Add Node to Group.
Base class for all internal nodes in the scene graph.
Definition Node:72
Visitor for type safe operations on osg::Nodes.
Definition NodeVisitor:82
bool getChildValue(const Node *child) const
void setNewChildDefaultValue(bool value)
Definition Switch:44
const ValueList & getValueList() const
Definition Switch:86
virtual bool addChild(Node *child, bool value)
void setChildValue(const Node *child, bool value)
virtual bool removeChildren(unsigned int pos, unsigned int numChildrenToRemove)
Remove children from Group.
bool setAllChildrenOff()
Set all the children off (false), and set the new default child value to off (false).
bool setSingleChildOn(unsigned int pos)
Set a single child on, switch off all other children.
virtual void traverse(NodeVisitor &nv)
Traverse downwards : calls children's accept method with NodeVisitor.
virtual bool insertChild(unsigned int index, Node *child)
Insert Node to Group at specific location.
virtual bool addChild(Node *child)
Add Node to Group.
virtual const Switch * asSwitch() const
convert 'const this' into a const Switch pointer if Node is a Switch, otherwise return 0.
Definition Switch:37
bool getValue(unsigned int pos) const
virtual BoundingSphere computeBound() const
Compute the bounding sphere around Node's geometry or children.
void setValue(unsigned int pos, bool value)
virtual Switch * asSwitch()
Convert 'this' into a Switch pointer if Node is a Switch, otherwise return 0.
Definition Switch:36
virtual bool insertChild(unsigned int index, Node *child, bool value)
ValueList _values
Definition Switch:96
std::vector< bool > ValueList
Definition Switch:82
Switch(const Switch &, const CopyOp ©op=CopyOp::SHALLOW_COPY)
Copy constructor using CopyOp to manage deep vs shallow copy.
void setValueList(const ValueList &values)
Definition Switch:84
bool setAllChildrenOn()
Set all the children on (true), and set the new default child value to on (true).
bool getNewChildDefaultValue() const
Definition Switch:46
bool _newChildDefaultValue
Definition Switch:95
virtual ~Switch()
Definition Switch:92
#define OSG_EXPORT
Definition Export:39