|
VAPoR
0.1
|
#include <MapperFunctionBase.h>
Public Types | |
| enum | CompositionType { ADDITION = 0, MULTIPLICATION = 1 } |
Public Types inherited from VAPoR::ParamsBase | |
| typedef int | ParamsBaseType |
Public Member Functions | |
| MapperFunctionBase (const string &name) | |
| MapperFunctionBase (int nBits, const string &name) | |
| MapperFunctionBase (const MapperFunctionBase &mapper) | |
| virtual | ~MapperFunctionBase () |
| float | opacityValue (float point) |
| void | hsvValue (float point, float *h, float *sat, float *val) |
| void | setOpaque () |
| bool | isOpaque () |
| void | makeLut (float *clut) |
| float | getMinColorMapValue () |
| float | getMaxColorMapValue () |
| float | getMinOpacMapValue () |
| float | getMaxOpacMapValue () |
| void | setMinColorMapValue (float val) |
| void | setMaxColorMapValue (float val) |
| void | setMinOpacMapValue (float val) |
| void | setMaxOpacMapValue (float val) |
| int | getColorVarNum () |
| int | getOpacVarNum () |
| virtual void | setVarNum (int var) |
| virtual void | setColorVarNum (int var) |
| virtual void | setOpacVarNum (int var) |
| virtual OpacityMapBase * | createOpacityMap (OpacityMapBase::Type type=OpacityMapBase::CONTROL_POINT) |
| virtual OpacityMapBase * | getOpacityMap (int index) const |
| void | deleteOpacityMap (OpacityMapBase *omap) |
| int | getNumOpacityMaps () const |
| void | setOpacityScaleFactor (float val) |
| float | getOpacityScaleFactor () |
| void | setOpacityComposition (CompositionType t) |
| CompositionType | getOpacityComposition () |
| virtual ColorMapBase * | getColormap () const |
| int | getNumEntries () |
| void | setNumEntries (int val) |
| int | mapFloatToColorIndex (float point) |
| float | mapColorIndexToFloat (int indx) |
| int | mapFloatToOpacIndex (float point) |
| float | mapOpacIndexToFloat (int indx) |
| virtual ParamNode * | buildNode () |
| virtual bool | elementStartHandler (ExpatParseMgr *, int depth, std::string &, const char **) |
| virtual bool | elementEndHandler (ExpatParseMgr *, int, std::string &) |
| std::string | getName () |
| TFInterpolator::type | colorInterpType () |
| void | setColorInterpType (TFInterpolator::type t) |
Public Member Functions inherited from VAPoR::ParamsBase | |
| ParamsBase (XmlNode *parent, const string &name) | |
| ParamsBase (const string &name) | |
| Default constructor. More... | |
| ParamsBase (const ParamsBase &pbase) | |
| Copy constructor. More... | |
| virtual | ~ParamsBase () |
| virtual ParamsBase * | deepCopy (ParamNode *newRoot=0) |
| void | SetParent (XmlNode *parent) |
| virtual bool | elementStartHandler (ExpatParseMgr *pm, int depth, string &tag, const char **attribs) |
| virtual bool | elementEndHandler (ExpatParseMgr *pm, int depth, string &tag) |
| ParamNode * | GetRootNode () |
| void | SetFlagDirty (const string &flag) |
| const string & | GetName () |
| ParamsBaseType | GetParamsBaseTypeId () |
| virtual void | SetRootParamNode (ParamNode *pn) |
Public Member Functions inherited from VAPoR::ParsedXml | |
| virtual | ~ParsedXml () |
| virtual bool | charHandler (ExpatParseMgr *, const XML_Char *, int) |
Static Public Member Functions | |
| static void | hsvToRgb (float *hsv, float *rgb) |
| static void | rgbToHsv (float *rgb, float *hsv) |
| static int | mapPosition (float x, float minValue, float maxValue, int hSize) |
Static Public Member Functions inherited from VAPoR::ParamsBase | |
| static ParamsBaseType | GetTypeFromTag (const string &tag) |
| static const string & | GetTagFromType (ParamsBaseType t) |
| static ParamsBase * | CreateDefaultParamsBase (int pType) |
| static ParamsBase * | CreateDefaultParamsBase (const string &tag) |
| static int | RegisterParamsBaseClass (const string &tag, BaseCreateFcn fcn, bool isParams) |
| static int | ReregisterParamsBaseClass (const string &tag, const string &newtag, bool isParams) |
| static int | GetNumParamsClasses () |
| static bool | IsParamsTag (const string &tag) |
Static Public Attributes | |
| static const string | _mapperFunctionTag |
Protected Member Functions | |
| virtual void | init () |
Protected Member Functions inherited from VAPoR::ParamsBase | |
| virtual ParamNode * | getCurrentParamNode () |
| virtual void | setCurrentParamNode (ParamNode *pn) |
| ParamNode * | GetCurrentNode () |
| ParamNode * | Push (string &tag, ParamsBase *pBase=0) |
| ParamNode * | Pop () |
| void | Remove (const string &name) |
| const map< string, string > & | GetAttributes () |
| void | Clear () |
Protected Attributes | |
| vector< OpacityMapBase * > | _opacityMaps |
| CompositionType | _compType |
| ColorMapBase * | _colormap |
| float | minColorMapBound |
| float | maxColorMapBound |
| float | minOpacMapBound |
| float | maxOpacMapBound |
| int | numEntries |
| string | mapperName |
| int | colorVarNum |
| int | opacVarNum |
| float | opacityScaleFactor |
Protected Attributes inherited from VAPoR::ParamsBase | |
| string | _paramsBaseName |
| int | _parseDepth |
Static Protected Attributes | |
| static const string | _leftColorBoundAttr |
| static const string | _rightColorBoundAttr |
| static const string | _leftOpacityBoundAttr |
| static const string | _rightOpacityBoundAttr |
| static const string | _opacityCompositionAttr |
| static const string | _leftColorBoundTag |
| static const string | _rightColorBoundTag |
| static const string | _leftOpacityBoundTag |
| static const string | _rightOpacityBoundTag |
| static const string | _opacityCompositionTag |
| static const string | _hsvAttr |
| static const string | _positionAttr |
| static const string | _opacityAttr |
| static const string | _opacityControlPointTag |
| static const string | _colorControlPointTag |
| static const string | _rgbAttr |
Static Protected Attributes inherited from VAPoR::ParamsBase | |
| static vector< ParamsBase * > | dummyParamsBaseInstances |
| static const string | _emptyString |
| static map< string, int > | classIdFromTagMap |
| static map< int, string > | tagFromClassIdMap |
| static map< int, BaseCreateFcn > | createDefaultFcnMap |
| static int | numParamsClasses |
| static int | numEmbedClasses |
Static Protected Attributes inherited from VAPoR::ParsedXml | |
| static const string | _stringType |
| static const string | _longType |
| static const string | _doubleType |
| static const string | _typeAttr |
Additional Inherited Members | |
Public Attributes inherited from VAPoR::ParsedXml | |
| ParsedXml * | previousClass |
Definition at line 36 of file MapperFunctionBase.h.
| Enumerator | |
|---|---|
| ADDITION | |
| MULTIPLICATION | |
Definition at line 104 of file MapperFunctionBase.h.
| VAPoR::MapperFunctionBase::MapperFunctionBase | ( | const string & | name | ) |
| VAPoR::MapperFunctionBase::MapperFunctionBase | ( | int | nBits, |
| const string & | name | ||
| ) |
| VAPoR::MapperFunctionBase::MapperFunctionBase | ( | const MapperFunctionBase & | mapper | ) |
|
virtual |
|
virtual |
Method to build an xml node from state. This only needs to be implemented if the state of the ParamsBase is not specified by the root ParamNode
| node | ParamNode representing the current ParamsBase instance |
Reimplemented from VAPoR::ParamsBase.
Reimplemented in VAPoR::IsoControl, and VAPoR::TransferFunction.
|
inline |
Definition at line 194 of file MapperFunctionBase.h.
|
virtual |
| void VAPoR::MapperFunctionBase::deleteOpacityMap | ( | OpacityMapBase * | omap | ) |
|
virtual |
Implements VAPoR::ParsedXml.
Reimplemented in VAPoR::IsoControl, and VAPoR::TransferFunction.
|
virtual |
Implements VAPoR::ParsedXml.
Reimplemented in VAPoR::IsoControl, and VAPoR::TransferFunction.
|
virtual |
|
inline |
Definition at line 78 of file MapperFunctionBase.h.
|
inline |
Definition at line 65 of file MapperFunctionBase.h.
|
inline |
Definition at line 67 of file MapperFunctionBase.h.
|
inline |
Definition at line 64 of file MapperFunctionBase.h.
|
inline |
Definition at line 66 of file MapperFunctionBase.h.
|
inline |
Definition at line 190 of file MapperFunctionBase.h.
|
inline |
Definition at line 129 of file MapperFunctionBase.h.
|
inline |
Definition at line 93 of file MapperFunctionBase.h.
|
inline |
Definition at line 111 of file MapperFunctionBase.h.
|
virtual |
|
inline |
Definition at line 99 of file MapperFunctionBase.h.
|
inline |
Definition at line 79 of file MapperFunctionBase.h.
|
static |
| void VAPoR::MapperFunctionBase::hsvValue | ( | float | point, |
| float * | h, | ||
| float * | sat, | ||
| float * | val | ||
| ) |
|
protectedvirtual |
Reimplemented in VAPoR::TransferFunction.
| bool VAPoR::MapperFunctionBase::isOpaque | ( | ) |
| void VAPoR::MapperFunctionBase::makeLut | ( | float * | clut | ) |
|
inline |
Definition at line 147 of file MapperFunctionBase.h.
|
inline |
Definition at line 136 of file MapperFunctionBase.h.
|
inline |
Definition at line 155 of file MapperFunctionBase.h.
|
inline |
Definition at line 165 of file MapperFunctionBase.h.
|
static |
| float VAPoR::MapperFunctionBase::opacityValue | ( | float | point | ) |
|
static |
|
inline |
Definition at line 198 of file MapperFunctionBase.h.
|
inlinevirtual |
Definition at line 82 of file MapperFunctionBase.h.
|
inline |
Definition at line 70 of file MapperFunctionBase.h.
|
inline |
Definition at line 72 of file MapperFunctionBase.h.
|
inline |
Definition at line 69 of file MapperFunctionBase.h.
|
inline |
Definition at line 71 of file MapperFunctionBase.h.
|
inline |
Definition at line 130 of file MapperFunctionBase.h.
|
inline |
Definition at line 110 of file MapperFunctionBase.h.
|
inline |
Definition at line 98 of file MapperFunctionBase.h.
|
inlinevirtual |
Definition at line 83 of file MapperFunctionBase.h.
| void VAPoR::MapperFunctionBase::setOpaque | ( | ) |
|
inlinevirtual |
Reimplemented in VAPoR::TransferFunction.
Definition at line 81 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 235 of file MapperFunctionBase.h.
|
protected |
Definition at line 216 of file MapperFunctionBase.h.
|
protected |
Definition at line 214 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 231 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 220 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 226 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 222 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 228 of file MapperFunctionBase.h.
|
static |
Definition at line 193 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 233 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 224 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 230 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 234 of file MapperFunctionBase.h.
|
protected |
Definition at line 213 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 232 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 238 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 221 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 227 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 223 of file MapperFunctionBase.h.
|
staticprotected |
Definition at line 229 of file MapperFunctionBase.h.
|
protected |
Definition at line 266 of file MapperFunctionBase.h.
|
protected |
Definition at line 261 of file MapperFunctionBase.h.
|
protected |
Definition at line 243 of file MapperFunctionBase.h.
|
protected |
Definition at line 244 of file MapperFunctionBase.h.
|
protected |
Definition at line 243 of file MapperFunctionBase.h.
|
protected |
Definition at line 244 of file MapperFunctionBase.h.
|
protected |
Definition at line 256 of file MapperFunctionBase.h.
|
protected |
Definition at line 272 of file MapperFunctionBase.h.
|
protected |
Definition at line 267 of file MapperFunctionBase.h.
1.8.7