22 #ifndef MAPPERFUNCTION_H 23 #define MAPPERFUNCTION_H 24 #define MAXCONTROLPOINTS 50 27 #include <vapor/tfinterpolator.h> 28 #include <vapor/ExpatParseMgr.h> 29 #include <vapor/MapperFunctionBase.h> 30 #include <vapor/ParamNode.h> 31 #include "OpacityMap.h" 54 mf->SetRootParamNode(newRoot);
55 if(newRoot) newRoot->SetParamsBase(mf);
67 QRgb colorValue(
float point);
72 virtual OpacityMap* createOpacityMap(OpacityMap::Type type=OpacityMap::CONTROL_POINT);
74 virtual OpacityMap* getOpacityMap(
int index);
76 virtual VColormap* getColormap();
96 mf->SetRootParamNode(newRoot);
97 if(newRoot) newRoot->SetParamsBase(mf);
107 virtual ParamNode* buildNode();
117 virtual bool elementStartHandler(ExpatParseMgr*,
int depth,
118 std::string&,
const char **);
120 virtual bool elementEndHandler(ExpatParseMgr*,
int, std::string&);
129 #endif //MAPPERFUNCTION_H virtual IsoControl * deepCopy(ParamNode *newRoot=0)
A Params subclass for managing parameters used by Renderers.
static const string _leftHistoBoundTag
static ParamsBase * CreateDefaultInstance()
Nodes with state in Xml tree representation.
void setIsoValue(double val)
vector< double > isoValues
static ParamsBase * CreateDefaultInstance()
virtual MapperFunction * deepCopy(ParamNode *newRoot=0)
void setIsoValues(const vector< double > &vals)
void setMaxHistoValue(float val)
static const string _rightHistoBoundTag
static const string _rightHistoBoundAttr
void setMinHistoValue(float val)
const vector< double > & getIsoValues()
void setParams(RenderParams *p)
RenderParams * getParams()
static const string _leftHistoBoundAttr