41 void SetLineThickness(
double val) { SetValueDouble(_thicknessScaleTag,
"Contour thickness", val); }
57 void SetLineColor(vector<double> vec) { SetValueDoubleVec(_lineColorTag,
"Line color", vec); }
65 void SetIsoValues(
const string &variable,
const vector<double> &values)
override;
76 virtual size_t GetRenderDim()
const override {
return _dataMgr->GetVarTopologyDim(GetVariableName()); }
84 double val = GetValueDouble(_numDigitsTag, 1.0);
88 void SetNumDigits(
int digits) { SetValueDouble(_numDigitsTag,
"Number of digits in contour annotation", digits); }
92 double val = GetValueDouble(_textDensityTag, 1.0);
96 void SetTextDensity(
int density) { SetValueDouble(_textDensityTag,
"Density of contour annotations", density); }
104 static const string _thicknessScaleTag;
105 static const string _lineColorTag;
106 static const string _contoursTag;
107 static const string _numDigitsTag;
108 static const string _textDensityTag;
109 static const string _textEnabledTag;
110 static const string _lockToTFTag;
113 vector<CoordType> _slicePlaneQuad;
126 vector<double> defaultv(7, 0.);
127 if (!_node->HasElementDouble(_valuesTag))
return defaultv;
129 vector<double> val = GetValueDoubleVec(_valuesTag);
133 void SetContourValues(vector<double> vals) { SetValueDoubleVec(_valuesTag,
"Set contour values", vals); }
141 static const string _valuesTag;
Contours(ParamsBase::StateSave *ssave, XmlNode *node)
vector< double > GetContourValues() const
Contours(ParamsBase::StateSave *ssave)
static string GetClassType()
void SetContourValues(vector< double > vals)
double GetSpacing() const
Class that supports drawing Contours based on 2D or 3D vector field.
void SetLockToTF(bool lock)
vector< double > GetContourValues(const string &varName)
bool GetTextEnabled() const
void SetTextDensity(int density)
void SetContourSpacing(double val)
ContourParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave)
double GetLineThickness() const
ContourParams(const ContourParams &rhs)
void GetLineColor(int lineNum, float color[3])
void SetLineColor(vector< double > vec)
virtual bool GetOrientable() const override
Return whether a renderer can be oriented - IE, can this renderer be rotated about an origin point?
void MakeNewContours(string varName)
void SetContourValues(const string &varName, const vector< double > &vals)
void SetIsoValues(const string &variable, const vector< double > &values) override
Contours * GetCurrentContours()
ContourParams & operator=(const ContourParams &rhs)
int GetTextDensity() const
static string GetClassType()
void SetContourCount(int num)
void SetNumDigits(int digits)
void SetTFLock(bool lock)
bool HasIsoValues() const override
This should be overriden by params for renderes that support iso values to return true.
void SetContourMin(double val)
virtual string GetActualColorMapVariableName() const override
virtual size_t GetRenderDim() const override
ContourParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
vector< double > GetIsoValues(const string &variable) override
void GenerateContourValues(double start, double spacing, int num, Contours *c=nullptr)
void SetLineThickness(double val)
double GetContourSpacing()
A cache based data reader.
Nodes with state in Xml tree representation.
A Params subclass for managing parameters used by Renderers.