Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
SoAlternateRepAction.h File Reference
#include <Inventor/actions/SoAction.h>
#include <Inventor/actions/SoSubAction.h>

Go to the source code of this file.

Classes

class  SoAlternateRepAction
 

Macros

#define SoAlternateRepAction   Geant4_SoAlternateRepAction
 
#define SO_ALTERNATEREP_DO_ACTION(aAction)
 

Macro Definition Documentation

◆ SO_ALTERNATEREP_DO_ACTION

#define SO_ALTERNATEREP_DO_ACTION (   aAction)
Value:
if(aAction->isOfType(SoAlternateRepAction::getClassTypeId())) {\
if(((SoAlternateRepAction*)aAction)->getGenerate()==TRUE) {\
if(alternateRep.getValue()==NULL) {\
generateAlternateRep();\
SoNode* altRep = alternateRep.getValue();\
if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
altRep->doAction(aAction);\
}\
} else {\
SoNode* altRep = alternateRep.getValue();\
if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
altRep->doAction(aAction);\
clearAlternateRep();\
}\
return;\
}
#define TRUE
Definition: globals.hh:41

Definition at line 50 of file SoAlternateRepAction.h.

◆ SoAlternateRepAction

#define SoAlternateRepAction   Geant4_SoAlternateRepAction

Definition at line 34 of file SoAlternateRepAction.h.