MeVisLab Toolbox Reference
Loading...
Searching...
No Matches
mlFileListToolsFileAttribute.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
17
18// ML includes
19#include <mlTypeDefs.h>
20#include <FMEThirdPartyWarningsDisable.h>
21#include <string>
22#include <FMEThirdPartyWarningsRestore.h>
23#include <mlErrorMacros.h>
25
26// DCMTree prototypes.
27#include <DCMTree_Lib.h>
28
30
31// Forwards
32class DicomMessageCollector;
33
34namespace FileListTools {
35
36//-------------------------------------------------------------------------------
39//-------------------------------------------------------------------------------
41 public:
42
55 bool passObject = true,
56 std::string volLabel = "",
57 std::string importCfg = "",
58 std::string procSettings = "",
60 filePath (absoluteFilePath),
61 pass (passObject),
62 volumeLabel (volLabel),
63 importConfig (importCfg),
64 processingSettings(procSettings),
65 fileTypeMask (fileTypeMaskArg),
66 otherFile (),
67 isDCMFilePairPart (false),
68 isTiffFilePairPart(false),
69 isDecomposed (false)
70 {
71 }
72
75 IsValidFile = 1,
76 IsOther = 2,
77 IsDCMTiffPair = 4,
78 IsValidDCMFrame = 8,
79 IsUnknownOrInvalidFileType = 16,
80 IsMLImage = 32,
81
82 AllFileTypeBits = 63
83 };
84
85
88
104 bool alsoGetFromMLImage=false,
105 bool alsoGetFromDCMTIFF=false,
106 bool tryDCMLoad=false,
108
109 bool pass;
111
112 std::string volumeLabel;
115
116 std::string importConfig;
120
128
130
131 std::string otherFile;
133
136
139};
140
141}; // end namespace FileListTools.
142
145
146
Project global and OS specific declarations.
Class to collect messages and errors related to a given frame handle.
Attributes assigned to files in a FileList according to filter operations on the file names or DICOM ...
bool isDCMFilePairPart
True if this file is the DICOM file of a DCM/Tiff file pair.
MLuint32 fileTypeMask
Bit combination of FileTypeFlags describing the type of file.
std::string importConfig
If non empty then volumes with identical volumeLabel importConfig, and processingSettings will be han...
std::string processingSettings
If non empty then volumes with identical volumeLabel, importConfig, and processingSettings will be ha...
bool isTiffFilePairPart
True if this file is the Tiff file of a DCM/Tiff file pair.
std::string otherFile
If a file pair calculation was done then this stores the other part of the file pair,...
FileTypeFlags
Flag bits describing file types.
bool isDecomposed
True if this file is only a decomposed part or frame of a larger file or tree, typically a single DIC...
std::string volumeLabel
Normally "" but can be set to a label stored in the created MultiFileVolume.
DICOMCachedIOFileHandle filePath
Absolute file name of the file and/or DCMTree, usually only set by creator.
DCMTree::Const_TreePtr getDcmTree(DicomMessageCollector &dcmMsgCollector, bool alsoGetFromMLImage=false, bool alsoGetFromDCMTIFF=false, bool tryDCMLoad=false, bool skipDICOMErrorMessagesFromNonDICOMFiles=false) const
Gets the (cached) tree related to the file name (or loads it if necessary).
FileAttribute(const DICOMCachedIOFileHandle &absoluteFilePath=DICOMCachedIOFileHandle(), bool passObject=true, std::string volLabel="", std::string importCfg="", std::string procSettings="", MLuint32 fileTypeMaskArg=0)
Constructor to initialize all members with default or with user defined values.
bool pass
If set to true (the default) then the object will be used and passed to the importer,...
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.
unsigned int MLuint32
Definition mlTypeDefs.h:185
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:68
Namespace containing a number of tools and classes to scan directories for files, assign attributes t...