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>
131 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er );
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;
virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er)
compute bounding Box, required
SoCons()
Constructor, required.
SoSFFloat fDPhi
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.
SoSFInt32 pOverrideNPhi
Override number of phi subdivision used for rendering shape (i.e.
virtual void generateAlternateRep()
Generate AlternateRep, required.
virtual void clearAlternateRep()
We better be able to clear it, too!
static void initClass()
Class Initializer, required.
SoSFFloat fSPhi
Starting angle, in radians.
SoSFFloat fRmax2
Outside radius at +fDz.
std::unique_ptr< SoChildList > m_children
ChildList. Required whenever the class has hidden children.
virtual void generatePrimitives(SoAction *action)
Generate Primitives, required.
SoSFFloat fRmax1
Outside radius at -fDz.
SoSFFloat fRmin1
Inside radius at -fDz.
SoSFFloat fRmin2
Inside radius at +fDz.
SoSFNode alternateRep
Alternate rep required - for use by users without HEPVis shared objects.
void updateChildren()
Used to modify hidden children when a data field is changed.
SoSFFloat fDz
Half-length along Z.
void generateChildren()
Generate Children.
virtual SoChildList * getChildren() const
GetChildList, required whenever the class has hidden children.
SoSFBool smoothDraw
An Inventor option - slightly better render, worse performance.