Geant4-11
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes
SoAlternateRepAction Class Reference

#include <SoAlternateRepAction.h>

Inheritance diagram for SoAlternateRepAction:

Public Member Functions

SbBool getGenerate () const
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 
void setGenerate (SbBool)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 
 SoAlternateRepAction ()
 
virtual ~SoAlternateRepAction ()
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 

Static Public Member Functions

static void initClass (void)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 

Private Member Functions

 SO_ACTION_HEADER (SoAlternateRepAction)
 

Static Private Member Functions

static void nodeAction (SoAction *, SoNode *)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!// More...
 

Private Attributes

SbBool fGenerate
 

Detailed Description

Definition at line 36 of file SoAlternateRepAction.h.

Constructor & Destructor Documentation

◆ SoAlternateRepAction()

SoAlternateRepAction::SoAlternateRepAction ( )

Definition at line 55 of file SoAlternateRepAction.cc.

60{
61 SO_ACTION_CONSTRUCTOR(SoAlternateRepAction);
62}
#define FALSE
Definition: Globals.hh:23

◆ ~SoAlternateRepAction()

SoAlternateRepAction::~SoAlternateRepAction ( )
virtual

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 64 of file SoAlternateRepAction.cc.

68{
69}

Member Function Documentation

◆ getGenerate()

SbBool SoAlternateRepAction::getGenerate ( ) const

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 80 of file SoAlternateRepAction.cc.

84{
85 return fGenerate;
86}

References fGenerate.

◆ initClass()

void SoAlternateRepAction::initClass ( void  )
static

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 38 of file SoAlternateRepAction.cc.

42{
43 static bool first = true;
44 if (first) {
45 first = false;
46 SO_ACTION_INIT_CLASS(SoAlternateRepAction,SoAction);
47
48 SO_ENABLE(SoAlternateRepAction,SoSwitchElement); //SGI wants that.
49 SO_ENABLE(SoAlternateRepAction,SoCoordinateElement); //For SoMarkerSet.
50
51 SO_ACTION_ADD_METHOD(SoNode,nodeAction);
52 }
53}
static void nodeAction(SoAction *, SoNode *)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Referenced by G4OpenInventor::InitNodes().

◆ nodeAction()

void SoAlternateRepAction::nodeAction ( SoAction *  aThis,
SoNode *  aNode 
)
staticprivate

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 120 of file SoAlternateRepAction.cc.

126{
127 /*printf("debug : SoAlternateRepAction::nodeAction : %s %s\n",
128 aNode->getName().getString(),
129 aNode->getTypeId().getName().getString());*/
130 //SoAlternateRepAction* This = (SoAlternateRepAction*)aThis;
131
132 if(false) {}
133 // HEPVisUtils :
134 //else IF_CLASS(SoHighlightMaterial)
135 //else IF_CLASS(SoSplineCurve)
136
137 // Inventor :
138 else if(aNode->isOfType(SoGroup::getClassTypeId())) {
139 aNode->doAction(aThis);
140 }
141 else if(aNode->isOfType(SoCoordinate3::getClassTypeId())) { //For SoMakerSet.
142 aNode->doAction(aThis);
143 }
144 // Else :
145 else if(aNode->getField("alternateRep")!=NULL) {
146 aNode->doAction(aThis);
147 }
148
149}

◆ setGenerate()

void SoAlternateRepAction::setGenerate ( SbBool  aGenerate)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//

Definition at line 71 of file SoAlternateRepAction.cc.

76{
77 fGenerate = aGenerate;
78}

References fGenerate.

Referenced by G4OpenInventorViewer::WriteInventor().

◆ SO_ACTION_HEADER()

SoAlternateRepAction::SO_ACTION_HEADER ( SoAlternateRepAction  )
private

Field Documentation

◆ fGenerate

SbBool SoAlternateRepAction::fGenerate
private

Definition at line 47 of file SoAlternateRepAction.h.

Referenced by getGenerate(), and setGenerate().


The documentation for this class was generated from the following files: