MeVisLab Toolbox Reference
mlDICOMCachedIOTreeCacheSingleMFMapEntry.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
6
11//----------------------------------------------------------------------------------
12
13#pragma once
14
15// Local includes
18#include <mlTypeDefs.h>
19#include <DCMTree_Tree.h>
20
21
25{
26 public:
27
29 static ML_NAMESPACE::DICOMCachedIOFileHandle createCodedHandle(const ML_NAMESPACE::DICOMCachedIOFileHandle origFileHandleArg,
30 size_t frameIndexArg);
31
34
37 const ML_NAMESPACE::DICOMCachedIOFileHandle origFileHandleArg,
38 size_t frameIndexArg);
39
42
45
47 inline const DCMTree::TreePtr &getSingleFrameTree() const { return _singleFrameTree; }
48 inline const ML_NAMESPACE::DICOMCachedIOFileHandle &getCodedHandle() const { return _codedHandle; }
49 inline const ML_NAMESPACE::DICOMCachedIOFileHandle &getOrigHandle() const { return _origFileHandle; }
50 inline size_t getFrameIndex() const { return _frameIndex; }
52
53 protected:
56
59 ML_NAMESPACE::DICOMCachedIOFileHandle _codedHandle;
60
63 ML_NAMESPACE::DICOMCachedIOFileHandle _origFileHandle;
64
67};
Project global and OS specific declarations.
#define MLDICOMCachedIO_EXPORT
If included by external modules, exported symbols are declared as import symbols.
Class describing one SingleMultiFrameFrame entry in the map of locked single frames in the MLDICOMCac...
MLDICOMCachedIOTreeCacheSingleMFMapEntry(DCMTree::TreePtr singleFrameTreeArg, const ml::DICOMCachedIOFileHandle origFileHandleArg, size_t frameIndexArg)
Convenience constructor.
MLDICOMCachedIOTreeCacheSingleMFMapEntry()
Default constructor.
const ml::DICOMCachedIOFileHandle & getCodedHandle() const
const ml::DICOMCachedIOFileHandle & getOrigHandle() const
static ml::DICOMCachedIOFileHandle createCodedHandle(const ml::DICOMCachedIOFileHandle origFileHandleArg, size_t frameIndexArg)
Function which returns a coded handle built from an original handle and an index.
ml::DICOMCachedIOFileHandle _codedHandle
The coded handle to the single frame + original handle to the multi-frame file with additional "*" at...
ml::DICOMCachedIOFileHandle _origFileHandle
The original handle to the multi-frame file without additional "*" at its beginning and without numbe...
MLDICOMCachedIOTreeCacheSingleMFMapEntry(const MLDICOMCachedIOTreeCacheSingleMFMapEntry &orig)
Copy constructor.
const DCMTree::TreePtr & getSingleFrameTree() const
Public access to protected members.
DCMTree::TreePtr _singleFrameTree
The tree representing one frame from a multi-frame file.
size_t _frameIndex
The index of the frame in _origFileHandle to which singleFrameTree corresponds.
MLDICOMCachedIOTreeCacheSingleMFMapEntry & operator=(const MLDICOMCachedIOTreeCacheSingleMFMapEntry &orig)
Assignment operator.
Header of FileHandle class which should be used in DICOM importing modules to resolve the filename fo...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition DCMTree_Lib.h:72