Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
PoPointsFieldBars.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-2024 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23
24#ifndef _PO_POINTS_FIELD_BARS_
25#define _PO_POINTS_FIELD_BARS_
26
27#include <MeshViz/graph/PoGraphMaster.h>
28
29#include <Inventor/fields/SoSFEnum.h>
30#include <Inventor/fields/SoMFFloat.h>
31#include <Inventor/fields/SoSFFloat.h>
32#include <Inventor/fields/SoMFVec3f.h>
33
34class PbDataMapping ;
35
71
72 SO_KIT_HEADER(PoPointsFieldBars) ;
73
74 /* Define fields for new parts */
75 SO_KIT_CATALOG_ENTRY_HEADER(pointsFieldBars) ;
76
77
78 public:
79
80 /* Fields */
81
87
93
98
103
104 /* Methods */
105
110 { init(TRUE) ; }
111
116 PoPointsFieldBars(int numPoints, const SbVec3f *_point, const float *_value,
117 float _width, float _height)
118 { init(FALSE, numPoints, _point, _value, _width, _height) ; }
119
123 virtual void rebuild() ;
124
132 void setDataMapping(PbDataMapping *dataMapping) ;
133
138
139 /*----------------------------------------------------------------------------*/
140 private:
141 static void initClass() ;
142 static void exitClass() ;
143
144 private:
145 // Methods
146 // Destructor
147 virtual ~PoPointsFieldBars() ;
148 virtual void setDefaultOnNonWritingFields() ;
149 virtual SbBool setUpConnections(SbBool onOff, SbBool doItAlways = FALSE) ;
150
151 // Manage the connection with PbBase objects
152 virtual void basicObjectChange(PbBase *basicObj) ;
153
154 // Overloaded methods
155 virtual void addElementsAllCaches() ;
156 virtual void preRebuild() ;
157
158 private:
159 // Init method
160 void init(SbBool isDefault, int numPoints=0, const SbVec3f *_point=NULL,
161 const float *_value=NULL, float _width=1.0, float _height=1.0) ;
162
163
164 // Data Mapping
165 PbDataMapping *m_dataMap ;
166
167 // Sensors
168 FieldSensorList m_fieldSensorList ;
169
170 // List of fields defined in this class
171 SoFieldList m_fieldList ;
172
173} ;
174
175/*----------------------------------------------------------------------------*/
176
177#endif /* _PO_POINTS_FIELD_BARS_ */
178
<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 to build a points ...
SoSFFloat height
Height of parallelepipeds.
SoMFVec3f point
List of points for parallelepipeds.
virtual void rebuild()
Forces node-kit rebuilding.
PoPointsFieldBars(int numPoints, const SbVec3f *_point, const float *_value, float _width, float _height)
Constructor.
PoPointsFieldBars()
Default constructor.
SoMFFloat value
Values for each point.
void setDataMapping(PbDataMapping *dataMapping)
Sets a reference to a PbDataMapping object to the association color-value.
SoSFFloat width
Width of parallelepipeds.
const PbDataMapping * getDataMapping() const
Gets a reference to a PbDataMapping object to the association color-value.
3D vector class.
Definition SbVec.h:932
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 three-dimensional vectors.
Definition SoMFVec3f.h:181
Field containing a floating-point value.
Definition SoSFFloat.h:78
int SbBool
Boolean type.
Definition SbBase.h:87