21 #ifndef REGIONPARAMS_H
22 #define REGIONPARAMS_H
27 #include <vapor/common.h>
36 class ViewpointParams;
67 virtual void Validate(
int type);
69 virtual void restart();
83 path.push_back(Box::_boxTag);
84 return (
Box*) GetParamsBase(path);
93 GetBox()->GetLocalExtents(exts, timestep);
102 GetBox()->GetLocalExtents(exts, timestep);
103 return exts[coord+3];
110 GetBox()->GetLocalExtents(exts,timestep);
118 return (0.5*(getLocalRegionMin(indx,timestep)+getLocalRegionMax(indx,timestep)));
128 int SetLocalRegionMin(
int coord,
double minval,
int timestep);
134 int SetLocalRegionMax(
int coord,
double maxval,
int timestep);
139 const vector<long>
GetTimes(){
return GetBox()->GetValueLongVec(Box::_timesTag);}
148 bool insertTime(
int timestep);
153 bool removeTime(
int timestep);
158 const vector<double>
GetAllExtents(){
return GetBox()->GetValueDoubleVec(Box::_extentsTag);}
166 ((
RegionParams*)Params::GetParamsInstance(_regionParamsTag,-1,-1))->GetValueStringVec(_domainVariablesTag, vec);
174 if (varnames.size() == 0)
return -1;
175 return ((
RegionParams*)Params::GetParamsInstance(_regionParamsTag,-1,-1))->SetValueStringVec(_domainVariablesTag,
"Set Domain-defining variables",varnames);
177 #ifndef DOXYGEN_SKIP_THIS
179 static const string _shortName;
180 static const string _domainVariablesTag;
181 void clearRegionsMap();
183 #endif //DOXYGEN_SKIP_THIS
187 #endif //REGIONPARAMS_H
static ParamsBase * CreateDefaultInstance()
3D or 2D box with options for orientation angles and extents changing in time. Intended to be used in...
const vector< double > GetAllExtents()
A pure virtual class for managing parameters used in visualization.
double getLocalRegionMax(int coord, int timestep)
const vector< long > GetTimes()
static int SetDomainVariables(vector< string > varnames)
A class for describing a 3D axis-aligned region in user space.
Nodes with state in Xml tree representation.
static const vector< string > GetDomainVariables()
void getLocalRegionExtents(double exts[6], int timestep)
const std::string getShortName()
double getLocalRegionMin(int coord, int timestep)
double getLocalRegionCenter(int indx, int timestep)