Geant4-11
|
#include <SoTubs.h>
Public Member Functions | |
virtual void | clearAlternateRep () |
We better be able to clear it, too! More... | |
virtual void | generateAlternateRep () |
SoTubs () | |
Constructor, required. More... | |
Static Public Member Functions | |
static void | initClass () |
Class Initializer, required. More... | |
Data Fields | |
SoSFNode | alternateRep |
Alternate rep - required. More... | |
SoSFFloat | pDPhi |
Delta-angle, in radians. More... | |
SoSFFloat | pDz |
Half-length in Z. More... | |
SoSFFloat | pRMax |
Outside radius of the tube. More... | |
SoSFFloat | pRMin |
Inside radius of the tube. More... | |
SoSFFloat | pSPhi |
Starting angle, in radians. More... | |
Protected Member Functions | |
virtual void | computeBBox (SoAction *action, SbBox3f &box, SbVec3f ¢er) |
compute bounding Box, required More... | |
virtual void | generatePrimitives (SoAction *action) |
Generate Primitives, required. More... | |
virtual SoChildList * | getChildren () const |
GetChildList, required whenever the class has hidden children. More... | |
virtual | ~SoTubs () |
Destructor, required. More... | |
Private Member Functions | |
void | generateChildren () |
void | inc (double &sinPhi, double &cosPhi, double sinDeltaPhi, double cosDeltaPhi) const |
help with trigonometry. increments sines an cosines by an angle. More... | |
SO_NODE_HEADER (SoTubs) | |
void | updateChildren () |
Private Attributes | |
SoChildList * | children |
ChildList. Required whenever the class has hidden children. More... | |
SoTubs::SoTubs | ( | ) |
Constructor, required.
Definition at line 61 of file SoTubs.cc.
References M_PI.
|
protectedvirtual |
|
virtual |
We better be able to clear it, too!
Definition at line 469 of file SoTubs.cc.
References alternateRep.
|
protectedvirtual |
|
virtual |
Generate AlternateRep, required. Generating an alternate representation must be done upon users request. It allows an Inventor program to read back the file without requiring this code to be dynamically linked. If the users expects that this code will be dynamically linked, he need not invoke this method.
Definition at line 458 of file SoTubs.cc.
References alternateRep, children, generateChildren(), and updateChildren().
|
private |
Generate Children. Used to create the hidden children. Required whenever the node has hidden children.
Definition at line 434 of file SoTubs.cc.
References children.
Referenced by generateAlternateRep().
|
protectedvirtual |
Generate Primitives, required.
Definition at line 94 of file SoTubs.cc.
References geant4_check_module_cycles::action, GEN_VERTEX, inc(), M_PI, CLHEP::normal(), pDPhi, pDz, pRMax, pRMin, and pSPhi.
|
protectedvirtual |
|
inlineprivate |
help with trigonometry. increments sines an cosines by an angle.
Definition at line 173 of file SoTubs.h.
Referenced by generatePrimitives().
|
static |
Class Initializer, required.
Definition at line 84 of file SoTubs.cc.
Referenced by G4OpenInventor::InitNodes().
|
private |
|
private |
Used to modify hidden children when a data field is changed. Required whenever the class has hidden children.
Definition at line 265 of file SoTubs.cc.
References children, FCOS, FSIN, M_PI, pDPhi, pDz, G4InuclParticleNames::pp, pRMax, pRMin, and pSPhi.
Referenced by generateAlternateRep().
SoSFNode SoTubs::alternateRep |
Alternate rep - required.
Definition at line 101 of file SoTubs.h.
Referenced by clearAlternateRep(), and generateAlternateRep().
|
private |
ChildList. Required whenever the class has hidden children.
Definition at line 168 of file SoTubs.h.
Referenced by generateAlternateRep(), generateChildren(), getChildren(), updateChildren(), and ~SoTubs().
SoSFFloat SoTubs::pDPhi |
Delta-angle, in radians.
Definition at line 97 of file SoTubs.h.
Referenced by generatePrimitives(), and updateChildren().
SoSFFloat SoTubs::pDz |
Half-length in Z.
Definition at line 89 of file SoTubs.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTubs::pRMax |
Outside radius of the tube.
Definition at line 85 of file SoTubs.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTubs::pRMin |
Inside radius of the tube.
Definition at line 81 of file SoTubs.h.
Referenced by generatePrimitives(), and updateChildren().
SoSFFloat SoTubs::pSPhi |
Starting angle, in radians.
Definition at line 93 of file SoTubs.h.
Referenced by generatePrimitives(), and updateChildren().