00001 #ifndef IG_OPEN_INVENTOR_IG_SO_AXIS_H 00002 # define IG_OPEN_INVENTOR_IG_SO_AXIS_H 00003 00004 //<<<<<< INCLUDES >>>>>> 00005 00006 # include "Iguana/Inventor/interface/IgSoShapeKit.h" 00007 # include <Inventor/fields/SoSFInt32.h> 00008 # include <Inventor/fields/SoSFFloat.h> 00009 # include <Inventor/fields/SoSFString.h> 00010 # include <Inventor/fields/SoSFBool.h> 00011 # ifdef WIN32 00012 # include <SoWinLeaveScope.h> 00013 # endif 00014 00015 //<<<<<< PUBLIC DEFINES >>>>>> 00016 //<<<<<< PUBLIC CONSTANTS >>>>>> 00017 //<<<<<< PUBLIC TYPES >>>>>> 00018 //<<<<<< PUBLIC VARIABLES >>>>>> 00019 //<<<<<< PUBLIC FUNCTIONS >>>>>> 00020 //<<<<<< CLASS DECLARATIONS >>>>>> 00021 00027 class IG_OPEN_INVENTOR_API IgSoAxis : public IgSoShapeKit 00028 { 00029 SO_KIT_HEADER (IgSoAxis); 00030 SO_KIT_CATALOG_ENTRY_HEADER (line); 00031 SO_KIT_CATALOG_ENTRY_HEADER (head); 00032 SO_KIT_CATALOG_ENTRY_HEADER (headTrans); 00033 SO_KIT_CATALOG_ENTRY_HEADER (headCone); 00034 SO_KIT_CATALOG_ENTRY_HEADER (markers); 00035 SO_KIT_CATALOG_ENTRY_HEADER (font); 00036 SO_KIT_CATALOG_ENTRY_HEADER (labelSep); 00037 SO_KIT_CATALOG_ENTRY_HEADER (labelTrans); 00038 SO_KIT_CATALOG_ENTRY_HEADER (labelText); 00039 00040 public: 00041 IgSoAxis (void); 00042 static void initClass (void); 00043 00044 SoSFInt32 divisions; //< Number of divisions 00045 SoSFFloat divisionLength; //< Length of one division in the default units 00046 SoSFString label; //< Axis label 00047 SoSFFloat totalLength; //< total Length of the axis including arrowhead for rendering with offset 00048 SoSFBool offset; //< flag indicating if offset is allowed 00049 00050 protected: 00051 virtual void refresh (void); 00052 }; 00053 00054 //<<<<<< INLINE PUBLIC FUNCTIONS >>>>>> 00055 //<<<<<< INLINE MEMBER FUNCTIONS >>>>>> 00056 00057 # ifdef WIN32 00058 # include <SoWinEnterScope.h> 00059 # endif 00060 #endif // IG_OPEN_INVENTOR_IG_SO_AXIS_H