CEDRIC  Revision_backup-2009-02
Classes | Macros
TypedSwitch.h File Reference
#include <osg/Switch>
#include <osg/Node>
#include <string>

Go to the source code of this file.

Classes

class  TypedSwitch
 

Macros

#define TYPEDSWITCH_ADDCHILD_MACRO(OSGADDFUNC)
 

Macro Definition Documentation

#define TYPEDSWITCH_ADDCHILD_MACRO (   OSGADDFUNC)
Value:
T* node = dynamic_cast<T*>( child ); \
if( node && !childrenAllowed() \
&& !(node->getClassName().compare(getClassName())==0) )\
return false; \
if( !OSGADDFUNC ) return false; \
if( node ) updateType( node->getType() ); \
return true;

Referenced by TypedSwitch::addChild(), TypedSwitch::insertChild(), and TypedSwitch::setChild().