36 #ifndef HEPVis_SoTubs_h
37 #define HEPVis_SoTubs_h
39 #include <Inventor/fields/SoSFFloat.h>
40 #include <Inventor/fields/SoSFNode.h>
41 #include <Inventor/fields/SoSFBool.h>
42 #include <Inventor/nodes/SoShape.h>
70 #define SoTubs Geant4_SoTubs
133 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er );
174 void inc(
double & sinPhi,
double & cosPhi,
double sinDeltaPhi,
double cosDeltaPhi)
const {
175 double oldSin=sinPhi,oldCos=cosPhi;
176 sinPhi = oldSin*cosDeltaPhi+oldCos*sinDeltaPhi;
177 cosPhi = oldCos*cosDeltaPhi-oldSin*sinDeltaPhi;
SoChildList * children
ChildList. Required whenever the class has hidden children.
virtual void clearAlternateRep()
We better be able to clear it, too!
SoTubs()
Constructor, required.
SoSFFloat pRMax
Outside radius of the tube.
virtual void generateAlternateRep()
void inc(double &sinPhi, double &cosPhi, double sinDeltaPhi, double cosDeltaPhi) const
help with trigonometry. increments sines an cosines by an angle.
virtual SoChildList * getChildren() const
GetChildList, required whenever the class has hidden children.
SoSFNode alternateRep
Alternate rep - required.
virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er)
compute bounding Box, required
virtual ~SoTubs()
Destructor, required.
static void initClass()
Class Initializer, required.
virtual void generatePrimitives(SoAction *action)
Generate Primitives, required.
SoSFFloat pRMin
Inside radius of the tube.
SoSFFloat pSPhi
Starting angle, in radians.
SoSFFloat pDz
Half-length in Z.
SoSFFloat pDPhi
Delta-angle, in radians.