a 3D vector value used in attributes More...
#include <mia/3d/valueattributetranslator.hh>
Public Member Functions | |
C3DValueAttribute (const T3DVector< T > &value) | |
operator T3DVector< T > () const | |
int | type_id () const |
const char * | typedescr () const |
Public Member Functions inherited from CAttribute | |
std::string | as_string () const |
returns the value as a atring More... | |
bool | is_equal (const CAttribute &other) const |
bool | is_less (const CAttribute &other) const |
virtual | ~CAttribute () |
virtual destructor since derived classes may define dynamic objetcs More... | |
a 3D vector value used in attributes
This class is a hack to work around the vista voxel size stringyfied value. Normaly one would write "x,y,z" but in vista it is "x y z", which means a different translator is needed as compared to a T3DVector. For everything else the T3DVector interpretation is used (based on type_id);
T | the data type of the vector elements |
Definition at line 54 of file valueattributetranslator.hh.
C3DValueAttribute< T >::C3DValueAttribute | ( | const T3DVector< T > & | value | ) |
Constructor to initialize the attribute by using a 3D Vector value
value |
C3DValueAttribute< T >::operator T3DVector< T > | ( | ) | const |
|
inlinevirtual |
|
inlinevirtual |
Obtain a run-time unique type description of the value type
Implements CAttribute.
Definition at line 70 of file valueattributetranslator.hh.