Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
SoCounterAction Class Reference

#include <SoCounterAction.h>

+ Inheritance diagram for SoCounterAction:

Public Types

enum  LookFor { NODE = 1 , TYPE = 2 , NAME = 3 }
 

Public Member Functions

 SoCounterAction ()
 
virtual ~SoCounterAction ()
 
void setLookFor (LookFor)
 
void setType (const SoType, SbBool=TRUE)
 
int getCount () const
 

Static Public Member Functions

static void initClass (void)
 

Protected Member Functions

virtual void beginTraversal (SoNode *)
 

Detailed Description

Definition at line 36 of file SoCounterAction.h.

Member Enumeration Documentation

◆ LookFor

enum SoCounterAction::LookFor
Enumerator
NODE 
TYPE 
NAME 

Definition at line 42 of file SoCounterAction.h.

42{ NODE = 1,TYPE = 2, NAME = 3 };
@ NAME
Definition inflate.h:27
@ TYPE
Definition inflate.h:32

Constructor & Destructor Documentation

◆ SoCounterAction()

SoCounterAction::SoCounterAction ( )

Definition at line 56 of file SoCounterAction.cc.

57:fCount(0),fLookFor(NODE),fType(),fCheckDerived(TRUE) {
58 SO_ACTION_CONSTRUCTOR(SoCounterAction);
59}
#define TRUE
Definition globals.hh:41

Referenced by SoCounterAction().

◆ ~SoCounterAction()

SoCounterAction::~SoCounterAction ( )
virtual

Definition at line 60 of file SoCounterAction.cc.

60{}

Referenced by ~SoCounterAction().

Member Function Documentation

◆ beginTraversal()

void SoCounterAction::beginTraversal ( SoNode * node)
protectedvirtual

Definition at line 61 of file SoCounterAction.cc.

61 {
62 fCount = 0;
63 SoAction::beginTraversal(node);
64}

Referenced by beginTraversal().

◆ getCount()

int SoCounterAction::getCount ( ) const

Definition at line 104 of file SoCounterAction.cc.

104 {
105 return fCount;
106}

Referenced by getCount(), and G4OpenInventorViewer::SceneGraphStatistics().

◆ initClass()

void SoCounterAction::initClass ( void )
static

Definition at line 45 of file SoCounterAction.cc.

45 {
46 static bool first = true;
47 if (first) {
48 first = false;
49 SO_ACTION_INIT_CLASS(SoCounterAction,SoAction);
50
51 SO_ENABLE(SoCounterAction,SoSwitchElement);
52
53 SO_ACTION_ADD_METHOD(SoNode,SoCounterAction::actionMethod);
54 }
55}

◆ setLookFor()

void SoCounterAction::setLookFor ( LookFor aLookFor)

Definition at line 94 of file SoCounterAction.cc.

94 {
95 fLookFor = aLookFor;
96}

Referenced by G4OpenInventorViewer::SceneGraphStatistics(), and setLookFor().

◆ setType()

void SoCounterAction::setType ( const SoType aType,
SbBool aCheckDerived = TRUE )

Definition at line 97 of file SoCounterAction.cc.

97 {
98 fType = aType;
99 fCheckDerived = aCheckDerived;
100}

Referenced by G4OpenInventorViewer::SceneGraphStatistics(), and setType().


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