Open Inventor Release 2024.2.1
 
Loading...
Searching...
No Matches
PoBiErrorPointField.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_BI_ERROR_POINT_FIELD_
25#define _PO_BI_ERROR_POINT_FIELD_
26
27#include <MeshViz/graph/PoGraphMaster.h>
28
29
30#include <Inventor/fields/SoSFEnum.h>
31#include <Inventor/fields/SoMFFloat.h>
32#include <Inventor/fields/SoMFVec2f.h>
33#include <Inventor/fields/SoSFBool.h>
34
35
64
65 SO_KIT_HEADER(PoBiErrorPointField) ;
66
67 /* Define fields for new parts */
68 SO_KIT_CATALOG_ENTRY_HEADER(shapeSep) ;
69 SO_KIT_CATALOG_ENTRY_HEADER(shapeApp) ;
70 SO_KIT_CATALOG_ENTRY_HEADER(shape) ;
71
72 SO_KIT_CATALOG_ENTRY_HEADER(skeletonSep) ;
73 SO_KIT_CATALOG_ENTRY_HEADER(skeletonApp) ;
74 SO_KIT_CATALOG_ENTRY_HEADER(skeleton) ;
75
76
77 public:
78
88
89 /* Fields */
90
95
101
107
113
119
132
137
142
143
144
145 /* Methods */
146
151 { init(TRUE) ; }
152
157 PoBiErrorPointField(int numPoints, const SbVec2f *_point, const float *_lowX,
158 const float *_lowY, const float *_highX, const float *_highY,
159 VariationType type = REL_VARIATION, SbBool _isShapeVisible = TRUE,
160 SbBool _isSkeletonVisible = TRUE)
161 { init(FALSE, numPoints, _point, _lowX, _lowY, _highX, _highY, type,
162 _isShapeVisible, _isSkeletonVisible) ; }
163
167 virtual void rebuild() ;
168
169 /*----------------------------------------------------------------------------*/
170 private:
171 static void initClass() ;
172 static void exitClass() ;
173
174 private:
175 // Methods
176 // Destructor
177 virtual ~PoBiErrorPointField() ;
178 virtual void setDefaultOnNonWritingFields() ;
179 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
180
181 private:
182 // Init method
183 void init(SbBool isDefault, int numPoints=0, const SbVec2f *_point=NULL,
184 const float *_lowX=NULL, const float *_lowY=NULL,
185 const float *_highX=NULL, const float *_highY=NULL,
186 VariationType type = REL_VARIATION, SbBool _isShapeVisible = TRUE,
187 SbBool _isSkeletonVisible = TRUE) ;
188
189 // Sensors
190 FieldSensorList fieldSensorList ;
191
192 // List of fields defined in this class
193 SoFieldList fieldList ;
194
195} ;
196
197/*----------------------------------------------------------------------------*/
198
199#endif /* _PO_BI_ERROR_POINT_FIELD_ */
200
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Builds a bi-error point ...
virtual void rebuild()
Forces node-kit rebuilding.
SoSFBool isSkeletonVisible
Defines the visibility of the skeleton.
SoSFBool isShapeVisible
Defines the visibility of the shape.
PoBiErrorPointField(int numPoints, const SbVec2f *_point, const float *_lowX, const float *_lowY, const float *_highX, const float *_highY, VariationType type=REL_VARIATION, SbBool _isShapeVisible=TRUE, SbBool _isSkeletonVisible=TRUE)
Constructor.
PoBiErrorPointField()
Default constructor.
SoMFVec2f point
List of coordinates of the point field.
VariationType
Type of interpretation of the fields lowX,lowY and highX,highY.
SoMFFloat lowY
List of ordinates low errors.
SoMFFloat lowX
List of abscissas low errors.
SoSFEnum variationType
Defines the interpretation of the values lowX, lowY, highX, highY.
SoMFFloat highY
List of ordinates high errors.
SoMFFloat highX
List of abscissas high errors.
<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 a single Boolean value.
Definition SoSFBool.h:79
Field containing an enumerated value.
Definition SoSFEnum.h:89
int SbBool
Boolean type.
Definition SbBase.h:87