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
15
17#include <mlDMFileReaderDefs.h>
18
19ML_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
68MLDMFileReader_EXPORT std::ostream& operator<<(std::ostream& os, const DMImage &obj);
69
70ML_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
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:424
std::ostream & operator<<(std::ostream &out, const ml::Variant &variant)
Definition mlVariant.h:210
boost::shared_ptr< DMTagGroup > DMTagGroupPtr
Boost shared-pointer type definitions for DMTagGroup.