VAPOR3 3.9.4
PlotParams.h
Go to the documentation of this file.
1//************************************************************************
2// *
3// Copyright (C) 2004 *
4// University Corporation for Atmospheric Research *
5// All Rights Reserved *
6// *
7//************************************************************************
8//
9// File: PlotParams.h
10//
11// Author: Samuel Li
12// National Center for Atmospheric Research
13// PO 3000, Boulder, Colorado
14//
15// Date: December 2017
16//
17// Description: Defines the PlotParams class.
18//
19
20#ifndef PLOTPARAMS_H
21#define PLOTPARAMS_H
22
23#include <vapor/RenderParams.h>
24
25namespace VAPoR {
26
28class PlotParams : public RenderParams {
29public:
36
38 std::vector<long int> GetMinMaxTS() const;
39 void SetMinMaxTS(const std::vector<long int> &);
40
42 std::vector<double> GetSinglePoint() const;
43 void SetSinglePoint(const std::vector<double> &point);
44
46 std::vector<double> GetPoint1() const;
47 std::vector<double> GetPoint2() const;
48 void SetPoint1(const std::vector<double> &point);
49 void SetPoint2(const std::vector<double> &point);
50
52 std::vector<double> GetMinExtents() const;
53 std::vector<double> GetMaxExtents() const;
54 void SetMinExtents(const std::vector<double> &point);
55 void SetMaxExtents(const std::vector<double> &point);
56
57 long GetNumOfSamples() const;
58 void SetNumOfSamples(long);
59
60 void SetAxisLocks(const std::vector<bool> &locks);
61 std::vector<bool> GetAxisLocks();
62
63 static string GetClassType() { return ("PlotParams"); }
64 virtual size_t GetRenderDim() const override { return (0); }
65 virtual string GetActualColorMapVariableName() const override { return ""; }
66
67private:
68 static const string _minMaxTSTag;
69 static const string _p1Tag; // point1 in space mode
70 static const string _p2Tag; // point2 in space mode
71 static const string _numSamplesTag; // number of samples in space mode
72 static const string _singlePtTag; // a single point in time mode
73 static const string _lockAxisTag; // if we lock x, y, or z axis
74 static const string _minExtentTag; // minimal extent we've seen so far
75 static const string _maxExtentTag; // maximal extent we've seen so far
76};
77
78}; // End namespace VAPoR
79#endif
A cache based data reader.
Definition: DataMgr.h:110
State capture class.
Definition: ParamsBase.h:62
PlotParams inherits RenderParams.
Definition: PlotParams.h:28
long GetNumOfSamples() const
static string GetClassType()
Definition: PlotParams.h:63
std::vector< double > GetPoint1() const
In `‘space mode,’' these 4 methods get/set the point 1 and point 2 positions.
void SetPoint1(const std::vector< double > &point)
void SetSinglePoint(const std::vector< double > &point)
void SetMinExtents(const std::vector< double > &point)
virtual string GetActualColorMapVariableName() const override
Definition: PlotParams.h:65
PlotParams(DataMgr *dmgr, ParamsBase::StateSave *ssave)
Constructor 1.
void SetPoint2(const std::vector< double > &point)
std::vector< bool > GetAxisLocks()
void SetNumOfSamples(long)
void SetAxisLocks(const std::vector< bool > &locks)
std::vector< double > GetMinExtents() const
These 4 methods get/set the up-to-date extents.
~PlotParams()
Destructor.
PlotParams(DataMgr *dmgr, ParamsBase::StateSave *ssave, XmlNode *node)
Constructor 2.
void SetMaxExtents(const std::vector< double > &point)
std::vector< double > GetPoint2() const
std::vector< double > GetMaxExtents() const
std::vector< long int > GetMinMaxTS() const
In `‘time mode,’' these 2 methods get/set the time range.
void SetMinMaxTS(const std::vector< long int > &)
std::vector< double > GetSinglePoint() const
In `‘time mode,’' these 2 methods get/set the single point position.
virtual size_t GetRenderDim() const override
Definition: PlotParams.h:64
A Params subclass for managing parameters used by Renderers.
Definition: RenderParams.h:43
An Xml tree.
Definition: XmlNode.h:49