30 double GetLengthScale()
const {
return GetValueDouble(_lengthScaleTag, 1.f); }
32 void SetLengthScale(
double val) { SetValueDouble(_lengthScaleTag,
"Barb length", val); }
40 dims[0] = GetValueLong(_xBarbsCountTag, 10);
41 dims[1] = GetValueLong(_yBarbsCountTag, 10);
42 dims[2] = GetValueLong(_zBarbsCountTag, 1);
51 SetValueLong(_xBarbsCountTag,
"", grid[0]);
52 SetValueLong(_yBarbsCountTag,
"", grid[1]);
53 SetValueLong(_zBarbsCountTag,
"", grid[2]);
62 void SetLineThickness(
double val) { SetValueDouble(_thicknessScaleTag,
"Barb thickness", val); }
72 for (
const auto &p : GetFieldVariableNames()) {
73 if (!p.empty())
return _dataMgr->GetVarTopologyDim(p);
75 return GetBox()->IsPlanar() ? 2 : 3;
84 return GetColorMapVariableName();
Class that supports drawing Barbs based on 2D or 3D vector field.
BarbParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave)
static const string _needToRecalculateScalesTag
double GetLineThickness() const
static const string _alignGridTag
static const string _thicknessScaleTag
static const string _varsAre3dTag
void SetNeedToRecalculateScales(bool val)
static const string _yBarbsCountTag
Number of barbs displayed on Y axis.
const vector< long > GetGrid() const
void SetLineThickness(double val)
void SetGrid(const int grid[3])
virtual size_t GetRenderDim() const override
static const string _lengthScaleTag
double GetLengthScale() const
bool GetNeedToRecalculateScales() const
void SetLengthScale(double val)
virtual string GetActualColorMapVariableName() const override
static const string _alignGridStridesTag
BarbParams(DataMgr *dataMgr, ParamsBase::StateSave *ssave, XmlNode *node)
virtual bool GetUseSingleColorDefault() const override
static const string _zBarbsCountTag
Number of barbs displayed on Z axis.
static const string _xBarbsCountTag
Number of barbs displayed on X axis.
static string GetClassType()
A cache based data reader.
A Params subclass for managing parameters used by Renderers.