5 #include "vapor/ParamNode.h"
31 virtual void restart();
35 virtual void Validate(
int type);
43 for (
int i = 0; i<3; i++){
44 if (GetVariableName() == varname)
return true;
52 return (GetValueDouble(_lineThicknessTag));
56 return GetValueDoubleVec(_point1Tag);
60 return GetValueDoubleVec(_point2Tag);
64 SetValueDouble(_point1Tag,
"Set First Endpoint", pt);
68 SetValueDouble(_point2Tag,
"Set Second Endpoint", pt);
74 return SetValueDouble(_lineThicknessTag,
"Set line thickness",val);
80 int SetConstantColor(
const double rgb[3]);
84 const vector<double> GetConstantColor();
86 #ifndef DOXYGEN_SKIP_THIS
87 static const string _helloParamsTag;
90 static const string _shortName;
91 static const string _constantColorTag;
92 static const string _lineThicknessTag;
93 static const string _point1Tag;
94 static const string _point2Tag;
96 #endif //DOXYGEN_SKIP_THIS
100 #endif //HELLOPARAMS_H
void SetPoint1(vector< double > pt)
Set the first endpoint.
A Params subclass for managing parameters used by Renderers.
const vector< double > GetPoint1()
Obtain the first endpoint in user coordinates.
int SetLineThickness(double val)
Nodes with state in Xml tree representation.
virtual bool IsOpaque()
Indicates that line geometry is always opaque.
static ParamsBase * CreateDefaultInstance()
virtual bool usingVariable(const std::string &varname)
const vector< double > GetPoint2()
Obtain the second endpoint in user coordinates.
const std::string getShortName()
void SetPoint2(vector< double > pt)
Set the second endpoint.
Class that supports drawing a line connecting two points.
double GetLineThickness()