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

#include <SoDetectorTreeKit.h>

+ Inheritance diagram for SoDetectorTreeKit:

Public Member Functions

 SoDetectorTreeKit ()
 
virtual SbBool affectsState () const
 
virtual void setPreview (SbBool Flag)
 
virtual SbBool getPreview () const
 
void setPreviewAndFull ()
 
virtual SoSeparator * getPreviewSeparator () const
 
virtual SoSeparator * getFullSeparator () const
 
virtual void generateAlternateRep ()
 
virtual void clearAlternateRep ()
 

Static Public Member Functions

static void initClass ()
 

Public Attributes

SoSFNode alternateRep
 

Protected Member Functions

virtual ~SoDetectorTreeKit ()
 
virtual void doAction (SoAction *)
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!//
 

Detailed Description

Definition at line 47 of file SoDetectorTreeKit.h.

Constructor & Destructor Documentation

◆ SoDetectorTreeKit()

SoDetectorTreeKit::SoDetectorTreeKit ( )

Definition at line 75 of file SoDetectorTreeKit.cc.

75 {
76 SO_KIT_CONSTRUCTOR(SoDetectorTreeKit);
77
78 SO_NODE_ADD_FIELD(alternateRep, (NULL));
79
80 SO_KIT_ADD_CATALOG_ENTRY ( topSeparator, SoSeparator, FALSE, this,\0, FALSE);
81 SO_KIT_ADD_CATALOG_ENTRY ( pickStyle, SoSeparator, TRUE , topSeparator,\0, TRUE);
82 SO_KIT_ADD_CATALOG_ENTRY ( appearance, SoAppearanceKit, TRUE, topSeparator ,\0, TRUE);
83 SO_KIT_ADD_CATALOG_ENTRY ( units, SoUnits, TRUE, topSeparator ,\0, TRUE);
84 SO_KIT_ADD_CATALOG_ENTRY ( transform, SoTransform, TRUE , topSeparator,\0, TRUE);
85 SO_KIT_ADD_CATALOG_ENTRY (texture2Transform, SoTexture2Transform, TRUE, topSeparator ,\0, TRUE);
86 SO_KIT_ADD_CATALOG_ENTRY ( childList, SoSwitch, FALSE, topSeparator,\0, FALSE);
87 SO_KIT_ADD_CATALOG_ENTRY ( previewSeparator, SoSeparator, FALSE, childList,\0, TRUE);
88 SO_KIT_ADD_CATALOG_ENTRY ( fullSeparator, SoSeparator, FALSE, childList,\0, TRUE);
89
90 SO_KIT_INIT_INSTANCE();
91 createInitialTree();
92}
#define TRUE
Definition globals.hh:41
#define FALSE
Definition globals.hh:38

Referenced by SoDetectorTreeKit().

◆ ~SoDetectorTreeKit()

SoDetectorTreeKit::~SoDetectorTreeKit ( )
protectedvirtual

Definition at line 95 of file SoDetectorTreeKit.cc.

95 {
96}

Referenced by ~SoDetectorTreeKit().

Member Function Documentation

◆ affectsState()

SbBool SoDetectorTreeKit::affectsState ( ) const
virtual

Definition at line 99 of file SoDetectorTreeKit.cc.

99 {
100 return FALSE;
101}

Referenced by affectsState().

◆ clearAlternateRep()

void SoDetectorTreeKit::clearAlternateRep ( )
virtual

Definition at line 229 of file SoDetectorTreeKit.cc.

229 {
230 alternateRep.setValue(NULL);
231}

Referenced by clearAlternateRep().

◆ doAction()

void SoDetectorTreeKit::doAction ( SoAction * aAction)
protectedvirtual

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

Definition at line 233 of file SoDetectorTreeKit.cc.

238{
240 SoBaseKit::doAction(aAction);
241}
#define SO_ALTERNATEREP_DO_ACTION(aAction)

Referenced by doAction().

◆ generateAlternateRep()

void SoDetectorTreeKit::generateAlternateRep ( )
virtual

Definition at line 225 of file SoDetectorTreeKit.cc.

225 {
226 alternateRep.setValue(topSeparator.getValue());
227}

Referenced by generateAlternateRep().

◆ getFullSeparator()

SoSeparator * SoDetectorTreeKit::getFullSeparator ( ) const
virtual

Definition at line 217 of file SoDetectorTreeKit.cc.

217 {
218 return (SoSeparator *) fullSeparator.getValue();
219}

Referenced by getFullSeparator().

◆ getPreview()

SbBool SoDetectorTreeKit::getPreview ( ) const
virtual

Definition at line 201 of file SoDetectorTreeKit.cc.

201 {
202 SoSwitch *theChildList = (SoSwitch *) childList.getValue();
203 if (theChildList->whichChild.getValue()==0) return TRUE;
204 return FALSE;
205}

Referenced by getPreview().

◆ getPreviewSeparator()

SoSeparator * SoDetectorTreeKit::getPreviewSeparator ( ) const
virtual

Definition at line 213 of file SoDetectorTreeKit.cc.

213 {
214 return (SoSeparator *) previewSeparator.getValue();
215}

Referenced by getPreviewSeparator().

◆ initClass()

void SoDetectorTreeKit::initClass ( )
static

Definition at line 66 of file SoDetectorTreeKit.cc.

66 {
67 static bool first = true;
68 if (first) {
69 first = false;
70 SO_KIT_INIT_CLASS(SoDetectorTreeKit,SoBaseKit,"BaseKit");
71 }
72}

◆ setPreview()

void SoDetectorTreeKit::setPreview ( SbBool Flag)
virtual

Definition at line 191 of file SoDetectorTreeKit.cc.

191 {
192 SoSwitch *theChildList = (SoSwitch *) childList.getValue();
193 if (Flag) {
194 theChildList->whichChild.setValue(0);
195 }
196 else {
197 theChildList->whichChild.setValue(1);
198 }
199}

Referenced by setPreview().

◆ setPreviewAndFull()

void SoDetectorTreeKit::setPreviewAndFull ( )

Definition at line 208 of file SoDetectorTreeKit.cc.

208 {
209 SoSwitch *theChildList = (SoSwitch *) childList.getValue();
210 theChildList->whichChild.setValue(SO_SWITCH_ALL);
211}

Referenced by setPreviewAndFull().

Member Data Documentation

◆ alternateRep

SoSFNode SoDetectorTreeKit::alternateRep

Definition at line 53 of file SoDetectorTreeKit.h.

Referenced by clearAlternateRep(), generateAlternateRep(), and SoDetectorTreeKit().


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