VAPOR3 3.9.4
TFMappingRangeSelector.h
Go to the documentation of this file.
1#pragma once
2
4#include <string>
5
6namespace VAPoR {
7class DataMgr;
8class ParamsMgr;
9class RenderParams;
10class MapperFunction;
11} // namespace VAPoR
12
14 Q_OBJECT
15
16public:
17 TFMappingRangeSelector(const std::string &variableNameTag);
18 void Update(VAPoR::DataMgr *dataMgr, VAPoR::ParamsMgr *paramsMgr, VAPoR::RenderParams *rParams);
19
20private:
21 VAPoR::RenderParams *_rParams = nullptr;
22 VAPoR::ParamsMgr * _paramsMgr = nullptr;
23 const std::string & _variableNameTag;
24
25 void _getDefaultRange(VAPoR::DataMgr *dataMgr, VAPoR::RenderParams *rParams, float *min, float *max) const;
26 void _getDataRange(VAPoR::DataMgr *dataMgr, VAPoR::RenderParams *rParams, float *min, float *max) const;
27 std::string _getVariableName() const;
28 VAPoR::MapperFunction *_getTF() const;
29
30private slots:
31 void _rangeChangedBegin();
32 void _rangeChangedIntermediate(float left, float right);
33 void _rangeChanged(float left, float right);
34 void _sliderRangeChanged(float left, float right);
35 void _sliderRangeResetToDefaultRequested();
36};
TFMappingRangeSelector(const std::string &variableNameTag)
void Update(VAPoR::DataMgr *dataMgr, VAPoR::ParamsMgr *paramsMgr, VAPoR::RenderParams *rParams)
A cache based data reader.
Definition: DataMgr.h:110
Parent class for TransferFunction and IsoControl, supports positioning histogram over color/opacity m...
A singleton class for managing Params instances.
Definition: ParamsMgr.h:53
A Params subclass for managing parameters used by Renderers.
Definition: RenderParams.h:43