Geant4  10.02.p03
SoTubs Class Reference

#include <SoTubs.h>

Inheritance diagram for SoTubs:
Collaboration diagram for SoTubs:

Public Member Functions

 SoTubs ()
 Constructor, required. More...
 
virtual void generateAlternateRep ()
 
virtual void clearAlternateRep ()
 We better be able to clear it, too! More...
 

Static Public Member Functions

static void initClass ()
 Class Initializer, required. More...
 

Public Attributes

SoSFFloat pRMin
 Inside radius of the tube. More...
 
SoSFFloat pRMax
 Outside radius of the tube. More...
 
SoSFFloat pDz
 Half-length in Z. More...
 
SoSFFloat pSPhi
 Starting angle, in radians. More...
 
SoSFFloat pDPhi
 Delta-angle, in radians. More...
 
SoSFNode alternateRep
 Alternate rep - required. More...
 

Protected Member Functions

virtual void computeBBox (SoAction *action, SbBox3f &box, SbVec3f &center)
 compute bounding Box, required More...
 
virtual void generatePrimitives (SoAction *action)
 Generate Primitives, required. More...
 
virtual SoChildList * getChildren () const
 GetChildList, required whenever the class has hidden children. More...
 
virtual ~SoTubs ()
 Destructor, required. More...
 

Private Member Functions

 SO_NODE_HEADER (SoTubs)
 
void generateChildren ()
 
void updateChildren ()
 
void inc (double &sinPhi, double &cosPhi, double sinDeltaPhi, double cosDeltaPhi) const
 help with trigonometry. increments sines an cosines by an angle. More...
 

Private Attributes

SoChildList * children
 ChildList. Required whenever the class has hidden children. More...
 

Detailed Description

Definition at line 72 of file SoTubs.h.

Constructor & Destructor Documentation

◆ SoTubs()

SoTubs::SoTubs ( )

Constructor, required.

◆ ~SoTubs()

virtual SoTubs::~SoTubs ( )
protectedvirtual

Destructor, required.

Member Function Documentation

◆ clearAlternateRep()

virtual void SoTubs::clearAlternateRep ( )
virtual

We better be able to clear it, too!

◆ computeBBox()

virtual void SoTubs::computeBBox ( SoAction *  action,
SbBox3f &  box,
SbVec3f &  center 
)
protectedvirtual

compute bounding Box, required

◆ generateAlternateRep()

virtual void SoTubs::generateAlternateRep ( )
virtual

Generate AlternateRep, required. Generating an alternate representation must be done upon users request. It allows an Inventor program to read back the file without requiring this code to be dynamically linked. If the users expects that this code will be dynamically linked, he need not invoke this method.

◆ generateChildren()

void SoTubs::generateChildren ( )
private

Generate Children. Used to create the hidden children. Required whenever the node has hidden children.

◆ generatePrimitives()

virtual void SoTubs::generatePrimitives ( SoAction *  action)
protectedvirtual

Generate Primitives, required.

◆ getChildren()

virtual SoChildList* SoTubs::getChildren ( ) const
protectedvirtual

GetChildList, required whenever the class has hidden children.

◆ inc()

void SoTubs::inc ( double &  sinPhi,
double &  cosPhi,
double  sinDeltaPhi,
double  cosDeltaPhi 
) const
inlineprivate

help with trigonometry. increments sines an cosines by an angle.

Definition at line 174 of file SoTubs.h.

174  {
175  double oldSin=sinPhi,oldCos=cosPhi;
176  sinPhi = oldSin*cosDeltaPhi+oldCos*sinDeltaPhi;
177  cosPhi = oldCos*cosDeltaPhi-oldSin*sinDeltaPhi;
178  }

◆ initClass()

static void SoTubs::initClass ( )
static

Class Initializer, required.

◆ SO_NODE_HEADER()

SoTubs::SO_NODE_HEADER ( SoTubs  )
private

◆ updateChildren()

void SoTubs::updateChildren ( )
private

Used to modify hidden children when a data field is changed. Required whenever the class has hidden children.

Member Data Documentation

◆ alternateRep

SoSFNode SoTubs::alternateRep

Alternate rep - required.

Definition at line 102 of file SoTubs.h.

◆ children

SoChildList* SoTubs::children
private

ChildList. Required whenever the class has hidden children.

Definition at line 169 of file SoTubs.h.

◆ pDPhi

SoSFFloat SoTubs::pDPhi

Delta-angle, in radians.

Definition at line 98 of file SoTubs.h.

◆ pDz

SoSFFloat SoTubs::pDz

Half-length in Z.

Definition at line 90 of file SoTubs.h.

◆ pRMax

SoSFFloat SoTubs::pRMax

Outside radius of the tube.

Definition at line 86 of file SoTubs.h.

◆ pRMin

SoSFFloat SoTubs::pRMin

Inside radius of the tube.

Definition at line 82 of file SoTubs.h.

◆ pSPhi

SoSFFloat SoTubs::pSPhi

Starting angle, in radians.

Definition at line 94 of file SoTubs.h.


The documentation for this class was generated from the following file: