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
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;
virtual SoChildList * getChildren() const
GetChildList, required whenever the class has hidden children.
virtual ~SoTubs()
Destructor, required.
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.
SoChildList * children
ChildList. Required whenever the class has hidden children.
SoSFFloat pDPhi
Delta-angle, in radians.
void inc(double &sinPhi, double &cosPhi, double sinDeltaPhi, double cosDeltaPhi) const
help with trigonometry. increments sines an cosines by an angle.
virtual void generateAlternateRep()
SoSFFloat pSPhi
Starting angle, in radians.
static void initClass()
Class Initializer, required.
SoTubs()
Constructor, required.
SoSFFloat pRMin
Inside radius of the tube.
SoSFFloat pRMax
Outside radius of the tube.