CMS 3D CMS Logo

IgSoPolyVol.h

Go to the documentation of this file.
00001 #ifndef IG_OPEN_INVENTOR_IG_SO_POLY_VOL_H
00002 # define IG_OPEN_INVENTOR_IG_SO_POLY_VOL_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "Iguana/Inventor/interface/IgSoShapeKit.h"
00007 # include <Inventor/fields/SoSFFloat.h>
00008 # include <Inventor/fields/SoSFVec3f.h>
00009 # include <Inventor/fields/SoMFVec3f.h>
00010 # ifdef WIN32
00011 #  include <SoWinLeaveScope.h>
00012 # endif
00013 
00014 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00015 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00016 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00017 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00018 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00019 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00020 
00028 class IG_OPEN_INVENTOR_API IgSoPolyVol : public IgSoShapeKit
00029 {
00030     SO_KIT_HEADER (IgSoPolyVol);
00031     SO_KIT_CATALOG_ENTRY_HEADER (hints);
00032     SO_KIT_CATALOG_ENTRY_HEADER (trans);
00033     SO_KIT_CATALOG_ENTRY_HEADER (face);
00034 
00035 public:
00036     IgSoPolyVol (void);
00037     static void initClass (void);
00038 
00039     SoMFVec3f vtxPts;  //< vector of vertex locations
00040     SoSFVec3f center;  //< the center of the object
00041     SoSFFloat dZ;      //< the z half-length
00042 
00043     virtual void initialise (const int sides, const float dZHalf, 
00044                              const float *angles, const float *sideHalf);
00045 
00046 protected:
00047     virtual void refresh (void);
00048 };
00049 
00050 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00051 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00052 
00053 # ifdef WIN32
00054 #  include <SoWinEnterScope.h>
00055 # endif
00056 #endif // IG_OPEN_INVENTOR_IG_SO_POLY_VOL_H

Generated on Tue Jun 9 17:38:43 2009 for CMSSW by  doxygen 1.5.4