CMS 3D CMS Logo

IgSoCircleArc.h

Go to the documentation of this file.
00001 #ifndef IG_OPEN_INVENTOR_IG_SO_CIRCLE_ARC_H
00002 # define IG_OPEN_INVENTOR_IG_SO_CIRCLE_ARC_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "Iguana/Inventor/interface/IgSoShapeKit.h"
00007 # include <Inventor/fields/SoSFFloat.h>
00008 # include <Inventor/fields/SoSFVec2f.h>
00009 # ifdef WIN32
00010 #  include <SoWinLeaveScope.h>
00011 # endif
00012 
00013 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00014 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00015 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00016 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00017 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00018 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00019 
00020 /*
00021  * Circle arc in the (x,y) plane centered at center with radius radius, 
00022  * that spans an angle sweepAngle in degrees starting along the x axis
00023  *
00024  * Laurent Duflot   April 2002
00025  */
00026 class IG_OPEN_INVENTOR_API IgSoCircleArc : public IgSoShapeKit
00027 {
00028     SO_KIT_HEADER (IgSoCircleArc);
00029     SO_KIT_CATALOG_ENTRY_HEADER (line);
00030 
00031 public:
00032     IgSoCircleArc (void);
00033     static void initClass (void);
00034 
00035     SoSFVec2f center;     //< disk center
00036     SoSFFloat radius;     //< circle radius
00037     SoSFFloat sweepAngle; //< angle that the disk spans, starting along the x axis
00038 
00039 protected:
00040     virtual void refresh (void);
00041 };
00042 
00043 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00044 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00045 
00046 # ifdef WIN32
00047 #  include <SoWinEnterScope.h>
00048 # endif
00049 #endif // IG_OPEN_INVENTOR_IG_SO_CIRCLE_ARC_H

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