ldas-tools-framecpp 3.0.4
|
Dimension information for a Vect. More...
#include <Dimension.hh>
Public Types | |
typedef DIMENSION_NDIM_TYPE | nDim_type |
typedef DIMENSION_NX_TYPE | nx_type |
typedef DIMENSION_DX_TYPE | dx_type |
typedef DIMENSION_STARTX_TYPE | startX_type |
typedef STRING | unitX_type |
typedef INT_4U | nx_v3_type |
typedef DIMENSION_NDIM_TYPE | nDim_type |
typedef DIMENSION_NX_TYPE | nx_type |
typedef DIMENSION_DX_TYPE | dx_type |
typedef DIMENSION_STARTX_TYPE | startX_type |
typedef STRING | unitX_type |
typedef INT_4U | nx_v3_type |
Public Member Functions | |
Dimension () | |
Default Constructor. | |
Dimension (const Dimension &dim) | |
Copy constructor. | |
Dimension (nx_type nx, dx_type dx=1.0, const std::string &unitX="", startX_type startX=0.0) | |
Constructor. | |
Dimension (const Previous::Dimension &Source) | |
const Dimension & | operator= (const Dimension &dim) |
Assignment operator. | |
bool | operator== (const Dimension &dim) const |
Equal comparison. | |
bool | operator!= (const Dimension &dim) const |
Not equal comparison. | |
nx_type | GetNx () const |
Get the dimension length. | |
dx_type | GetDx () const |
Get the scale factor. | |
startX_type | GetStartX () const |
Get data set origin. | |
const unitX_type & | GetUnitX () const |
Get the units. | |
void | SetDx (dx_type Dx) |
Set sample spacing. | |
void | SetNx (nx_type Nx) |
Set dimension length. | |
void | SetStartX (startX_type StartX) |
Set data set origin. | |
void | SetUnitX (const unitX_type &UnitX) |
Set scale factor in ASCII. | |
cmn_streamsize_type | Bytes () const |
cmn_streamsize_type | Bytes (const Common::StreamBase &Stream) const |
Dimension () | |
Dimension (const Dimension &dim) | |
Dimension (nx_type nx, dx_type dx=1.0, const std::string &unitX="", startX_type startX=0.0) | |
Dimension (const Previous::Dimension &Source) | |
const Dimension & | operator= (const Dimension &dim) |
Assignment operator. | |
bool | operator== (const Dimension &dim) const |
Equal comparison. | |
bool | operator!= (const Dimension &dim) const |
Not equal comparison. | |
nx_type | GetNx () const |
Get the dimension length. | |
dx_type | GetDx () const |
Get the scale factor. | |
startX_type | GetStartX () const |
Get data set origin. | |
const unitX_type & | GetUnitX () const |
Get the units. | |
void | SetDx (dx_type Dx) |
Set sample spacing. | |
void | SetNx (nx_type Nx) |
Set dimension length. | |
void | SetStartX (startX_type StartX) |
Set data set origin. | |
void | SetUnitX (const unitX_type &UnitX) |
Set scale factor in ASCII. | |
cmn_streamsize_type | Bytes () const |
cmn_streamsize_type | Bytes (const Common::StreamBase &Stream) const |
Static Public Member Functions | |
static nx_type | CalcNData (nDim_type NDims, const Dimension *Dims) |
static nx_type | CalcNData (nDim_type NDims, const Dimension *Dims) |
Private Attributes | |
nx_type | mNx |
Dimension length. | |
dx_type | mDx |
Scale factor. | |
unitX_type | mUnitX |
Scale factor in ASCII. | |
startX_type | mStartX |
Origin. |
Dimension information for a Vect.
This is a simple class storing dimension information for a Vect object. It stores the following:
typedef DIMENSION_DX_TYPE FrameCPP::Version_9::Dimension::dx_type |
typedef DIMENSION_DX_TYPE FrameCPP::Version_9::Dimension::dx_type |
typedef DIMENSION_NDIM_TYPE FrameCPP::Version_9::Dimension::nDim_type |
typedef DIMENSION_NDIM_TYPE FrameCPP::Version_9::Dimension::nDim_type |
typedef DIMENSION_NX_TYPE FrameCPP::Version_9::Dimension::nx_type |
typedef DIMENSION_NX_TYPE FrameCPP::Version_9::Dimension::nx_type |
typedef INT_4U FrameCPP::Version_9::Dimension::nx_v3_type |
typedef INT_4U FrameCPP::Version_9::Dimension::nx_v3_type |
typedef DIMENSION_STARTX_TYPE FrameCPP::Version_9::Dimension::startX_type |
typedef DIMENSION_STARTX_TYPE FrameCPP::Version_9::Dimension::startX_type |
typedef STRING FrameCPP::Version_9::Dimension::unitX_type |
typedef STRING FrameCPP::Version_9::Dimension::unitX_type |
FrameCPP::Version_9::Dimension::Dimension | ( | ) |
Default Constructor.
This creates a dimension object with the following values:
Dimension Length (Nx) - 1 Scale Factor (Dx) - 1.0 Units (UnitX) - ""
FrameCPP::Version_9::Dimension::Dimension | ( | const Dimension & | dim | ) |
Copy constructor.
[in] | dim | The Dimension to copy from. |
std::bad_alloc | Memory allocation failed. |
|
explicit |
Constructor.
This creates a Dimension object with the specified attributes.
[in] | nx | The dimension length. |
[in] | dx | The Scale Factor. |
[in] | unitX | The units (unit per step size). |
[in] | startx | The origin of the data set. |
std::bad_alloc | Memory allocation failed. |
|
inline |
FrameCPP::Version_9::Dimension::Dimension | ( | ) |
FrameCPP::Version_9::Dimension::Dimension | ( | const Dimension & | dim | ) |
|
explicit |
FrameCPP::Version_9::Dimension::Dimension | ( | const Previous::Dimension & | Source | ) |
|
inline |
cmn_streamsize_type FrameCPP::Version_9::Dimension::Bytes | ( | ) | const |
|
inline |
cmn_streamsize_type FrameCPP::Version_9::Dimension::Bytes | ( | const Common::StreamBase & | Stream | ) | const |
|
inlinestatic |
|
static |
|
inline |
Get the scale factor.
dx_type FrameCPP::Version_9::Dimension::GetDx | ( | ) | const |
Get the scale factor.
|
inline |
Get the dimension length.
nx_type FrameCPP::Version_9::Dimension::GetNx | ( | ) | const |
Get the dimension length.
|
inline |
Get data set origin.
startX_type FrameCPP::Version_9::Dimension::GetStartX | ( | ) | const |
Get data set origin.
|
inline |
Get the units.
const unitX_type & FrameCPP::Version_9::Dimension::GetUnitX | ( | ) | const |
Get the units.
|
inline |
Not equal comparison.
[in] | dim | The object to compare with. |
bool FrameCPP::Version_9::Dimension::operator!= | ( | const Dimension & | dim | ) | const |
Not equal comparison.
[in] | dim | The object to compare with. |
Assignment operator.
[in] | dim | The object to assign from. |
Assignment operator.
[in] | dim | The object to assign from. |
|
inline |
Equal comparison.
[in] | dim | The object to compare with. |
bool FrameCPP::Version_9::Dimension::operator== | ( | const Dimension & | dim | ) | const |
Equal comparison.
[in] | dim | The object to compare with. |
|
inline |
Set sample spacing.
Establish a new value for sample spacing along the coordinate.
[in] | Dx | The new sample rate for the coordinate. |
void FrameCPP::Version_9::Dimension::SetDx | ( | dx_type | Dx | ) |
Set sample spacing.
[in] | Dx | The new sample rate for the coordinate. |
|
inline |
Set dimension length.
[in] | Nx | The new dimension length |
void FrameCPP::Version_9::Dimension::SetNx | ( | nx_type | Nx | ) |
Set dimension length.
[in] | Nx | The new dimension length |
|
inline |
Set data set origin.
[in] | StartX | Data set origin. |
void FrameCPP::Version_9::Dimension::SetStartX | ( | startX_type | StartX | ) |
Set data set origin.
[in] | StartX | Data set origin. |
|
inline |
Set scale factor in ASCII.
Establish a new value for sample spacing along the coordinate.
[in] | UnitX | The new scale factor description. |
void FrameCPP::Version_9::Dimension::SetUnitX | ( | const unitX_type & | UnitX | ) |
Set scale factor in ASCII.
[in] | UnitX | The new scale factor description. |
|
private |
Scale factor.
|
private |
Origin.
|
private |
Scale factor in ASCII.