Geant4-11
Data Structures | Macros
SoAlternateRepAction.h File Reference
#include <Inventor/actions/SoAction.h>
#include <Inventor/actions/SoSubAction.h>

Go to the source code of this file.

Data Structures

class  SoAlternateRepAction
 

Macros

#define SO_ALTERNATEREP_DO_ACTION(aAction)
 
#define SoAlternateRepAction   Geant4_SoAlternateRepAction
 

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:27

Definition at line 50 of file SoAlternateRepAction.h.

◆ SoAlternateRepAction

#define SoAlternateRepAction   Geant4_SoAlternateRepAction

Definition at line 34 of file SoAlternateRepAction.h.