|
ATLAS Offline Software
|
Go to the documentation of this file.
12 #ifndef HEPVis_SoCons_h
13 #define HEPVis_SoCons_h
15 #include <Inventor/C/errors/debugerror.h>
16 #include <Inventor/fields/SoSFFloat.h>
17 #include <Inventor/fields/SoSFInt32.h>
18 #include <Inventor/fields/SoSFNode.h>
19 #include <Inventor/fields/SoSFBool.h>
20 #include <Inventor/nodes/SoShape.h>
169 void inc(
double & sinPhi,
double & cosPhi,
double sinDeltaPhi,
double cosDeltaPhi)
const {
170 double oldSin=sinPhi,oldCos=cosPhi;
171 sinPhi = oldSin*cosDeltaPhi+oldCos*sinDeltaPhi;
172 cosPhi = oldCos*cosDeltaPhi-oldSin*sinDeltaPhi;
SoSFFloat fDz
Half-length along Z.
SoSFFloat fRmax2
Outside radius at +fDz.
SoSFFloat fDPhi
Delta-angle, in radians.
SoSFFloat fSPhi
Starting angle, in radians.
virtual void clearAlternateRep()
We better be able to clear it, too!
void updateChildren()
Used to modify hidden children when a data field is changed.
SoSFNode alternateRep
Alternate rep required - for use by users without HEPVis shared objects.
SoSFFloat fRmin1
Inside radius at -fDz.
virtual void generatePrimitives(SoAction *action)
Generate Primitives, required.
SoCons()
Constructor, required.
virtual ~SoCons()
Destructor, required.
SoSFInt32 pOverrideNPhi
Override number of phi subdivision used for rendering shape (i.e.
SoChildList * m_children
ChildList. Required whenever the class has hidden children.
virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er)
compute bounding Box, required
virtual SoChildList * getChildren() const
GetChildList, required whenever the class has hidden children.
void inc(double &sinPhi, double &cosPhi, double sinDeltaPhi, double cosDeltaPhi) const
help with trigonometry. increments sines an cosines by an angle.
static void initClass()
Class Initializer, required.
SoCons - Inventor version of the G4Cons Geant Geometry entity.
SoSFBool smoothDraw
An Inventor option - slightly better render, worse performance.
void generateChildren()
Generate Children.
SoSFFloat fRmax1
Outside radius at -fDz.
SoSFFloat fRmin2
Inside radius at +fDz.
virtual void generateAlternateRep()
Generate AlternateRep, required.