MeVisLab Toolbox Reference
mlDMFileReaderDefs.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 
12 #pragma once
13 
14 #include "MLDMFileReaderSystem.h"
15 #include <mlUtilsSystem.h>
16 
17 #include <ThirdPartyWarningsDisable.h>
18 #include <boost/shared_ptr.hpp>
19 #include <string>
20 #include <vector>
21 #include <ThirdPartyWarningsRestore.h>
22 
23 ML_START_NAMESPACE
24 
25 class DMFileReader;
26 class DMImage;
27 class DMTag;
28 class DMTagGroup;
29 class DMTagDirectory;
30 class DMTagData;
31 class DMImageDataStruct;
32 
34 typedef boost::shared_ptr<DMFileReader> DMFileReaderPtr;
35 
37 typedef boost::shared_ptr<DMImage> DMImagePtr;
38 
40 typedef boost::shared_ptr<DMImageDataStruct> DMImageDataStructPtr;
41 
43 typedef boost::shared_ptr<DMTag> DMTagPtr;
44 
46 typedef boost::shared_ptr<DMTagDirectory> DMTagDirectoryPtr;
47 
49 typedef std::vector<DMTagPtr> DMTagPtrVector;
50 
52 typedef boost::shared_ptr<DMTagGroup> DMTagGroupPtr;
53 
55 typedef boost::shared_ptr<DMTagData> DMTagDataPtr;
56 
57 
61  DM_Short = 2,
62  DM_Long = 3,
63  DM_UShort = 4,
64  DM_ULong = 5,
65  DM_Float = 6,
66  DM_Double = 7,
67  DM_Boolean = 8,
68  DM_Char = 9,
69  DM_Octet = 10,
70  DM_LongLong = 11,
71  DM_ULongLong = 12,
72  DM_Struct = 15,
77  DM_String = 18,
78  DM_Array = 20,
79 
80  DM_Undefined = -1,
81  DM_InvalidType = -2
82 };
83 
101  DM_4ByteZeroRedGreenBlueWord = 23 // used for thumbnails
102 };
103 
104 ML_END_NAMESPACE
Project global and OS specific declarations.
boost::shared_ptr< DMTag > DMTagPtr
Boost shared-pointer type definitions for DMTagEntry.
boost::shared_ptr< DMImage > DMImagePtr
Boost shared-pointer type definitions for DMImage.
DMEncodedVoxelDataType
Enumerator describing the DMReader encoded voxel data type; the enumerator value corresponds to the v...
@ DM_1ByteUnsignedByte
@ DM_2ByteUnsignedShort
@ DM_16ByteComplex
@ DM_1ByteBinary
@ DM_8ByteReal
@ DM_4ByteReal
@ DM_4ByteUnusedRedGreenBlueWord
@ DM_2ByteSignedShort
@ DM_4BytePackedComplex
@ DM_8ByteComplexF
@ DM_4ByteSignedLong
@ DM_4ByteUnsignedLong
@ DM_1ByteSignedByte
@ DM_4ByteZeroRedGreenBlueWord
std::vector< DMTagPtr > DMTagPtrVector
Vector of shared pointers to DMTags.
boost::shared_ptr< DMTagData > DMTagDataPtr
Boost shared-pointer type definitions for DMTagData.
boost::shared_ptr< DMFileReader > DMFileReaderPtr
Boost shared-pointer type definitions for DMFileReader.
boost::shared_ptr< DMTagGroup > DMTagGroupPtr
Boost shared-pointer type definitions for DMTagGroup.
DMEncodedStructureType
Enumerator describing the encoded type; the enumerator value is the same as the stored value in file.
@ DM_LongLong
64 bit long unknown if signed or not (only .dm4)
@ DM_Octet
octet: data size = 1
@ DM_Char
char: data size = 1
@ DM_Short
short: data size = 2
@ DM_Array
data size = array_length x sizeof(array_type)
@ DM_ULong
unsigned long: data size = 4
@ DM_Double
double: data size = 8
@ DM_Undefined
Undefined type, still not read from file or if mode does not match.
@ DM_Long
long: data size = 4
@ DM_ULongLong
64 bit long unknown if signed or not (only .dm4)
@ DM_InvalidType
Invalid type, already read from file but value is wrong.
@ DM_Struct
struct: contains the following data: struct_name: data size = struct_namelength x 1 [ for the n field...
@ DM_String
string: data size = 2 x string length, stored as 2 byte unicode
@ DM_UShort
unsigned short: data size = 2
@ DM_Boolean
boolean: data size = 1
@ DM_Float
float: data size = 4
boost::shared_ptr< DMTagDirectory > DMTagDirectoryPtr
Boost shared-pointer type definitions for DMTagMap.
boost::shared_ptr< DMImageDataStruct > DMImageDataStructPtr
Boost shared-pointer type definitions for DMIMageDataStruct.