21#ifndef ANNOTATIONSPARAMS_H
22#define ANNOTATIONSPARAMS_H
68 void GetDomainColor(std::vector<double> &color)
const { _getColor(color, _domainColorTag); }
73 bool GetUseDomainFrame()
const {
return (0 != GetValueLong(_domainFrameTag, (
long)
false)); }
74 void SetUseDomainFrame(
bool onOff) { SetValueLong(_domainFrameTag,
"toggle domain frame", (
long)onOff); }
76 bool GetUseRegionFrame()
const {
return (0 != GetValueLong(_regionFrameTag, (
long)
false)); }
77 void SetUseRegionFrame(
bool onOff) { SetValueLong(_regionFrameTag,
"toggle region frame", (
long)onOff); }
81 void GetRegionColor(std::vector<double> &color)
const { _getColor(color, _regionColorTag); }
88 void GetBackgroundColor(std::vector<double> &color)
const { _getColor(color, _backgroundColorTag); }
112#ifdef VAPOR3_0_0_ALPHA
113 static void changeStretch(vector<double> prevStretch, vector<double> newStretch);
118 static const string _domainColorTag;
119 static const string _domainFrameTag;
120 static const string _regionFrameTag;
121 static const string _regionColorTag;
123 static const string _axisColorTag;
124 static const string _axisDigitsTag;
125 static const string _axisTextHeightTag;
126 static const string _axisFontSizeTag;
127 static const string _ticWidthTag;
128 static const string _ticDirsTag;
129 static const string _ticSizeTag;
130 static const string _minTicsTag;
131 static const string _maxTicsTag;
132 static const string _numTicsTag;
133 static const string _axisOriginTag;
134 static const string _backgroundColorTag;
135 static const string _axisAnnotationEnabledTag;
136 static const string _axisAnnotationsTag;
137 static const string _latLonAxesTag;
139 static const string _axisArrowCoordsTag;
140 static const string _showAxisArrowsTag;
141 static const string _currentAxisDataMgrTag;
142 static vector<double> _previousStretch;
146 void m_getColor(
double color[3],
string tag)
const;
147 void _getColor(vector<double> &color,
string tag)
const;
148 void m_setColor(vector<double> color,
string tag,
string msg);
A class for describing visual features displayed in the visualizer.
std::vector< double > GetAxisArrowCoords() const
void GetDomainColor(std::vector< double > &color) const
void SetShowAxisArrows(bool val)
void GetRegionColor(double color[3]) const
Obtain region frame color.
bool GetUseDomainFrame() const
void GetBackgroundColor(std::vector< double > &color) const
string GetCurrentAxisDataMgrName() const
void SetRegionColor(vector< double > color)
Set region frame color.
AnnotationsParams(ParamsBase::StateSave *ssave)
Create a AnnotationsParams object from scratch.
void GetBackgroundColor(double color[3]) const
Obtain background color.
void SetUseRegionFrame(bool onOff)
virtual ~AnnotationsParams()
void SetBackgroundColor(std::vector< double > color)
Set background color.
AnnotationsParams(const AnnotationsParams &rhs)
Copy from already existing instance.
void SetAxisArrowCoords(std::vector< double > coords)
static string GetClassType()
bool GetUseRegionFrame() const
AxisAnnotation * GetAxisAnnotation(string dataMgr="")
bool GetShowAxisArrows() const
void SetAxisFontSize(int size)
void GetDomainColor(double color[3]) const
Obtain domain frame color.
AnnotationsParams(ParamsBase::StateSave *ssave, XmlNode *node)
Create a AnnotationsParams object from an existing XmlNode tree.
void SetDomainColor(vector< double > color)
Set domain frame color.
void SetUseDomainFrame(bool onOff)
void GetRegionColor(std::vector< double > &color) const
void SetCurrentAxisDataMgrName(string dataMgr)
class that indicates location and direction of view
Nodes with state in Xml tree representation.