MeVisLab Toolbox Reference
ml::omAttribute Class Reference

Manages the attribute data and takes care of allocation and deallocation. More...

#include <ObjMgr/mlObjMgrAttribute.h>

Inheritance diagram for ml::omAttribute:
ml::omData

Public Member Functions

 omAttribute ()
 
 omAttribute (const omAttribute &attr)
 
 ~omAttribute () override
 
bool isContainerValid () const
 Returns true if attribute container for data is valid. More...
 
const omIDTypegetID () const
 Get method for info ID. More...
 
omAttributesVectorparent ()
 Writable parent access. More...
 
const omAttributesVectorparent () const
 Read-Only parent access. More...
 
omFlagsflags ()
 Writable flags access. More...
 
const omFlagsflags () const
 Read-Only flags access. More...
 
void createDataType (const std::string &typeName)
 Create data-type. More...
 
void createDataType (const RuntimeType *type)
 
void createDataType (const std::string &typeName, const std::string &value)
 Create data-type and assign value using a string argument. More...
 
void createDataType (const RuntimeType *type, const std::string &value)
 
omAttributeoperator= (const omAttribute &attr)
 Assignment operator. More...
 
virtual void assign (const omAttribute &attr)
 
 ATTRIBUTE_OP_HEADER (MLint32, MLint32)
 These macros declare operators and methods to access the internal attribute data: omAttribute &operator =(const dataType &value); operator dataType() const; as well as: void set_dataType(const dataType &value); (e.g. More...
 
 ATTRIBUTE_OP_HEADER (bool, bool)
 
 ATTRIBUTE_OP_HEADER (double, double)
 
 ATTRIBUTE_OP_HEADER (vec3, Vector3)
 
 ATTRIBUTE_OP_HEADER (vec4, Vector4)
 
 ATTRIBUTE_OP_HEADER (mat4, Matrix4)
 
 ATTRIBUTE_OP_HEADER (std_string, std_string)
 
 ATTRIBUTE_OP_HEADER (std_MLint32Vec, std_MLint32Vec)
 
 ATTRIBUTE_OP_HEADER (omMessage, omMessage)
 
 ATTRIBUTE_OP_HEADER (std_vec3Vec, std_vec3Vec)
 
 ATTRIBUTE_OP_HEADER (BasePtr, BasePtr)
 
omAttributeoperator= (const char *value)
 This operator assigns a 'char *' to this attribute. More...
 
void markContainerValid (bool trueOrFalse)
 
- Public Member Functions inherited from ml::omData
 omData ()
 
 omData (const std::string &typeName, const std::string &value)
 
 omData (const omData &data)
 
virtual ~omData ()
 
bool isValid () const
 Returns true if attribute is valid. More...
 
void createDataType (const std::string &typeName)
 Create datatype. More...
 
void createDataType (const RuntimeType *type)
 
const RuntimeTypegetDataType () const
 Return runtime type of data container. More...
 
std::string getStringValue () const
 
void setStringValue (const std::string &value)
 
bool stringValueIsEqual (const std::string &value) const
 
omDataoperator= (const omData &data)
 Assignment operator. More...
 
virtual void assign (const omData &data)
 
bool operator== (const omData &data) const
 
 DATA_OP_HEADER (MLint32, MLint32, 0)
 These macros declare operators and methods to access the internal attribute data: omAttribute &operator =(const dataType &value); operator dataType() const; as well as: void set_dataType(const dataType &value); (e.g. More...
 
 DATA_OP_HEADER (bool, bool, false)
 
 DATA_OP_HEADER (double, double, 0.0)
 
 DATA_OP_HEADER (vec3, Vector3, Vector3())
 
 DATA_OP_HEADER (vec4, Vector4, Vector4())
 
 DATA_OP_HEADER (mat4, Matrix4, Matrix4())
 
 DATA_OP_HEADER (std_string, std_string, std_string())
 
 DATA_OP_HEADER (std_MLint32Vec, std_MLint32Vec, std_MLint32Vec())
 
 DATA_OP_HEADER (omMessage, omMessage, omMessage())
 
 DATA_OP_HEADER (std_vec3Vec, std_vec3Vec, std_vec3Vec())
 
 DATA_OP_HEADER (BasePtr, BasePtr, BasePtr())
 
omDataoperator= (const char *value)
 This operator assigns a 'char *' to a 'std_string' attribute. More...
 

Protected Attributes

omFlags _flags
 Special flags. More...
 
omAttributesVector_parent
 
bool _isContainerValid
 
omIDType _id
 ID of attribute. More...
 
- Protected Attributes inherited from ml::omData
omDataType_data
 

Friends

class omAttributesVector
 

Detailed Description

Manages the attribute data and takes care of allocation and deallocation.

Definition at line 42 of file mlObjMgrAttribute.h.

Constructor & Destructor Documentation

◆ omAttribute() [1/2]

ml::omAttribute::omAttribute ( )

◆ omAttribute() [2/2]

ml::omAttribute::omAttribute ( const omAttribute attr)

◆ ~omAttribute()

ml::omAttribute::~omAttribute ( )
override

Member Function Documentation

◆ assign()

virtual void ml::omAttribute::assign ( const omAttribute attr)
inlinevirtual

Definition at line 108 of file mlObjMgrAttribute.h.

◆ ATTRIBUTE_OP_HEADER() [1/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( BasePtr  ,
BasePtr   
)

◆ ATTRIBUTE_OP_HEADER() [2/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( bool  ,
bool   
)

◆ ATTRIBUTE_OP_HEADER() [3/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( double  ,
double   
)

◆ ATTRIBUTE_OP_HEADER() [4/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( mat4  ,
Matrix4   
)

◆ ATTRIBUTE_OP_HEADER() [5/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( MLint32  ,
MLint32   
)

These macros declare operators and methods to access the internal attribute data: omAttribute &operator =(const dataType &value); operator dataType() const; as well as: void set_dataType(const dataType &value); (e.g.

void set_std_string(const std_string &value); ) dataType get_dataType() const; (e.g. MLint32 get_MLint32() const; )

◆ ATTRIBUTE_OP_HEADER() [6/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( omMessage  ,
omMessage   
)

◆ ATTRIBUTE_OP_HEADER() [7/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( std_MLint32Vec  ,
std_MLint32Vec   
)

◆ ATTRIBUTE_OP_HEADER() [8/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( std_string  ,
std_string   
)

◆ ATTRIBUTE_OP_HEADER() [9/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( std_vec3Vec  ,
std_vec3Vec   
)

◆ ATTRIBUTE_OP_HEADER() [10/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( vec3  ,
Vector3   
)

◆ ATTRIBUTE_OP_HEADER() [11/11]

ml::omAttribute::ATTRIBUTE_OP_HEADER ( vec4  ,
Vector4   
)

◆ createDataType() [1/4]

void ml::omAttribute::createDataType ( const RuntimeType type)
inline

Definition at line 98 of file mlObjMgrAttribute.h.

◆ createDataType() [2/4]

void ml::omAttribute::createDataType ( const RuntimeType type,
const std::string &  value 
)

◆ createDataType() [3/4]

void ml::omAttribute::createDataType ( const std::string &  typeName)
inline

Create data-type.

Definition at line 95 of file mlObjMgrAttribute.h.

◆ createDataType() [4/4]

void ml::omAttribute::createDataType ( const std::string &  typeName,
const std::string &  value 
)

Create data-type and assign value using a string argument.

◆ flags() [1/2]

omFlags& ml::omAttribute::flags ( )
inline

Writable flags access.

Definition at line 86 of file mlObjMgrAttribute.h.

◆ flags() [2/2]

const omFlags& ml::omAttribute::flags ( ) const
inline

Read-Only flags access.

Definition at line 90 of file mlObjMgrAttribute.h.

◆ getID()

const omIDType& ml::omAttribute::getID ( ) const
inline

Get method for info ID.

Definition at line 72 of file mlObjMgrAttribute.h.

◆ isContainerValid()

bool ml::omAttribute::isContainerValid ( ) const
inline

Returns true if attribute container for data is valid.

Definition at line 67 of file mlObjMgrAttribute.h.

◆ markContainerValid()

void ml::omAttribute::markContainerValid ( bool  trueOrFalse)
inline

Definition at line 137 of file mlObjMgrAttribute.h.

◆ operator=() [1/2]

omAttribute& ml::omAttribute::operator= ( const char *  value)
inline

This operator assigns a 'char *' to this attribute.

Definition at line 131 of file mlObjMgrAttribute.h.

◆ operator=() [2/2]

omAttribute& ml::omAttribute::operator= ( const omAttribute attr)

Assignment operator.

◆ parent() [1/2]

omAttributesVector* ml::omAttribute::parent ( )
inline

Writable parent access.

Definition at line 77 of file mlObjMgrAttribute.h.

◆ parent() [2/2]

const omAttributesVector* ml::omAttribute::parent ( ) const
inline

Read-Only parent access.

Definition at line 81 of file mlObjMgrAttribute.h.

Friends And Related Function Documentation

◆ omAttributesVector

friend class omAttributesVector
friend

Definition at line 46 of file mlObjMgrAttribute.h.

Member Data Documentation

◆ _flags

omFlags ml::omAttribute::_flags
protected

Special flags.

Definition at line 51 of file mlObjMgrAttribute.h.

◆ _id

omIDType ml::omAttribute::_id
protected

ID of attribute.

Definition at line 58 of file mlObjMgrAttribute.h.

◆ _isContainerValid

bool ml::omAttribute::_isContainerValid
protected

Definition at line 55 of file mlObjMgrAttribute.h.

◆ _parent

omAttributesVector* ml::omAttribute::_parent
protected

Definition at line 53 of file mlObjMgrAttribute.h.


The documentation for this class was generated from the following file: