#include <HEPVis/actions/SoAlternateRepAction.h>
#include <Inventor/nodes/SoNode.h>
#include <Inventor/elements/SoSwitchElement.h>
#include <Inventor/elements/SoCoordinateElement.h>
#include <Inventor/nodes/SoGroup.h>
#include <Inventor/nodes/SoCoordinate3.h>
Go to the source code of this file.
◆ IF_CLASS
#define IF_CLASS |
( |
|
aClass | ) |
|
Value: if(aNode->isOfType(aClass::getClassTypeId())) {\
\
aClass* node = (aClass*)aNode;\
if(This->fGenerate==
TRUE) {\
if(node->alternateRep.getValue()==NULL) {\
node->generateAlternateRep();\
\
SoNode* altRep = node->alternateRep.getValue();\
if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
altRep->doAction(This);\
}\
} else {\
\
SoNode* altRep = node->alternateRep.getValue();\
if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
altRep->doAction(This);\
\
node->clearAlternateRep();\
}\
}
Definition at line 97 of file SoAlternateRepAction.cc.