35#ifndef HEPVis_SoTubs_h
36#define HEPVis_SoTubs_h
38#include <Inventor/fields/SoSFFloat.h>
39#include <Inventor/fields/SoSFNode.h>
40#include <Inventor/fields/SoSFBool.h>
41#include <Inventor/nodes/SoShape.h>
69#define SoTubs Geant4_SoTubs
132 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er );
157 void generateChildren();
163 void updateChildren();
168 SoChildList *children;
173 void inc(
double & sinPhi,
double & cosPhi,
double sinDeltaPhi,
double cosDeltaPhi)
const {
174 double oldSin=sinPhi,oldCos=cosPhi;
175 sinPhi = oldSin*cosDeltaPhi+oldCos*sinDeltaPhi;
176 cosPhi = oldCos*cosDeltaPhi-oldSin*sinDeltaPhi;
#define SoTubs
SoTubs - Inventor version of the G4Tubs Geant Geometry entity.
virtual SoChildList * getChildren() const
GetChildList, required whenever the class has hidden children.
virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er)
compute bounding Box, required
SoSFFloat pDz
Half-length in Z.
virtual void clearAlternateRep()
We better be able to clear it, too!
SoSFNode alternateRep
Alternate rep - required.
virtual void generatePrimitives(SoAction *action)
Generate Primitives, required.
SoSFFloat pDPhi
Delta-angle, in radians.
virtual void generateAlternateRep()
SoSFFloat pSPhi
Starting angle, in radians.
static void initClass()
Class Initializer, required.
SoSFFloat pRMin
Inside radius of the tube.
SoSFFloat pRMax
Outside radius of the tube.