Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
PoErrorCurve.h
Go to the documentation of this file.
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_CURVE_
25#define _PO_ERROR_CURVE_
26
28
32
59
61
62 /* Define fields for new parts */
63 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve1Sep) ;
64 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve1App) ;
65 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve1) ;
66
67 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve2Sep) ;
68 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve2App) ;
69 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve2) ;
70
71 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve3Sep) ;
72 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve3App) ;
73 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve3) ;
74
75 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve4Sep) ;
76 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve4App) ;
77 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve4) ;
78
79 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve5Sep) ;
80 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve5App) ;
81 SO_KIT_CATALOG_ENTRY_HEADER(errorCurve5) ;
82
83
84 public:
85
95
113
114
115
116 /* Fields */
117
122
128
134
148
155
156
157
158 /* Methods */
159
164 { init(TRUE) ; }
165
170 PoErrorCurve(int numPoints, const SbVec2f *_point, const float *_lowY,
171 const float *_highY, VariationType type = REL_VARIATION,
173 { init(FALSE, numPoints, _point, _lowY, _highY, type, rep) ; }
174
178 virtual void rebuild() ;
179
180 /*----------------------------------------------------------------------------*/
181
182
183 private:
184 static void initClass() ;
185 static void exitClass() ;
186
187 private:
188 // Methods
189 // Destructor
190 virtual ~PoErrorCurve() ;
191 virtual void setDefaultOnNonWritingFields() ;
192 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
193
194 private:
195 // Init method
196 void init(SbBool isDefault, int numPoints=0, const SbVec2f *_point=NULL,
197 const float *_lowY=NULL, const float *_highY=NULL,
199
200 // Sensors
201 FieldSensorList fieldSensorList ;
202
203 // List of fields defined in this class
204 SoFieldList fieldList ;
205
206} ;
207
208/*----------------------------------------------------------------------------*/
209
210#endif /* _PO_ERROR_CURVE_ */
211
#define TRUE
Possible value of SbBool.
Definition SbBase.h:77
#define FALSE
Possible value of SbBool.
Definition SbBase.h:75
#define SO_KIT_CATALOG_ENTRY_HEADER(partName)
Definition SoSubKit.h:107
#define SO_KIT_HEADER(className)
Definition SoSubKit.h:91
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to build an error ...
VariationType
Type of interpretation of the fields lowY and highY.
@ PERCENT_FIXED_VARIATION
PoErrorCurve(int numPoints, const SbVec2f *_point, const float *_lowY, const float *_highY, VariationType type=REL_VARIATION, ErrorCurveRep rep=HIGH_LOW_CLOSE)
Constructor.
SoSFEnum errorCurveRep
Defines the error curve representation.
SoSFEnum variationType
Defines the interpretation of the values lowY and highY.
SoMFFloat lowY
List of the low ordinates for the low curve.
SoMFFloat highY
List of the high ordinates for the high curve.
ErrorCurveRep
Type of error curve representation.
@ FILLED
The error curve is a filled representation.
@ HIGH_LOW_CLOSE
The error curve is a high low close representation.
@ LINE_BAR
The error curve is a line bar representation.
SoMFVec2f point
List of coordinates of the error curve.
PoErrorCurve()
Default constructor.
virtual void rebuild()
Forces node-kit rebuilding.
<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