22#ifndef ANNOTATIONPARAMS_H
23#define ANNOTATIONPARAMS_H
68 void GetDomainColor(std::vector<double> &color)
const { _getColor(color, _domainColorTag); }
72 bool GetUseDomainFrame()
const {
return (0 != GetValueLong(_domainFrameTag, (
long)
false)); }
73 void SetUseDomainFrame(
bool onOff) { SetValueLong(_domainFrameTag,
"toggle domain frame", (
long)onOff); }
75 bool GetUseRegionFrame()
const {
return (0 != GetValueLong(_regionFrameTag, (
long)
false)); }
76 void SetUseRegionFrame(
bool onOff) { SetValueLong(_regionFrameTag,
"toggle region frame", (
long)onOff); }
79 void GetRegionColor(std::vector<double> &color)
const { _getColor(color, _regionColorTag); }
84 void GetBackgroundColor(std::vector<double> &color)
const { _getColor(color, _backgroundColorTag); }
103 template<
typename T>
void GetTimeColor(T color[])
const { m_getColor(color, _timeColorTag); };
169 template<
typename T>
void m_getColor(T color[3],
string tag)
const
171 vector<double> defaultv(3, 1.0);
172 vector<double> val = GetValueDoubleVec(tag, defaultv);
173 for (
int i = 0; i < val.size(); i++) {
175 if (color[i] < 0.0) color[i] = 0.0;
176 if (color[i] > 1.0) color[i] = 1.0;
180 void _getColor(vector<double> &color,
string tag)
const;
181 void m_setColor(vector<double> color,
string tag,
string msg);
A class for describing visual features displayed in the visualizer.
static const string _timeColorTag
void SetDomainColor(vector< double > color)
void SetAxisArrowSize(double pos)
static const string _timeSizeTag
void SetAxisArrowEnabled(bool enabled)
static const string _maxTicsTag
static const string AxisArrowEnabledTag
static const string _ticDirsTag
void SetAxisArrowXPos(double pos)
AnnotationParams(ParamsBase::StateSave *ssave, XmlNode *node)
Create a AnnotationParams object from an existing XmlNode tree.
static const string _numTicsTag
static const string AxisArrowXPosTag
void GetRegionColor(double color[3]) const
void SetTimeLLX(double llx)
static vector< double > _previousStretch
void SetRegionColor(vector< double > color)
static const string _latLonAxesTag
void GetRegionColor(std::vector< double > &color) const
static const string AxisArrowSizeTag
string GetCurrentAxisDataMgrName() const
void SetTimeSize(int size)
bool GetAxisArrowEnabled() const
void GetTimeColor(T color[]) const
static string GetClassType()
static const string _backgroundColorTag
static const string _currentAxisDataMgrTag
double GetAxisArrowYPos() const
static const string _axisTextHeightTag
void GetDomainColor(std::vector< double > &color) const
void SetCurrentAxisDataMgrName(string dataMgr="default")
void SetUseDomainFrame(bool onOff)
std::vector< double > GetTimeColor() const
AxisAnnotation * GetAxisAnnotation()
double GetAxisArrowSize() const
static const string _domainFrameTag
double GetTimeLLY() const
void SetAxisFontSize(int size)
static const string _ticWidthTag
AnnotationParams(const AnnotationParams &rhs)
Copy from already existing instance.
static const string _axisFontSizeTag
virtual ~AnnotationParams()
void GetDomainColor(double color[3]) const
double GetTimeLLX() const
AnnotationParams(ParamsBase::StateSave *ssave)
Create a AnnotationParams object from scratch.
static const string _axisAnnotationEnabledTag
static const string _domainColorTag
void SetUseRegionFrame(bool onOff)
static const string _axisAnnotationsTag
static const string _axisColorTag
static const string _axisDigitsTag
bool GetUseRegionFrame() const
static const string _timeLLXTag
void SetBackgroundColor(std::vector< double > color)
static const string _ticSizeTag
static const string _minTicsTag
double GetAxisArrowXPos() const
static const string _regionFrameTag
void GetBackgroundColor(double color[3]) const
static const string _projStringTag
bool GetUseDomainFrame() const
static const string _timeTypeTag
void SetTimeLLY(double lly)
void GetBackgroundColor(std::vector< double > &color) const
static const string AxisArrowYPosTag
static const string _axisOriginTag
void SetTimeType(int type)
void SetTimeColor(std::vector< double > color)
static const string _timeLLYTag
static const string _regionColorTag
void SetAxisArrowYPos(double pos)
class that indicates location and direction of view
Nodes with state in Xml tree representation.