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();\
}\
}
97#define IF_CLASS(aClass) \
98 if(aNode->isOfType(aClass::getClassTypeId())) {\
99 \
100 aClass* node = (aClass*)aNode;\
101 if(This->fGenerate==TRUE) {\
102 if(node->alternateRep.getValue()==NULL) {\
103 node->generateAlternateRep();\
104 \
105 SoNode* altRep = node->alternateRep.getValue();\
106 if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
107 altRep->doAction(This);\
108 }\
109 } else {\
110 \
111 SoNode* altRep = node->alternateRep.getValue();\
112 if((altRep!=NULL) && altRep->isOfType(SoGroup::getClassTypeId()))\
113 altRep->doAction(This);\
114 \
115 node->clearAlternateRep();\
116 }\
117 }