|
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>
165 void inc(
double & sinPhi,
double & cosPhi,
double sinDeltaPhi,
double cosDeltaPhi)
const {
166 double oldSin=sinPhi,oldCos=cosPhi;
167 sinPhi = oldSin*cosDeltaPhi+oldCos*sinDeltaPhi;
168 cosPhi = oldCos*cosDeltaPhi-oldSin*sinDeltaPhi;
SoSFFloat fDz
Half-length along Z.
std::unique_ptr< SoChildList > m_children
ChildList. Required whenever the class has hidden children.
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.
SoSFInt32 pOverrideNPhi
Override number of phi subdivision used for rendering shape (i.e.
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.