MeVisLab Toolbox Reference
mlObjMgrAttributes.h
Go to the documentation of this file.
1 /*************************************************************************************
2 **
3 ** Copyright 2007, MeVis Medical Solutions AG
4 **
5 ** The user may use this file in accordance with the license agreement provided with
6 ** the Software or, alternatively, in accordance with the terms contained in a
7 ** written agreement between the user and MeVis Medical Solutions AG.
8 **
9 ** For further information use the contact form at https://www.mevislab.de/contact
10 **
11 **************************************************************************************/
12 
13 #ifndef ML_OBJ_MGR_ATTRIBUTES_H
14 #define ML_OBJ_MGR_ATTRIBUTES_H
15 
16 
18 
19 #include "mlObjMgrSubAttribute.h"
20 
21 #include "mlObjMgrDataTypes.h"
22 
23 // omAttribute_Message
25 
26 // Constants for all registered attribute (info) types
27 #define omINFOTYPE_INT32 "omAttribute_MLint32"
28 #define omINFOTYPE_BOOL "omAttribute_bool"
29 #define omINFOTYPE_DOUBLE "omAttribute_double"
30 #define omINFOTYPE_MAT4 "omAttribute_mat4"
31 #define omINFOTYPE_INT32VEC "omAttribute_std_MLint32Vec"
32 #define omINFOTYPE_STRING "omAttribute_std_string"
33 #define omINFOTYPE_MESSAGE "omAttribute_omMessage"
34 #define omINFOTYPE_VEC3 "omAttribute_vec3"
35 #define omINFOTYPE_VEC4 "omAttribute_vec4"
36 #define omINFOTYPE_VEC3VEC "omAttribute_std_vec3Vec"
37 #define omINFOTYPE_BASEPTR "omAttribute_BasePtr"
38 
39 ML_START_NAMESPACE
40 
42  // Declaration of attribute data types
43  //
44  // To add new types: see also mlObjMgrObject.cpp and MLObjMgrInit.cpp
45  // The macros are defined in mlObjMgrSubAttribute.h
46 
48  ATTRIBUTE_TYPE_HEADER(bool, bool)
49  ATTRIBUTE_TYPE_HEADER(double, double)
57 
58 
59 
60  std::list<std::string> omGetKnownAttributes();
61 
62 ML_END_NAMESPACE
63 
64 #endif // __mlObjMgrAttributes_H
#define ATTRIBUTE_TYPE_HEADER(dataTypeName, dataType)
This file declares attribute subclass macros and the base attribute.
signed int MLint32
Definition: mlTypeDefs.h:167
std::string std_string
Tvec4< MLdouble > Vector4
A vector with 4 components of type double.
Definition: mlVector4.h:162
Tmat4< MLdouble > Matrix4
The standard 4x4 matrix of type double.
Definition: mlMatrix4.h:726
Tvec3< MLdouble > Vector3
A vector with 3 components of type double.
Definition: mlVector3.h:300
std::list< std::string > omGetKnownAttributes()
Returns a list of all registered attribute type names.
std::vector< MLint32 > std_MLint32Vec
std::vector< Vector3 > std_vec3Vec
boost::shared_ptr< Base > BasePtr