65#ifdef VAPOR3_0_0_ALPHA
66 void getLocalRegionExtents(
double exts[6],
int timestep)
const
68 GetBox()->GetLocalExtents(exts, timestep);
76 double getLocalRegionCenter(
int indx,
int timestep)
const
78 if (indx < 0 || indx > 2) indx = 0;
79 return (0.5 * (getLocalRegionMin(indx, timestep) + getLocalRegionMax(indx, timestep)));
83#ifdef VAPOR3_0_0_ALPHA
86 const vector<long> GetTimes()
const {
return GetBox()->GetTimes(); }
90 bool extentsAreVarying() {
return GetBox()->GetTimes().size() > 1; }
95 bool insertTime(
int timestep);
100 bool removeTime(
int timestep);
103#ifdef VAPOR3_0_0_ALPHA
107 vector<double> GetAllExtents()
const {
return GetBox()->GetLocalExtents(); }
110#ifdef VAPOR3_0_0_ALPHA
115 static const vector<string> GetDomainVariables()
117 ((RegionParams *)_paramsMgr->GetParamsInstance(_regionParamsTag, -1, -1))->GetValueStringVec(_domainVariablesTag);
124 static int SetDomainVariables(vector<string> varnames)
126 if (varnames.size() == 0)
return -1;
127 return ((RegionParams *)_paramsMgr->GetParamsInstance(_regionParamsTag, -1, -1))->SetValueStringVec(_domainVariablesTag,
"Set Domain-defining variables", varnames);
138 static const string _domainVariablesTag;
3D or 2D box with options for orientation angles .
Nodes with state in Xml tree representation.
A class for describing a 3D axis-aligned region in user space.
RegionParams(ParamsBase::StateSave *ssave, XmlNode *node)
RegionParams(const RegionParams &rhs)
virtual Box * GetBox() const
static string GetClassType()
RegionParams(ParamsBase::StateSave *ssave)
RegionParams & operator=(const RegionParams &rhs)