15#ifndef HEPVis_SoPcons_h
16#define HEPVis_SoPcons_h
18#include <Inventor/C/errors/debugerror.h>
19#include <Inventor/fields/SoSFFloat.h>
20#include <Inventor/fields/SoMFFloat.h>
21#include <Inventor/fields/SoSFInt32.h>
22#include <Inventor/fields/SoSFNode.h>
23#include <Inventor/fields/SoSFBool.h>
24#include <Inventor/nodes/SoShape.h>
114 virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er );
148 void inc(
double & sinPhi,
double & cosPhi,
double sinDeltaPhi,
double cosDeltaPhi)
const {
149 double oldSin=sinPhi,oldCos=cosPhi;
150 sinPhi = oldSin*cosDeltaPhi+oldCos*sinDeltaPhi;
151 cosPhi = oldCos*cosDeltaPhi-oldSin*sinDeltaPhi;
SoMFFloat fRmax
Outside radii.
SoSFFloat fDPhi
Delta-angle, in radians.
SoSFNode alternateRep
Alternate rep required - for use by users without HEPVis shared objects.
SoSFFloat fSPhi
Starting angle, in radians.
virtual void clearAlternateRep()
We better be able to clear it, too!
std::unique_ptr< SoChildList > m_children
ChildList. Required whenever the class has hidden children.
SoPcons()
Constructor, required.
SoMFFloat fRmin
Inside radii.
virtual void generatePrimitives(SoAction *action)
Generate Primitives, required.
SoSFInt32 pOverrideNPhi
Override number of phi subdivision used for rendering shape (i.e.
void updateChildren()
Used to modify hidden children when a data field is changed.
static void initClass()
Class Initializer, required.
void inc(double &sinPhi, double &cosPhi, double sinDeltaPhi, double cosDeltaPhi) const
help with trigonometry. increments sines an cosines by an angle.
virtual void computeBBox(SoAction *action, SbBox3f &box, SbVec3f ¢er)
compute bounding Box, required
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.
SoMFFloat fDz
Z Positions.
virtual void generateAlternateRep()
Generate AlternateRep, required.