5 #include "vapor/ParamNode.h"
32 virtual void restart();
37 path.push_back(Box::_boxTag);
38 return (
Box*) GetParamsBase(path);
43 virtual void Validate(
int type);
52 for (
int i = 0; i<3; i++){
53 if (GetFieldVariableNames()[i] == varname)
return true;
55 if (IsTerrainMapped() && (varname == GetHeightVariableName()))
return true;
62 const vector<double> one(1,1.);
63 return (GetValueDouble(_lineThicknessTag,one));
69 return SetValueDouble(_lineThicknessTag,
"Set barb thickness",val);
76 const vector<double>defaultScale(1,1.);
77 return ((
float)GetValueDouble(_vectorScaleTag,defaultScale));
82 int SetVectorScale(
double val);
87 int SetConstantColor(
const double rgb[3]);
91 const vector<double> GetConstantColor();
97 if (val == VariablesAre3D())
return 0;
98 int rc = SetValueLong(_variableDimensionTag,
"Set barb var dimensions",(
long)(val ? 3:2));
107 const vector<long>three(1,3);
108 return (GetValueLong(_variableDimensionTag,three) == 3);
114 double calcDefaultScale();
116 #ifndef DOXYGEN_SKIP_THIS
117 static const string _arrowParamsTag;
120 static const string _shortName;
121 static const string _constantColorTag;
122 static const string _lineThicknessTag;
123 static const string _vectorScaleTag;
125 #endif //DOXYGEN_SKIP_THIS
129 #endif //ARROWPARAMS_H
int SetLineThickness(double val)
virtual bool usingVariable(const std::string &varname)
3D or 2D box with options for orientation angles and extents changing in time. Intended to be used in...
A Params subclass for managing parameters used by Renderers.
Nodes with state in Xml tree representation.
Class that supports drawing Barbs based on 2D or 3D vector field.
const std::string getShortName()
static ParamsBase * CreateDefaultInstance()
int SetVariables3D(bool val)
double GetLineThickness()