MeVisLab Toolbox Reference
mlDMImage.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 
17 #include <mlDMFileReaderDefs.h>
18 
19 ML_START_NAMESPACE
20 
21 //----------------------------------------------------------------------------------
23 //----------------------------------------------------------------------------------
25  public:
28  MLuint64 originPosition=0);
29 
32 
34  void load();
35 
45  std::string getAsString(std::string prefix="",
46  const std::string &sep=", ",
47  const size_t maxNumBinaryEntries=8,
48  const size_t maxNumStringEntries=20) const;
49 
50  private:
52  DMImage &operator=(const DMImage &);
53 
55  DMImage(const DMImage &);
56 
58  DMFileReader &_reader;
59 
61  MLuint64 _originPosition;
62 
64  mutable DMTagGroupPtr _tagGroup;
65 };
66 
68 MLDMFileReader_EXPORT std::ostream& operator<<(std::ostream& os, const DMImage &obj);
69 
70 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDMFileReader_EXPORT
If included by external modules, exported symbols are declared as import symbols.
A tool classes to load Digital Microscopy files.
Representation for the DM file as data structure.
Definition: mlDMImage.h:24
std::string getAsString(std::string prefix="", const std::string &sep=", ", const size_t maxNumBinaryEntries=8, const size_t maxNumStringEntries=20) const
Convert content to a human readable string with the prefix prefix before all lines and separator sep ...
DMTagGroupPtr getTagGroup() const
Return constant access to the tag group.
void load()
Load the tag data structures such that all contents can be used.
DMImage(DMFileReader &reader, MLuint64 originPosition=0)
Constructor initialized with its reader and the data structure position in the file.
Project wide definitions.
UINT64 MLuint64
Introduce platform independent 64 bit unsigned integer type.
Definition: mlTypeDefs.h:513
MLDMFileReader_EXPORT std::ostream & operator<<(std::ostream &os, const DMImage &obj)
Output to std::ostream.
boost::shared_ptr< DMTagGroup > DMTagGroupPtr
Boost shared-pointer type definitions for DMTagGroup.