VAPOR3 3.9.4
SliceParams.h
Go to the documentation of this file.
1
2#ifndef SLICEPARAMS_H
3#define SLICEPARAMS_H
4
6#include <vapor/DataMgr.h>
7
8namespace VAPoR {
9
14public:
16
18
19 virtual ~SliceParams();
20
21 virtual int Initialize() override;
22
23 // Get static string identifier for this params class
24 //
25 static string GetClassType() { return ("SliceParams"); }
26
28 //
29 virtual size_t GetRenderDim() const override { return (3); }
30
32 virtual string GetActualColorMapVariableName() const override
33 {
34 if (UseSingleColor())
35 return "";
36 else
37 return GetVariableName();
38 }
39
40 void SetCachedValues(std::vector<double> values);
41 std::vector<double> GetCachedValues() const;
42 bool GetOrientable() const override;
43
44private:
45 bool _initialized = false;
46
47 void _init();
48 std::vector<double> _cachedValues;
49
50}; // End of Class SliceParams
51}; // namespace VAPoR
52
53#endif
A cache based data reader.
Definition: DataMgr.h:110
State capture class.
Definition: ParamsBase.h:62
A Params subclass for managing parameters used by Renderers.
Definition: RenderParams.h:43
Class that supports drawing Barbs based on 2D or 3D vector field.
Definition: SliceParams.h:13
void SetCachedValues(std::vector< double > values)
bool GetOrientable() const override
Return whether a renderer can be oriented - IE, can this renderer be rotated about an origin point?
SliceParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave)
virtual int Initialize() override
SliceParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
std::vector< double > GetCachedValues() const
static string GetClassType()
Definition: SliceParams.h:25
virtual ~SliceParams()
virtual size_t GetRenderDim() const override
Definition: SliceParams.h:29
virtual string GetActualColorMapVariableName() const override
Definition: SliceParams.h:32
An Xml tree.
Definition: XmlNode.h:49
#define PARAMS_API
Definition: common.h:77