24#ifndef _PB_NON_LINEAR_DATA_MAPPING2_
25#define _PB_NON_LINEAR_DATA_MAPPING2_
27#include <MeshViz/graph/PbDataMapping.h>
133 const float*
getValuesList(
int &numValues)
const { numValues = m_nbValues ;
return m_valuesList ; }
153 const float *
getTransparencyList(
int &num_transparency)
const { num_transparency = m_nbColors ;
return m_transparencyList ;}
159 {
return m_typeMapping ; }
163 virtual ClassType getClassType()
const
164 {
return NON_LINEAR_DATA_MAPPING2 ;}
170 const SbColor* computeColor(
float value)
const;
171 const SbColor* computeColor(
float value,
float &transparency)
const;
173 void sortColorsValues() ;
174 void sortColorsTransparenciesValues();
177 float *m_valuesList ;
178 float *m_transparencyList;
180 int m_nbColors, m_nbValues ;
<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...
const SbColor * getRGBColorsList(int &numColors) const
Gets the list of RGB colors defining the current non linear data mapping.
const PbHLSColor * getHLSColorsList(int &numColors)
Gets the list of HLS colors defining the current non linear data mapping.
void setValues(Type type, int numValues, const float *v, const PbHLSColor *c, const float *t)
Sets non linear function for data mapping, with HLS color and transparencies.
void setValues(Type type, int numValues, const float *v, const SbColor *c, const float *t)
Sets non linear function for data mapping, with RGB color and transparencies.
Type
Type of data mapping.
const float * getValuesList(int &numValues) const
Gets the list of values defining the current non linear data mapping.
void setValues(Type type, int numValues, const float *v, const PbHLSColor *c)
Sets non linear function for data mapping, with HLS color.
PbNonLinearDataMapping2(const PbNonLinearDataMapping2 &nonLinearDataMap2)
Copy constructor.
PbNonLinearDataMapping2()
Default constructor.
Type getType() const
Returns the data mapping type.
PbNonLinearDataMapping2 & operator=(const PbNonLinearDataMapping2 &nonLinearDataMap2)
Assignment operator.
~PbNonLinearDataMapping2()
Destructor.
void setValues(Type type, int numValues, const float *v, const SbColor *c)
Sets non linear function for data mapping, with RGB color.
const float * getTransparencyList(int &num_transparency) const
Gets the list of transparencies defining the current non linear data mapping.