CEDRIC  Revision_backup-2009-02
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
TypedSwitch Class Reference

#include <TypedSwitch.h>

Inheritance diagram for TypedSwitch:

Public Types

enum  ReservedTypes { UNSPECIFIED =-1, GROUP =1 }
 
typedef TypedSwitch T
 

Public Member Functions

 TypedSwitch (std::string className)
 
virtual bool childrenAllowed ()
 
const std::string & getClassName () const
 
int getType () const
 
virtual bool addChild (osg::Node *child)
 
virtual bool insertChild (unsigned int index, osg::Node *child)
 
virtual bool setChild (unsigned int index, osg::Node *child)
 
virtual bool addChild (osg::Node *child, bool value)
 
virtual bool insertChild (unsigned int index, osg::Node *child, bool value)
 
virtual bool replaceChild (osg::Node *origChild, osg::Node *child)
 
virtual bool removeChildren (unsigned int pos, unsigned int numChildrenToRemove)
 

Protected Member Functions

void updateType (int type=UNSPECIFIED)
 

Protected Attributes

int m_type
 
std::string m_className
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
UNSPECIFIED 
GROUP 

Constructor & Destructor Documentation

TypedSwitch::TypedSwitch ( std::string  className)
inline

Member Function Documentation

virtual bool TypedSwitch::addChild ( osg::Node *  child)
inlinevirtual
virtual bool TypedSwitch::addChild ( osg::Node *  child,
bool  value 
)
inlinevirtual
virtual bool TypedSwitch::childrenAllowed ( )
inlinevirtual
const std::string& TypedSwitch::getClassName ( ) const
inline

References m_className.

int TypedSwitch::getType ( ) const
inline

References m_type.

Referenced by updateType().

virtual bool TypedSwitch::insertChild ( unsigned int  index,
osg::Node *  child 
)
inlinevirtual
virtual bool TypedSwitch::insertChild ( unsigned int  index,
osg::Node *  child,
bool  value 
)
inlinevirtual
virtual bool TypedSwitch::removeChildren ( unsigned int  pos,
unsigned int  numChildrenToRemove 
)
inlinevirtual

References updateType().

virtual bool TypedSwitch::replaceChild ( osg::Node *  origChild,
osg::Node *  child 
)
inlinevirtual

References updateType().

virtual bool TypedSwitch::setChild ( unsigned int  index,
osg::Node *  child 
)
inlinevirtual
void TypedSwitch::updateType ( int  type = UNSPECIFIED)
inlineprotected

Member Data Documentation

std::string TypedSwitch::m_className
protected

Referenced by getClassName().

int TypedSwitch::m_type
protected

Referenced by getType(), and updateType().