MeVisLab Toolbox Reference
mlRetrieveDCMTree.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
10 //----------------------------------------------------------------------------------
11 #pragma once
12 
14 #include <mlModuleIncludes.h>
15 #include <DCMTree_Lib.h>
16 
17 ML_START_NAMESPACE
18 
19 // Forwards
20 class DicomMessageCollector;
21 
22 //----------------------------------------------------------------------------------
25 //----------------------------------------------------------------------------------
26 namespace DicomToMLTools {
27 
75  const std::string &inputSourceName,
76  const std::string &fileName,
77  Base *basePtr,
78  const MLint volIdx,
79  size_t *numVolumes,
80  bool allowEmptyFileNames,
81  DicomMessageCollector &dcmMsgCollector);
82 
96  MLMULTI_FILE_VOLUME_EXPORT void getDCMTreeFromAnyFileType(const std::string &fileName,
97  bool postError,
98  DCMTree::Const_TreePtr &treePtr,
99  size_t &numVols,
100  DicomMessageCollector &dcmMsgCollector);
101 
102 };
103 
104 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLMULTI_FILE_VOLUME_EXPORT
Only for diagnostic purposes.
Class representing general ML objects that support import/export via strings (setPersistentState() an...
Definition: mlBase.h:62
Class to collect messages and errors related to a given frame handle.
Base class for an image processing module of the ML.
Definition: mlModule.h:156
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...
Definition: mlTypeDefs.h:578
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73
MLMULTI_FILE_VOLUME_EXPORT DCMTree::Const_TreePtr getInputDCMTree(Module &moduleWithInFields, const std::string &inputSourceName, const std::string &fileName, Base *basePtr, const MLint volIdx, size_t *numVolumes, bool allowEmptyFileNames, DicomMessageCollector &dcmMsgCollector)
Gets a DCMTree from an input which is selected via a string name.
MLMULTI_FILE_VOLUME_EXPORT void getDCMTreeFromAnyFileType(const std::string &fileName, bool postError, DCMTree::Const_TreePtr &treePtr, size_t &numVols, DicomMessageCollector &dcmMsgCollector)
Loads a Const_TreePtr from a file given by the absolute file path fileName if possible (currently ....