Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
PoNonLinearDataMapping.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_NON_LINEAR_DATA_MAPPING_
25#define _PO_NON_LINEAR_DATA_MAPPING_
26
28
53
54
55 public:
56
61 typedef const SbColor* PoDataMappingColorCB(float value) ;
62
68 typedef const SbColor* PoDataMappingColorCB2(void* userData, float value) ;
69
74 typedef float PoDataMappingTransparencyCB(float value) ;
75
80 typedef float PoDataMappingTransparencyCB2(void* userData, float value) ;
81
86
92 void setColorFunction(PoDataMappingColorCB2 *func, void* userData) ;
93
99
106
112
116 virtual const SbColor* getColor(float value) ;
117
121 virtual const SbColor* getColor(float value, float &transparency) ;
122
123 /*----------------------------------------------------------------------------*/
124 private:
125 virtual void doAction(SoAction *action) ;
126
127 private:
128 static void initClass() ;
129 static void exitClass() ;
130
131 private:
132 virtual ~PoNonLinearDataMapping() ;
133} ;
134
135/*----------------------------------------------------------------------------*/
136
137#endif /* _PO_NON_LINEAR_DATA_MAPPING_ */
138
139
#define SO_NODE_HEADER(className)
Definition SoSubNode.h:151
<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> Node class to define a n...
void setColorFunction(PoDataMappingColorCB *func)
Deprecated.
PoNonLinearDataMapping()
Constructor.
virtual const SbColor * getColor(float value, float &transparency)
Returns the color and transparency associated to a value.
float PoDataMappingTransparencyCB2(void *userData, float value)
Transparency callback prototype.
float PoDataMappingTransparencyCB(float value)
Transparency callback prototype.
virtual const SbColor * getColor(float value)
Returns the color associated to a value.
void setColorFunction(PoDataMappingColorCB2 *func, void *userData)
Sets pointer to a callback function which computes a color from a real value.
void setTransparencyFunction(PoDataMappingTransparencyCB *func)
Deprecated.
const SbColor * PoDataMappingColorCB2(void *userData, float value)
Color callback prototype.
const SbColor * PoDataMappingColorCB(float value)
Color callback prototype.
void setTransparencyFunction(PoDataMappingTransparencyCB2 *func, void *userData)
Sets pointer to a callback function which computes a transparency from a real value.
Color vector class.
Definition SbColor.h:82
Abstract base class for all actions.
Definition SoAction.h:132