Geant4 11.2.2
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.

50#define SO_ALTERNATEREP_DO_ACTION(aAction) \
51 if(aAction->isOfType(SoAlternateRepAction::getClassTypeId())) {\
52 if(((SoAlternateRepAction*)aAction)->getGenerate()==TRUE) {\
53 if(alternateRep.getValue()==NULL) {\
54 generateAlternateRep();\
55 SoNode* altRep = alternateRep.getValue();\
56 if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
57 altRep->doAction(aAction);\
58 }\
59 } else {\
60 SoNode* altRep = alternateRep.getValue();\
61 if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
62 altRep->doAction(aAction);\
63 clearAlternateRep();\
64 }\
65 return;\
66 }

Referenced by Geant4_SoPolyhedron::doAction(), and SoDetectorTreeKit::doAction().

◆ SoAlternateRepAction

#define SoAlternateRepAction   Geant4_SoAlternateRepAction

Definition at line 34 of file SoAlternateRepAction.h.