3D or 2D box with options for orientation angles and extents changing in time. Intended to be used in any Params class
More...
#include <Box.h>
|
| | Box () |
| |
| int | GetUserExtents (double extents[6], size_t timestep) |
| |
| int | GetUserExtents (float extents[6], size_t timestep) |
| |
| int | GetLocalExtents (double extents[6], int timestep=-1) |
| |
| int | GetLocalExtents (float extents[6], int timestep=-1) |
| |
| const vector< double > & | GetLocalExtents () |
| |
| int | SetLocalExtents (const vector< double > &extents, int timestep=-1) |
| |
| int | SetLocalExtents (const double extents[6], int timestep=-1) |
| |
| int | SetLocalExtents (const float extents[6], int timestep=-1) |
| |
| const vector< double > & | GetAngles () |
| |
| int | GetAngles (double ang[3]) |
| |
| int | GetAngles (float ang[3]) |
| |
| int | SetAngles (const double angles[3]) |
| |
| int | SetAngles (const float angles[3]) |
| |
| void | SetAngles (const vector< double > &vals) |
| |
| const vector< long > & | GetTimes () |
| |
| void | SetTimes (const vector< long > ×) |
| |
| void | Trim (int numTimes=1) |
| |
| | ParamsBase (XmlNode *parent, const string &name) |
| |
| | ParamsBase (const string &name) |
| | Default constructor. More...
|
| |
| | ParamsBase (const ParamsBase &pbase) |
| | Copy constructor. More...
|
| |
| virtual | ~ParamsBase () |
| |
| virtual ParamsBase * | deepCopy (ParamNode *newRoot=0) |
| |
| void | SetParent (XmlNode *parent) |
| |
| virtual bool | elementStartHandler (ExpatParseMgr *pm, int depth, string &tag, const char **attribs) |
| |
| virtual bool | elementEndHandler (ExpatParseMgr *pm, int depth, string &tag) |
| |
| ParamNode * | GetRootNode () |
| |
| virtual ParamNode * | buildNode () |
| |
| void | SetFlagDirty (const string &flag) |
| |
| const string & | GetName () const |
| |
| ParamsBaseType | GetParamsBaseTypeId () |
| |
| virtual void | SetRootParamNode (ParamNode *pn) |
| |
3D or 2D box with options for orientation angles and extents changing in time. Intended to be used in any Params class
- Author
- Alan Norton
- Version
- $Revision$
- Date
- $Date$
Definition at line 34 of file Box.h.
◆ Box()
◆ CreateDefaultInstance()
| static ParamsBase* VAPoR::Box::CreateDefaultInstance |
( |
| ) |
|
|
inlinestatic |
Definition at line 38 of file Box.h.
◆ GetAngles() [1/3]
| const vector<double>& VAPoR::Box::GetAngles |
( |
| ) |
|
|
inline |
Get the three orientation angles (theta, phi, psi) Defaults to empty vector if no angles are set.
- Return values
-
| const | vector<double> vector of length 3 of angles. |
Definition at line 95 of file Box.h.
References _anglesTag.
◆ GetAngles() [2/3]
| int VAPoR::Box::GetAngles |
( |
double |
ang[3] | ) |
|
|
inline |
Get the angles as a double array
- Parameters
-
| [out] | double | angles[3] array of three doubles for theta, phi, psi |
- Return values
-
Definition at line 102 of file Box.h.
References _anglesTag.
◆ GetAngles() [3/3]
| int VAPoR::Box::GetAngles |
( |
float |
ang[3] | ) |
|
|
inline |
Get the angles as a float array
- Parameters
-
| [out] | angles[3] | float array of three floats for theta, phi, psi |
- Return values
-
Definition at line 112 of file Box.h.
References _anglesTag.
◆ GetLocalExtents() [1/3]
| int VAPoR::Box::GetLocalExtents |
( |
double |
extents[6], |
|
|
int |
timestep = -1 |
|
) |
| |
Get the local box extents as a double array. If timestep is >= 0, then get it just for the specified timestep
- Parameters
-
| [out] | extents[6] | double Returned extents |
| [in] | timestep | int Specific time step being retrieved, or -1 for generic time steps |
- Return values
-
◆ GetLocalExtents() [2/3]
| int VAPoR::Box::GetLocalExtents |
( |
float |
extents[6], |
|
|
int |
timestep = -1 |
|
) |
| |
Get the local box extents as a float array. If timestep is >= 0, then get it just for the specified timestep
- Parameters
-
| [out] | extents[6] | float Returned extents |
| [in] | timestep | int Specific time step being retrieved, or -1 for generic time steps int zero if successful. |
◆ GetLocalExtents() [3/3]
| const vector<double>& VAPoR::Box::GetLocalExtents |
( |
| ) |
|
|
inline |
Get the local box extents as a vector. First 6 values are default; additional values are associated with non-default regions
- See also
- GetTimes()
- Parameters
-
| [out] | extents | const vector<double>& returned extents |
Definition at line 69 of file Box.h.
◆ GetTimes()
| const vector<long>& VAPoR::Box::GetTimes |
( |
| ) |
|
|
inline |
Get the time(s) as a long vector. The first one should be negative, marking the default extents. Subsequent times are nonnegative integers indicating times for nondefault extents. Number of times should be 1/6 of the number of extents values
- See also
- GetExtents()
- Return values
-
| vector<long>& | vector of longs |
Definition at line 146 of file Box.h.
References _timesTag.
◆ GetUserExtents() [1/2]
| int VAPoR::Box::GetUserExtents |
( |
double |
extents[6], |
|
|
size_t |
timestep |
|
) |
| |
Get the box user extents as a double array at a specified time step >= 0
- Parameters
-
| [out] | extents[6] | double Returned extents |
| [in] | timestep | size_t Specific time step being retrieved |
- Return values
-
◆ GetUserExtents() [2/2]
| int VAPoR::Box::GetUserExtents |
( |
float |
extents[6], |
|
|
size_t |
timestep |
|
) |
| |
Get the user box extents as a float array at specified time step for the specified timestep
- Parameters
-
| [out] | extents[6] | float Returned extents |
| [in] | timestep | size_t Specific time step being retrieved int zero if successful. |
◆ SetAngles() [1/3]
| int VAPoR::Box::SetAngles |
( |
const double |
angles[3] | ) |
|
|
inline |
Set the angles from a double array
- Parameters
-
| [in] | ang | double[3] array of three doubles for theta, phi, psi |
- Return values
-
Definition at line 122 of file Box.h.
◆ SetAngles() [2/3]
| int VAPoR::Box::SetAngles |
( |
const float |
angles[3] | ) |
|
|
inline |
Set the angles from a float array
- Parameters
-
| [in] | angles | float[3] array of three floats for theta, phi, psi |
- Return values
-
Definition at line 130 of file Box.h.
◆ SetAngles() [3/3]
| void VAPoR::Box::SetAngles |
( |
const vector< double > & |
vals | ) |
|
|
inline |
Set the three orientation angles (theta, phi, psi) from a vector of doubles
- Parameters
-
| [in] | vals | const vector<double>& vector of length 3 of angles. |
Definition at line 137 of file Box.h.
◆ SetLocalExtents() [1/3]
| int VAPoR::Box::SetLocalExtents |
( |
const vector< double > & |
extents, |
|
|
int |
timestep = -1 |
|
) |
| |
Specify the local extents. If time step is -1, then set the generic extents. Otherwise set the extents for a specific timestep. param[in] extents vector<double>& Six doubles that will be new extents param[in] timestep int Specified time step, or -1 for generic times
- Return values
-
◆ SetLocalExtents() [2/3]
| int VAPoR::Box::SetLocalExtents |
( |
const double |
extents[6], |
|
|
int |
timestep = -1 |
|
) |
| |
Specify the local extents as a double array. If time step is -1, then set the generic extents. Otherwise set the extents for a specific timestep. param[in] double extents6] 6 doubles that will be new extents param[in] int timestep specified time step, or -1 for generic times
- Return values
-
◆ SetLocalExtents() [3/3]
| int VAPoR::Box::SetLocalExtents |
( |
const float |
extents[6], |
|
|
int |
timestep = -1 |
|
) |
| |
Specify the local extents as a float array. If time step is -1, then set the generic extents. Otherwise set the extents for a specific timestep. param[in] float extents[6] param[in] int timestep specified time step, or -1 for generic times
- Return values
-
◆ SetTimes()
| void VAPoR::Box::SetTimes |
( |
const vector< long > & |
times | ) |
|
|
inline |
Set the time(s) as a long vector. The first one should be negative, marking the default extents. Subsequent times are nonnegative integers indicating times for nondefault extents. This vector should be the same size as the extents vector.
- Parameters
-
| [out] | const | vector<long>& vector of times |
Definition at line 155 of file Box.h.
References _timesTag.
◆ Trim()
| void VAPoR::Box::Trim |
( |
int |
numTimes = 1 | ) |
|
|
inline |
Trim both the times and extents vectors to same length. Default is to length 1
- Parameters
-
| [in] | numTimes | int resulting length of times and extentss. |
Definition at line 159 of file Box.h.
References _extentsTag, and _timesTag.
◆ _anglesTag
| const string VAPoR::Box::_anglesTag |
|
static |
◆ _boxTag
| const string VAPoR::Box::_boxTag |
|
static |
◆ _extentsTag
| const string VAPoR::Box::_extentsTag |
|
static |
◆ _timesTag
| const string VAPoR::Box::_timesTag |
|
static |
The documentation for this class was generated from the following file:
- /Users/clyne/src/vapor/lib/params/Box.h