00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _PO_ARROW3_
00025 #define _PO_ARROW3_
00026
00027 #include <MeshViz/graph/PoGraphMaster.h>
00028
00029
00030 #include <Inventor/fields/SoSFEnum.h>
00031 #include <Inventor/fields/SoSFFloat.h>
00032 #include <Inventor/fields/SoMFVec3f.h>
00033
00034
00064 class PoArrow3 : public PoGraphMaster {
00065
00066 SO_KIT_HEADER(PoArrow3) ;
00067
00068
00069 SO_KIT_CATALOG_ENTRY_HEADER(bodySep) ;
00070 SO_KIT_CATALOG_ENTRY_HEADER(bodyApp) ;
00071 SO_KIT_CATALOG_ENTRY_HEADER(body) ;
00072
00073 SO_KIT_CATALOG_ENTRY_HEADER(startSep) ;
00074 SO_KIT_CATALOG_ENTRY_HEADER(startApp) ;
00075 SO_KIT_CATALOG_ENTRY_HEADER(start) ;
00076
00077 SO_KIT_CATALOG_ENTRY_HEADER(endSep) ;
00078 SO_KIT_CATALOG_ENTRY_HEADER(endApp) ;
00079 SO_KIT_CATALOG_ENTRY_HEADER(end) ;
00080
00081
00082 public:
00083
00087 enum PatternType {
00091 NO_PATTERN,
00095 DIRECT_TRIANGLE,
00099 INDIRECT_TRIANGLE,
00103 RECTANGLE
00104 } ;
00105
00106
00107
00111 SoMFVec3f point ;
00112
00116 SoSFEnum startPatternType ;
00117
00121 SoSFEnum endPatternType ;
00122
00128 SoSFFloat patternWidth ;
00129
00135 SoSFFloat patternHeight ;
00136
00137
00138
00139
00140
00144 PoArrow3()
00145 { init(TRUE) ; }
00146
00151 PoArrow3(int numPoints, const SbVec3f *_point, PatternType startType = NO_PATTERN,
00152 PatternType endType = NO_PATTERN, float _patternWidth = 0.05f,
00153 float _patternHeight = 0.03f)
00154 { init(FALSE, numPoints, _point, startType, endType, _patternWidth, _patternHeight) ; }
00155
00159 virtual void rebuild() ;
00160
00161
00162
00163
00164 private:
00165 static void initClass() ;
00166 static void exitClass() ;
00167
00168 private:
00169
00170
00171 virtual ~PoArrow3() ;
00172 virtual void setDefaultOnNonWritingFields() ;
00173 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
00174
00175 private:
00176
00177 void init(SbBool isDefault, int numPoints = 0, const SbVec3f *_point = NULL,
00178 PatternType startType = NO_PATTERN, PatternType endType = NO_PATTERN,
00179 float _patternWidth = 0.05f, float _patternHeight = 0.03f) ;
00180
00181
00182 FieldSensorList fieldSensorList ;
00183
00184
00185 SoFieldList fieldList ;
00186
00187 } ;
00188
00189
00190
00191 #endif
00192
00193