Geant4-11
|
#include <SoTrap.h>
Public Member Functions | |
virtual void | clearAlternateRep () |
We better be able to clear it, too! More... | |
virtual void | generateAlternateRep () |
SoTrap () | |
Constructor, required. More... | |
Static Public Member Functions | |
static void | initClass () |
Class Initializer, required. More... | |
Data Fields | |
SoSFNode | alternateRep |
Alternate rep - required. More... | |
SoSFFloat | pAlp1 |
SoSFFloat | pAlp2 |
SoSFFloat | pDx1 |
Half-length along x of the side at y=-pDy1 of the face at -pDz. More... | |
SoSFFloat | pDx2 |
Half-length along x of the side at y=+pDy1 of the face at -pDz. More... | |
SoSFFloat | pDx3 |
Half-length along x of the side at y=-pDy2 of the face at +pDz. More... | |
SoSFFloat | pDx4 |
Half-length along x of the side at y=+pDy2 of the face at +pDz. More... | |
SoSFFloat | pDy1 |
Half-length along y of the face at -pDz. More... | |
SoSFFloat | pDy2 |
Half-length along y of the face at +pDz. More... | |
SoSFFloat | pDz |
half-length along Z More... | |
SoSFFloat | pPhi |
SoSFFloat | pTheta |
Polar angle of the line joining the centres of the faces at -/+pDz. 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 | ~SoTrap () |
Destructor, required. More... | |
Private Member Functions | |
void | generateChildren () |
SO_NODE_HEADER (SoTrap) | |
void | updateChildren () |
Private Attributes | |
SoChildList * | children |
ChildList. Required whenever the class has hidden children. More... | |
SoTrap::SoTrap | ( | ) |
Constructor, required.
Definition at line 62 of file SoTrap.cc.
|
protectedvirtual |
|
virtual |
We better be able to clear it, too!
Definition at line 409 of file SoTrap.cc.
References alternateRep.
|
protectedvirtual |
compute bounding Box, required
Definition at line 252 of file SoTrap.cc.
References FCOS, FFABS, FSIN, FTAN, pAlp1, pAlp2, pDx1, pDx2, pDx3, pDx4, pDy1, pDy2, pDz, pPhi, and pTheta.
|
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 398 of file SoTrap.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 374 of file SoTrap.cc.
References children.
Referenced by generateAlternateRep().
|
protectedvirtual |
Generate Primitives, required.
Definition at line 100 of file SoTrap.cc.
References geant4_check_module_cycles::action, FCOS, FSIN, FTAN, GEN_VERTEX, CLHEP::normal(), pAlp1, pAlp2, pDx1, pDx2, pDx3, pDx4, pDy1, pDy2, pDz, pPhi, and pTheta.
|
protectedvirtual |
|
static |
Class Initializer, required.
Definition at line 89 of file SoTrap.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 278 of file SoTrap.cc.
References children, FCOS, FSIN, FTAN, CLHEP::detail::n, CLHEP::normal(), pAlp1, pAlp2, pDx1, pDx2, pDx3, pDx4, pDy1, pDy2, pDz, pPhi, and pTheta.
Referenced by generateAlternateRep().
SoSFNode SoTrap::alternateRep |
Alternate rep - required.
Definition at line 145 of file SoTrap.h.
Referenced by clearAlternateRep(), and generateAlternateRep().
|
private |
ChildList. Required whenever the class has hidden children.
Definition at line 210 of file SoTrap.h.
Referenced by generateAlternateRep(), generateChildren(), getChildren(), updateChildren(), and ~SoTrap().
SoSFFloat SoTrap::pAlp1 |
Angle with respect to the y axis from the centre of the side at y=-pDy1 to the centre at y=+pDy1 of the face at -pDz
Definition at line 135 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pAlp2 |
Angle with respect to the y axis from the centre of the side at y=-pDy2 to the centre at y=+pDy2 of the face at +pDz
Definition at line 140 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pDx1 |
Half-length along x of the side at y=-pDy1 of the face at -pDz.
Definition at line 114 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pDx2 |
Half-length along x of the side at y=+pDy1 of the face at -pDz.
Definition at line 118 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pDx3 |
Half-length along x of the side at y=-pDy2 of the face at +pDz.
Definition at line 126 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pDx4 |
Half-length along x of the side at y=+pDy2 of the face at +pDz.
Definition at line 130 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pDy1 |
Half-length along y of the face at -pDz.
Definition at line 110 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pDy2 |
Half-length along y of the face at +pDz.
Definition at line 122 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pDz |
half-length along Z
Definition at line 97 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pPhi |
Azimuthal angle of the line joing the centre of the face at -pDz to the centre of the face at +pDz
Definition at line 106 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().
SoSFFloat SoTrap::pTheta |
Polar angle of the line joining the centres of the faces at -/+pDz.
Definition at line 101 of file SoTrap.h.
Referenced by computeBBox(), generatePrimitives(), and updateChildren().