24#ifndef _PB_NON_LINEAR_DATA_MAPPING_
25#define _PB_NON_LINEAR_DATA_MAPPING_
107 virtual ClassType getClassType()
const
108 {
return NON_LINEAR_DATA_MAPPING1 ;}
112 const SbColor* computeColor(
float value)
const;
113 const SbColor* computeColor(
float value,
float &transparency)
const;
115 static const SbColor* defaultColorFunc(
float value) ;
118 static float defaultTransparencyFunction(
float value) ;
121 const SbColor* (*m_RGBFunc)(float) ;
122 const float* (*m_HLSFunc)(float) ;
123 float (*m_TransparencyFunc)(float) ;
125 const SbColor* (*m_RGBFunc2)(
void*, float) ;
126 const float* (*m_HLSFunc2)(
void*, float) ;
127 float (*m_TransparencyFunc2)(
void*, float) ;
129 void * m_RGBUserData;
130 void * m_HLSUserData;
131 void * m_TransparencyUserData;
<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> Class to define non line...
void setHLSFunction(const float *(*func)(float))
deprecated.
void setTransparencyFunction(TransparencyFunction *func, void *userData)
Sets a function returning a transparency value.
const float * HLSFunction(void *userData, float)
void setRGBFunction(const SbColor *(*func)(float))
deprecated.
void setTransparencyFunction(float(*func)(float))
deprecated.
void setHLSFunction(HLSFunction *func, void *userData)
Sets a non linear function for data mapping.
void setRGBFunction(RGBFunction *func, void *userData)
Sets a non linear function for data mapping.
const SbColor * RGBFunction(void *userData, float)
PbNonLinearDataMapping()
Default constructor.
float TransparencyFunction(void *userData, float)