ldas-tools-framecpp
2.8.1
|
Dimension information for a Vect. More...
#include <Dimension.hh>
Public Types | |
typedef INT_4U | nx_type |
typedef REAL_8 | dx_type |
typedef INT_4U | nx_type |
typedef REAL_8 | dx_type |
typedef INT_4U | nx_type |
typedef REAL_8 | dx_type |
Public Member Functions | |
Dimension () | |
Default Constructor. More... | |
Dimension (const Dimension &dim) | |
Copy constructor. More... | |
Dimension (nx_type nx, dx_type dx=1.0, const std::string &unitX="") | |
Constructor. More... | |
const Dimension & | operator= (const Dimension &dim) |
Assignment operator. More... | |
bool | operator== (const Dimension &dim) const |
Equal comparison. More... | |
bool | operator!= (const Dimension &dim) const |
Not equal comparison. More... | |
nx_type | GetNx () const |
Get the dimension length. More... | |
dx_type | GetDx () const |
Get the scale factor. More... | |
const STRING & | GetUnitX () const |
Get the units. More... | |
void | SetDx (dx_type Dx) |
Set sample spacing. More... | |
void | SetNx (nx_type Nx) |
void | SetUnitX (const STRING &UnitX) |
Set scale factor in ASCII. More... | |
cmn_streamsize_type | Bytes () const |
Dimension () | |
Dimension (const Dimension &dim) | |
Dimension (nx_type nx, dx_type dx=1.0, const std::string &unitX="") | |
const Dimension & | operator= (const Dimension &dim) |
Assignment operator. More... | |
bool | operator== (const Dimension &dim) const |
Equal comparison. More... | |
bool | operator!= (const Dimension &dim) const |
Not equal comparison. More... | |
nx_type | GetNx () const |
dx_type | GetDx () const |
const STRING & | GetUnitX () const |
void | SetDx (dx_type Dx) |
Set sample spacing. More... | |
void | SetNx (nx_type Nx) |
void | SetUnitX (const STRING &UnitX) |
Set scale factor in ASCII. More... | |
cmn_streamsize_type | Bytes () const |
Dimension () | |
Dimension (const Dimension &dim) | |
Dimension (nx_type nx, dx_type dx=1.0, const std::string &unitX="") | |
const Dimension & | operator= (const Dimension &dim) |
Assignment operator. More... | |
bool | operator== (const Dimension &dim) const |
Equal comparison. More... | |
bool | operator!= (const Dimension &dim) const |
Not equal comparison. More... | |
nx_type | GetNx () const |
dx_type | GetDx () const |
const STRING & | GetUnitX () const |
void | SetDx (dx_type Dx) |
Set sample spacing. More... | |
void | SetNx (nx_type Nx) |
void | SetUnitX (const STRING &UnitX) |
Set scale factor in ASCII. More... | |
cmn_streamsize_type | Bytes () const |
Private Attributes | |
nx_type | mNx |
Dimension length. More... | |
dx_type | mDx |
Scale factor. More... | |
STRING | mUnitX |
Scale factor in ASCII. More... | |
Dimension information for a Vect.
This is a simple class storing dimension information for a Vect object. It stores the following:
typedef REAL_8 FrameCPP::Version_3::Dimension::dx_type |
typedef REAL_8 FrameCPP::Version_3::Dimension::dx_type |
typedef REAL_8 FrameCPP::Version_3::Dimension::dx_type |
typedef INT_4U FrameCPP::Version_3::Dimension::nx_type |
typedef INT_4U FrameCPP::Version_3::Dimension::nx_type |
typedef INT_4U FrameCPP::Version_3::Dimension::nx_type |
FrameCPP::Version_3::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_3::Dimension::Dimension | ( | const Dimension & | dim | ) |
Copy constructor.
std::bad_alloc | Memory allocation failed. |
[ion] | dim - The Dimension to copy from. |
\excpetion std::bad_alloc Memory allocation failed.
|
explicit |
Constructor.
\excpetion std::bad_alloc Memory allocation failed.
This creates a Dimension object with the specified attributes.
[in] | nx | The dimension length. |
[in] | dx | The Scale Factor. Default: 1.0 |
[in] | unitX | The units (unit per step size). |
std::bad_alloc | Memory allocation failed. |
FrameCPP::Version_3::Dimension::Dimension | ( | ) |
FrameCPP::Version_3::Dimension::Dimension | ( | const Dimension & | dim | ) |
std::bad_alloc | Memory allocation failed. |
|
explicit |
\excpetion std::bad_alloc Memory allocation failed.
FrameCPP::Version_3::Dimension::Dimension | ( | ) |
FrameCPP::Version_3::Dimension::Dimension | ( | const Dimension & | dim | ) |
std::bad_alloc | Memory allocation failed. |
|
explicit |
\excpetion std::bad_alloc Memory allocation failed.
|
inline |
cmn_streamsize_type FrameCPP::Version_3::Dimension::Bytes | ( | ) | const |
cmn_streamsize_type FrameCPP::Version_3::Dimension::Bytes | ( | ) | const |
|
inline |
Get the scale factor.
dx_type FrameCPP::Version_3::Dimension::GetDx | ( | ) | const |
dx_type FrameCPP::Version_3::Dimension::GetDx | ( | ) | const |
|
inline |
Get the dimension length.
nx_type FrameCPP::Version_3::Dimension::GetNx | ( | ) | const |
nx_type FrameCPP::Version_3::Dimension::GetNx | ( | ) | const |
|
inline |
Get the units.
const STRING& FrameCPP::Version_3::Dimension::GetUnitX | ( | ) | const |
const STRING& FrameCPP::Version_3::Dimension::GetUnitX | ( | ) | const |
|
inline |
Not equal comparison.
[in] | dim | - The object to compare with. |
[in] | dim | The object to compare with. |
bool FrameCPP::Version_3::Dimension::operator!= | ( | const Dimension & | dim | ) | const |
Not equal comparison.
[in] | dim | - The object to compare with. |
bool FrameCPP::Version_3::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. |
std::bad_alloc | Memory allocation failed. |
Assignment operator.
[in] | dim | The object to assign from. |
std::bad_alloc | Memory allocation failed. |
Assignment operator.
[in] | dim | The object to assign from. |
std::bad_alloc | Memory allocation failed. |
|
inline |
Equal comparison.
[in] | dim | - The object to compare with. |
[in] | dim | The object to compare with. |
bool FrameCPP::Version_3::Dimension::operator== | ( | const Dimension & | dim | ) | const |
Equal comparison.
[in] | dim | - The object to compare with. |
bool FrameCPP::Version_3::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_3::Dimension::SetDx | ( | dx_type | Dx | ) |
Set sample spacing.
[in] | Dx | The new sample rate for the coordinate. |
void FrameCPP::Version_3::Dimension::SetDx | ( | dx_type | Dx | ) |
Set sample spacing.
[in] | Dx | The new sample rate for the coordinate. |
|
inline |
void FrameCPP::Version_3::Dimension::SetNx | ( | nx_type | Nx | ) |
void FrameCPP::Version_3::Dimension::SetNx | ( | nx_type | Nx | ) |
|
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_3::Dimension::SetUnitX | ( | const STRING & | UnitX | ) |
Set scale factor in ASCII.
[in] | UnitX | The new scale factor description. |
void FrameCPP::Version_3::Dimension::SetUnitX | ( | const STRING & | UnitX | ) |
Set scale factor in ASCII.
[in] | UnitX | The new scale factor description. |
|
private |
Scale factor.
|
private |
Scale factor in ASCII.