CMS 3D CMS Logo

IgSoEllipsoid Class Reference

#include <Iguana/Inventor/interface/IgSoEllipsoid.h>

Inheritance diagram for IgSoEllipsoid:

IgSoShapeKit

List of all members.

Public Member Functions

 IgSoEllipsoid (void)

Static Public Member Functions

static void initClass (void)

Public Attributes

SoSFVec3f center
SoSFVec3f eigenvalues
SoSFRotation rotation

Protected Member Functions

virtual void refresh (void)

Private Member Functions

 SO_KIT_CATALOG_ENTRY_HEADER (sphere)
 SO_KIT_CATALOG_ENTRY_HEADER (scale)
 SO_KIT_CATALOG_ENTRY_HEADER (rot)
 SO_KIT_CATALOG_ENTRY_HEADER (trans)
 SO_KIT_HEADER (IgSoEllipsoid)


Detailed Description

/class IgSoEllipsoid

/brief Inventor version of an ellipsoid

/author Joe Boudreau /date Nov 11 1996

Definition at line 29 of file IgSoEllipsoid.h.


Constructor & Destructor Documentation

IgSoEllipsoid::IgSoEllipsoid ( void   ) 

Definition at line 26 of file IgSoEllipsoid.cc.

References center, eigenvalues, FALSE, rot, rotation, scale, IgSoShapeKit::setUpConnections(), and TRUE.

00027 {
00028     SO_KIT_CONSTRUCTOR (IgSoEllipsoid);
00029     SO_KIT_ADD_FIELD (eigenvalues, (1.0,1.0,1.0));
00030     SO_KIT_ADD_FIELD (rotation,    (SbVec3f (0,0,1),0));
00031     SO_KIT_ADD_FIELD (center,      (0,0,0));
00032 
00033     SO_KIT_ADD_CATALOG_ENTRY (trans,  SoTranslation, FALSE, separator,\x0, TRUE);
00034     SO_KIT_ADD_CATALOG_ENTRY (rot,    SoRotation, FALSE, separator,\x0, TRUE);
00035     SO_KIT_ADD_CATALOG_ENTRY (scale,  SoScale, FALSE, separator,\x0, TRUE);
00036     SO_KIT_ADD_CATALOG_ENTRY (sphere, SoSphere, FALSE, separator,\x0, TRUE);
00037     SO_KIT_INIT_INSTANCE ();
00038     setUpConnections (true, true);
00039 }


Member Function Documentation

void IgSoEllipsoid::initClass ( void   )  [static]

Reimplemented from IgSoShapeKit.

Definition at line 23 of file IgSoEllipsoid.cc.

Referenced by initNodes(), and initShapes().

00024 { SO_KIT_INIT_CLASS (IgSoEllipsoid, IgSoShapeKit, "IgSoShapeKit"); }

void IgSoEllipsoid::refresh ( void   )  [protected, virtual]

Reimplemented from IgSoShapeKit.

Definition at line 42 of file IgSoEllipsoid.cc.

References center, eigenvalues, rot, rotation, and scale.

00043 {
00044     SoTranslation    *trans  = new SoTranslation;
00045     SoRotation       *rot    = new SoRotation;
00046     SoScale          *scale  = new SoScale;
00047     SoSphere         *sphere = new SoSphere;
00048 
00049     rot->rotation = rotation;
00050     trans->translation = center;
00051     scale->scaleFactor = eigenvalues;
00052 
00053     setPart ("rot",    rot);
00054     setPart ("trans",  trans);
00055     setPart ("scale",  scale);
00056     setPart ("sphere", sphere);
00057 }

IgSoEllipsoid::SO_KIT_CATALOG_ENTRY_HEADER ( sphere   )  [private]

IgSoEllipsoid::SO_KIT_CATALOG_ENTRY_HEADER ( scale   )  [private]

IgSoEllipsoid::SO_KIT_CATALOG_ENTRY_HEADER ( rot   )  [private]

IgSoEllipsoid::SO_KIT_CATALOG_ENTRY_HEADER ( trans   )  [private]

IgSoEllipsoid::SO_KIT_HEADER ( IgSoEllipsoid   )  [private]


Member Data Documentation

SoSFVec3f IgSoEllipsoid::center

Definition at line 43 of file IgSoEllipsoid.h.

Referenced by IgSoEllipsoid(), and refresh().

SoSFVec3f IgSoEllipsoid::eigenvalues

Definition at line 41 of file IgSoEllipsoid.h.

Referenced by IgSoEllipsoid(), and refresh().

SoSFRotation IgSoEllipsoid::rotation

Definition at line 42 of file IgSoEllipsoid.h.

Referenced by IgSoEllipsoid(), and refresh().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:25:41 2009 for CMSSW by  doxygen 1.5.4