Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoErrorPointField.h
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PO_ERROR_POINT_FIELD_
25#define _PO_ERROR_POINT_FIELD_
26
27#include <MeshViz/graph/PoGraphMaster.h>
28
29#include <Inventor/fields/SoSFEnum.h>
30#include <Inventor/fields/SoMFFloat.h>
31#include <Inventor/fields/SoMFVec2f.h>
32
58
59 SO_KIT_HEADER(PoErrorPointField) ;
60
61 /* Define fields for new parts */
62 SO_KIT_CATALOG_ENTRY_HEADER(shapeSep) ;
63 SO_KIT_CATALOG_ENTRY_HEADER(shapeApp) ;
64 SO_KIT_CATALOG_ENTRY_HEADER(shape) ;
65
66 SO_KIT_CATALOG_ENTRY_HEADER(skeletonSep) ;
67 SO_KIT_CATALOG_ENTRY_HEADER(skeletonApp) ;
68 SO_KIT_CATALOG_ENTRY_HEADER(skeleton) ;
69
70
71 public:
72
94
120
121
122
123 /* Fields */
124
129
135
141
147
153
154
155
156 /* Methods */
157
162 { init(TRUE) ; }
163
168 PoErrorPointField(int numPoints, const SbVec2f *_point, const float *_errorX,
169 const float *_errorY, ShapeType _shapeType = RECTANGLE_SHAPE,
170 SkeletonType _skeletonType = CROSS1_SKELETON)
171 { init(FALSE, numPoints, _point, _errorX, _errorY, _shapeType, _skeletonType) ; }
172
176 virtual void rebuild() ;
177
178 /*----------------------------------------------------------------------------*/
179
180
181 private:
182 static void initClass() ;
183 static void exitClass() ;
184
185 private:
186 // Methods
187 // Destructor
188 virtual ~PoErrorPointField() ;
189 virtual void setDefaultOnNonWritingFields() ;
190 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
191
192 private:
193 // Init method
194 void init(SbBool isDefault, int numPoints=0, const SbVec2f *_point=NULL,
195 const float *_errorX=NULL, const float *_errorY=NULL, ShapeType
196 _shapeType = RECTANGLE_SHAPE, SkeletonType _skeletonType =
198
199 // Sensors
200 FieldSensorList fieldSensorList ;
201
202 // List of fields defined in this class
203 SoFieldList fieldList ;
204
205} ;
206
207/*----------------------------------------------------------------------------*/
208
209#endif /* _PO_ERROR_POINT_FIELD_ */
210
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Builds points field with...
SkeletonType
Type of skeleton used to represent each point.
@ NO_SKELETON
No skeleton for the point field.
@ BAR_SKELETON
Bar skeleton for the point field.
@ CROSS1_SKELETON
x skeleton for the point field.
SoMFFloat errorY
List of ordinates errors.
SoMFVec2f point
List of coordinates of the point field.
virtual void rebuild()
Forces node-kit rebuilding.
SoSFEnum shapeType
Defines the shape associated to errors.
SoSFEnum skeletonType
Defines the skeleton associated to errors.
PoErrorPointField()
Default constructor.
PoErrorPointField(int numPoints, const SbVec2f *_point, const float *_errorX, const float *_errorY, ShapeType _shapeType=RECTANGLE_SHAPE, SkeletonType _skeletonType=CROSS1_SKELETON)
Constructor.
SoMFFloat errorX
List of abscissas errors.
ShapeType
Type of shape used to represent each point.
@ RECTANGLE_SHAPE
Rectangle shape for the point field.
@ QUADRANGLE_SHAPE
Quadrangle shape for the point field.
@ ELLIPSE_SHAPE
Ellipse shape for the point field.
@ NO_SHAPE
No shape for the point field.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
2D vector class.
Definition SbVec.h:76
Maintains a list of pointers to fields.
Definition SoFieldList.h:72
Multiple-value field containing any number of floating point values.
Definition SoMFFloat.h:90
Multiple-value field containing any number of two-dimensional vectors.
Definition SoMFVec2f.h:89
Field containing an enumerated value.
Definition SoSFEnum.h:89
int SbBool
Boolean type.
Definition SbBase.h:87