25 #ifndef TRANSFERFUNCTION_H 26 #define TRANSFERFUNCTION_H 27 #define MAXCONTROLPOINTS 50 28 #include <vapor/tfinterpolator.h> 31 #include <vapor/ExpatParseMgr.h> 61 void setVarNum(
int var) { colorVarNum = var; opacVarNum = var; }
68 bool saveToFile(ofstream& f);
71 virtual ParamNode* buildNode(
const string& tfname);
72 virtual ParamNode* buildNode();
75 bool elementStartHandler(ExpatParseMgr*,
int depth , std::string& s,
77 bool elementEndHandler(ExpatParseMgr*,
int , std::string&);
85 if(_colormap)((VColormap*)_colormap)->setMapper(
this);
86 if(_opacityMaps.size()>0) ((OpacityMap*)_opacityMaps[0])->setMapper(
this);
90 tf->SetRootParamNode(newRoot);
91 if(newRoot) newRoot->SetParamsBase(tf);
115 #endif //TRANSFERFUNCTION_H static const string _rightBoundAttr
A Params subclass for managing parameters used by Renderers.
static const string _leftBoundAttr
static const string _leftBoundTag
static const string _transferFunctionTag
Nodes with state in Xml tree representation.
static ParamsBase * CreateDefaultInstance()
virtual void hookup(RenderParams *p, int cvar, int ovar)
static const string _tfNameTag
float mapIndexToFloat(int indx)
static const string _tfNameAttr
static const string _rightBoundTag
virtual TransferFunction * deepCopy(ParamNode *newRoot=0)
int mapFloatToIndex(float f)