MeVisLab Toolbox Reference
|
Class managing a multi-frame Z, T, and U-dimension plus a string value. More...
#include <mlZTUIndex.h>
Public Member Functions | |
ZTUIndex (MLuint64 zp=0, MLuint64 tp=0, MLuint64 up=0, const std::string &val="") | |
Convenience constructor. More... | |
ZTUIndex (const std::string &val) | |
Convenience constructor setting members from string with readMembersFromString. More... | |
bool | operator== (const ZTUIndex &a) const |
Equality operator. More... | |
bool | operator!= (const ZTUIndex &a) const |
Inequality operator. More... | |
bool | operator< (const ZTUIndex &a) const |
Artificial comparison operator on z,t, and u to be able to insert it into a map: u comparison is strongest, then t and smallest is z, the value component is not regarded. More... | |
bool | readMembersFromString (const std::string &srcVal) |
Reads a string of type "Z T U:Value" into the members and returns true on success, otherwise false. More... | |
bool | isInUINT32Range () const |
Returns true if z, t, and u are smaller or equal than ML_UINT32_MAX, otherwise false. More... | |
bool | isInSize_TRange () const |
Returns true if z, t, and u are smaller or equal than the currently compiled range of the size_t data type, otherwise false. More... | |
Public Attributes | |
MLuint64 | z |
z-Coordinate of the frame. More... | |
MLuint64 | t |
t-Coordinate of the frame. More... | |
MLuint64 | u |
u-Coordinate of the frame. More... | |
std::string | value |
A string value assigned to the coordinate. More... | |
Class managing a multi-frame Z, T, and U-dimension plus a string value.
Definition at line 26 of file mlZTUIndex.h.
ml::DICOMTagTools::ZTUIndex::ZTUIndex | ( | MLuint64 | zp = 0 , |
MLuint64 | tp = 0 , |
||
MLuint64 | up = 0 , |
||
const std::string & | val = "" |
||
) |
Convenience constructor.
ml::DICOMTagTools::ZTUIndex::ZTUIndex | ( | const std::string & | val | ) |
Convenience constructor setting members from string with readMembersFromString.
bool ml::DICOMTagTools::ZTUIndex::isInSize_TRange | ( | ) | const |
Returns true if z, t, and u are smaller or equal than the currently compiled range of the size_t data type, otherwise false.
bool ml::DICOMTagTools::ZTUIndex::isInUINT32Range | ( | ) | const |
Returns true if z, t, and u are smaller or equal than ML_UINT32_MAX, otherwise false.
bool ml::DICOMTagTools::ZTUIndex::operator!= | ( | const ZTUIndex & | a | ) | const |
Inequality operator.
bool ml::DICOMTagTools::ZTUIndex::operator< | ( | const ZTUIndex & | a | ) | const |
Artificial comparison operator on z,t, and u to be able to insert it into a map: u comparison is strongest, then t and smallest is z, the value component is not regarded.
For example (z=3,t=0,u=2) is smaller than (z=1,t=0,u=3).
bool ml::DICOMTagTools::ZTUIndex::operator== | ( | const ZTUIndex & | a | ) | const |
Equality operator.
bool ml::DICOMTagTools::ZTUIndex::readMembersFromString | ( | const std::string & | srcVal | ) |
Reads a string of type "Z T U:Value" into the members and returns true on success, otherwise false.
The "Value" part of the read string is either terminated by std::eof or std::endl. Therefore it can contain whitespaces. Since line terminators are platform dependent it is recommended not to rely on the endline terminators and provide srcVal strings which are not longer than the "Value" part.
MLuint64 ml::DICOMTagTools::ZTUIndex::t |
t-Coordinate of the frame.
Definition at line 61 of file mlZTUIndex.h.
MLuint64 ml::DICOMTagTools::ZTUIndex::u |
u-Coordinate of the frame.
Definition at line 62 of file mlZTUIndex.h.
std::string ml::DICOMTagTools::ZTUIndex::value |
A string value assigned to the coordinate.
Definition at line 63 of file mlZTUIndex.h.
MLuint64 ml::DICOMTagTools::ZTUIndex::z |
z-Coordinate of the frame.
Definition at line 60 of file mlZTUIndex.h.