class SG_EXPORT osg::Switch: public Group

Switch - Group node which allows switching between children.

Inheritance:


Public Classes

[more]enum SwitchType

Public Methods

[more] Switch()
[more]virtual Object* clone() const
[more]virtual bool isSameKindAs(Object* obj)
[more]virtual const char* className() const
[more]virtual void accept(NodeVisitor& nv)
[more]virtual void traverse(NodeVisitor& nv)
[more]void setVal(int val)
[more]int getVal() const

Protected Fields

[more]int _value

Protected Methods

[more]virtual ~Switch()
[more]virtual bool readLocalData(Input& fr)
[more]virtual bool writeLocalData(Output& fw)


Inherited from Group:

Public Methods

ovirtual bool addChild( Node *child )
ovirtual bool removeChild( Node *child )
ovirtual bool replaceChild( Node *origChild, Node* newChild )
oint getNumChildren( void )
oNode* getChild( int i )
obool containsNode( Node* node )
oChildList::iterator findNode( Node* node )

Public

otypedef std::vector<ref_ptr<Node> > ChildList

Protected Fields

oChildList _children

Protected Methods

obool computeBound( void )


Inherited from Node:

Public Methods

oNode* cloneNode() const
ovirtual void ascend(NodeVisitor& nv)
ovoid setName( const std::string& name )
ovoid setName( const char* name )
oconst std::string& getName( void )
oconst ParentList& getParents() const
oGroup* getParent(int i) const
oint getNumParents() const
ovoid setUserData(void* data, MemoryAdapter* ma=0L)
ovoid* getUserData() const
oMemoryAdapter* getMemoryAdapter() const
ovoid setNodeMask(NodeMask nm)
oNodeMask getNodeMask()
oconst DescriptionList& getDescriptions() const
oDescriptionList& getDescriptions()
oconst std::string& getDescription(int i) const
ostd::string& getDescription(int i)
oint getNumDescriptions() const
ovoid addDescription(const std::string& desc)
oconst BoundingSphere& getBound()
ovoid dirtyBound()

Public

otypedef std::vector<Group*> ParentList
otypedef unsigned int NodeMask
otypedef std::vector<std::string> DescriptionList

Protected Fields

oBoundingSphere _bsphere
obool _bsphere_computed
ostd::string _name
oParentList _parents
ofriend Group
ovoid* _userData
oref_ptr<MemoryAdapter> _memoryAdapter
oNodeMask _nodeMask
oDescriptionList _descriptions


Inherited from Object:

Public Methods

ovirtual Object* readClone(Input& fr)
ovirtual bool write(Output& fw)


Inherited from Referenced:

Public Methods

oReferenced& operator = (Referenced&)
ovoid ref()
ovoid unref()
oint referenceCount()

Protected Fields

oint _refCount


Documentation

Switch - Group node which allows switching between children. Typical uses would be for objects which might need to be rendered differently at different times, for instance a switch could be used to represent the different states of a traffic light.
oenum SwitchType

o ALL_CHILDREN_ON

o ALL_CHILDREN_OFF

o Switch()

ovirtual Object* clone() const

ovirtual bool isSameKindAs(Object* obj)

ovirtual const char* className() const

ovirtual void accept(NodeVisitor& nv)

ovirtual void traverse(NodeVisitor& nv)

ovoid setVal(int val)

oint getVal() const

ovirtual ~Switch()

ovirtual bool readLocalData(Input& fr)

ovirtual bool writeLocalData(Output& fw)

oint _value


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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