Open Inventor Release 2024.1.1
 
Loading...
Searching...
No Matches
PoValuedMarkerField.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_VALUED_MARKER_FIELD_
25#define _PO_VALUED_MARKER_FIELD_
26
27#include <MeshViz/graph/PoGraphMaster.h>
28
29#include <Inventor/fields/SoMFFloat.h>
30#include <Inventor/fields/SoMFVec2f.h>
31#include <Inventor/fields/SoSFString.h>
32
33class PbDataMapping ;
34
69
70 SO_KIT_HEADER(PoValuedMarkerField) ;
71
72 /* Define fields for new parts */
73 SO_KIT_CATALOG_ENTRY_HEADER(valuedMarkerField) ;
74
75
76 public:
77
78 /* Fields */
79
84
92
99
107
108
109
110 /* Methods */
111
116 { init(TRUE) ; }
117
122 PoValuedMarkerField(int numPoints, const SbVec2f *_point, const float *_value,
123 const float *_size)
124 { init(FALSE, numPoints, _point, _value, _size) ; }
125
129 virtual void rebuild() ;
130
138 void setDataMapping(PbDataMapping *dataMapping) ;
139
145
146 /*----------------------------------------------------------------------------*/
147
148
149 private:
150 static void initClass() ;
151 static void exitClass() ;
152
153 private:
154 // Methods
155 // Destructor
156 virtual ~PoValuedMarkerField() ;
157 virtual void setDefaultOnNonWritingFields() ;
158 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
159
160 // Manage the connection with PbBase objects
161 virtual void basicObjectChange(PbBase *basicObj) ;
162
163 // Overloaded methods
164 virtual void addElementsAllCaches() ;
165 virtual void preRebuild() ;
166
167 private:
168 // Init method
169 void init(SbBool isDefault, int numPoints=0, const SbVec2f *_point=NULL,
170 const float *_value=NULL, const float *_size=NULL) ;
171
172 // Sensors
173 FieldSensorList m_fieldSensorList ;
174
175 // Data mapping
176 PbDataMapping *m_dataMap ;
177
178 // List of fields defined in this class
179 SoFieldList m_fieldList ;
180
181} ;
182
183/*----------------------------------------------------------------------------*/
184
185#endif /* _PO_VALUED_MARKER_FIELD_ */
186
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for all b...
Definition PbBase.h:49
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract class for data ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class for a valued marke...
virtual void rebuild()
Forces node-kit rebuilding.
void setDataMapping(PbDataMapping *dataMapping)
Sets a reference to a PbDataMapping object, used to the association value- color.
PoValuedMarkerField(int numPoints, const SbVec2f *_point, const float *_value, const float *_size)
Constructor.
SoMFFloat value
List of values used to color the markers.
SoSFString markerString
The markers are defined by a string.
PoValuedMarkerField()
Default constructor.
SoMFVec2f point
List of coordinates for the markers.
const PbDataMapping * getDataMapping() const
Gets a reference to a PbDataMapping object, used to the association value- color.
SoMFFloat size
List of sizes used to calculate the marker sizes.
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 string.
Definition SoSFString.h:117
int SbBool
Boolean type.
Definition SbBase.h:87