VAPOR3 3.9.4
HelloParams.h
Go to the documentation of this file.
1
2#ifndef HELLOPARAMS_H
3#define HELLOPARAMS_H
4
6
7namespace VAPoR {
8
15public:
17
19
20 virtual ~HelloParams();
21
24 double GetLineThickness() { return (GetValueDouble(m_lineThicknessTag, 1.0)); }
25
29 void SetLineThickness(double val) { SetValueDouble(m_lineThicknessTag, "Set line thickness", val); }
30
32 const vector<double> GetPoint1()
33 {
34 vector<double> defaultv(3, 0.0);
35 return GetValueDoubleVec(m_point1Tag, defaultv);
36 }
37
39 const vector<double> GetPoint2()
40 {
41 vector<double> defaultv(3, 1.0);
42 return GetValueDoubleVec(m_point2Tag, defaultv);
43 }
44
46 void SetPoint1(vector<double> pt) { SetValueDoubleVec(m_point1Tag, "Set First Endpoint", pt); }
47
49 void SetPoint2(vector<double> pt) { SetValueDoubleVec(m_point2Tag, "Set Second Endpoint", pt); }
50
51 // Get static string identifier for this params class
52 //
53 static string GetClassType() { return ("HelloParams"); }
54
55 virtual size_t GetRenderDim() const override { return (0); }
56
58 virtual string GetActualColorMapVariableName() const override { return GetColorMapVariableName(); }
59
60private:
61 static const string m_lineThicknessTag;
62 static const string m_point1Tag;
63 static const string m_point2Tag;
64
65 void _init();
66
67}; // End of Class HelloParams
68}; // namespace VAPoR
69#endif // HELLOPARAMS_H
A cache based data reader.
Definition: DataMgr.h:110
Class that supports drawing a line connecting two points.
Definition: HelloParams.h:14
const vector< double > GetPoint1()
Obtain the first endpoint in user coordinates.
Definition: HelloParams.h:32
virtual ~HelloParams()
const vector< double > GetPoint2()
Obtain the second endpoint in user coordinates.
Definition: HelloParams.h:39
static string GetClassType()
Definition: HelloParams.h:53
void SetPoint1(vector< double > pt)
Set the first endpoint.
Definition: HelloParams.h:46
void SetPoint2(vector< double > pt)
Set the second endpoint.
Definition: HelloParams.h:49
double GetLineThickness()
Definition: HelloParams.h:24
void SetLineThickness(double val)
Definition: HelloParams.h:29
HelloParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
virtual size_t GetRenderDim() const override
Definition: HelloParams.h:55
virtual string GetActualColorMapVariableName() const override
Definition: HelloParams.h:58
HelloParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave)
State capture class.
Definition: ParamsBase.h:62
A Params subclass for managing parameters used by Renderers.
Definition: RenderParams.h:43
An Xml tree.
Definition: XmlNode.h:49
#define PARAMS_API
Definition: common.h:77