Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
PoIsovaluesList.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_ISOVALUES_LIST_
25#define _PO_ISOVALUES_LIST_
26
27#include <MeshViz/nodes/PoNode.h>
28#include <Inventor/fields/SoMFFloat.h>
29
30class PbIsovaluesList ;
31class SoFieldSensor ;
32
54class PoIsovaluesList : public PoNode {
55
56 SO_NODE_HEADER(PoIsovaluesList) ;
57
58
59 public:
60
61 /* Fields */
62
67
68 /* Methods */
69
74
81 void setRegularIsoList(int numFloats, const float *values, int numValues) ;
82
88 void setRegularIsoList(int numValues, float firstValue, float step) ;
89
94 void setRegularIsoList(float min, float max, int numValues) ;
95
102 const float *getIsoList(int &numValues, float &min, float &max, float &step,
103 SbBool &isRegularIsoList) ;
104
105 /*----------------------------------------------------------------------------*/
106
107
108 private:
109 virtual void doAction(SoAction *action) ;
110
111 private:
112 static void initClass() ;
113 static void exitClass() ;
114
115 private:
116 virtual ~PoIsovaluesList() ;
117
118 private:
119 static void isoListChangedCB(void *data, SoSensor *) ;
120 void updateIsoList() ;
121
122 SbBool m_isoListChanged ;
123 PbIsovaluesList *m_isoList ;
124 SoFieldSensor *m_isoListSensor ;
125
126} ;
127/*----------------------------------------------------------------------------*/
128
129#endif /* _PO_ISOVALUES_LIST_ */
130
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Class to define a list o...
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Node to define a list of...
void setRegularIsoList(int numFloats, const float *values, int numValues)
Convenience method to create a regular isovalue list with numValues values.
void setRegularIsoList(int numValues, float firstValue, float step)
Convenience method to create a regular isovalue list with numValues values.
void setRegularIsoList(float min, float max, int numValues)
Convenience method to create a regular isovalue list with numValues values.
PoIsovaluesList()
Constructor.
const float * getIsoList(int &numValues, float &min, float &max, float &step, SbBool &isRegularIsoList)
Convenience method which returns information about the isovalue list.
SoMFFloat isovaluesList
Defines the list of isovalues.
<a href="IconLegend.html"><img src="extMV.gif" alt="MeshViz" border="0"></a> Abstract base class for ...
Definition PoNode.h:39
Abstract base class for all actions.
Definition SoAction.h:132
Sensor class that can be attached to Open Inventor fields.
Multiple-value field containing any number of floating point values.
Definition SoMFFloat.h:90
Abstract base class for Open Inventor sensors.
Definition SoSensor.h:100
int SbBool
Boolean type.
Definition SbBase.h:87