46class VolumeBuilderGeneric;
47class VolumeBuilderFromDICOMs;
52class DirectDicomImportDPLImporter;
53class DirectDicomImportImporterBase;
54class DirectDicomImportOtherImporter;
56class MultiFileVolumeListView;
91 const std::string &info,
101 friend class ::MLDirectDicomImportWrapper;
103 friend class ::VolumeBuilderGeneric;
104 friend class ::VolumeBuilderFromDICOMs;
165 void _populateFileList(
const std::string &srcDirPath,
166 const std::vector<std::string> &additionalFiles,
173 void _importLabeledFileList(
size_t fListIdx,
180 bool _importDirectoriesAndFiles(std::vector<std::string> srcDirPaths,
181 std::vector<std::string> singleAdditionalFiles,
191 size_t numVolumesBeforeDicomImports,
193 size_t& numDCMImports,
194 size_t& numNonDCMImports);
200 void _logPlannedImportFromFileList(
const std::vector<std::string>& srcDirPaths,
201 const std::vector<std::string>& singleAdditionalFiles,
202 const std::string& srcDirPath);
208 void _logImportFinishState(
bool interrupted,
209 size_t numDCMImports,
210 size_t numNonDCMImports);
219 bool _isCachingEnabledAndHasPath()
const;
226 bool _verifyAndOrCreateResultCacheDirectory()
const;
229 void _updateTreeCacheSizeInformation();
231 void _updateTagCacheSizeInformation();
236 void _logDICOMCacheInfos(
ProgressLogger &logger,
bool forceLog=
false);
248 bool _flushAndCheckDICOMTreeCacheOverflow(
ProgressLogger &logger);
263 void _appendDirectDicomImportFields();
266 void _updateInfoFields(
bool updateTagDump);
269 void _showCurrentIssue();
283 MultiFileVolumeListRefCountedPtr _outVolumes;
329 BoolField *_useFullUserSrcDirPathsCommentPrefixFld;
348 BoolField *_writeSingleVolumeCacheFilesFld;
360 IntField *_consoleSizeInKiloBytesFld;
378 BoolField *_clearSingleFrameCacheAfterImportFld;
417 IntField *_maxCachedMegaBytesTreeCacheFld;
420 IntField *_maxCachedMegaBytesTagCacheFld;
445 IntField *_totalSlicesMultTimePointsFld;
480 BoolField *_useInputFileListCommentPrefixFld;
Project global and OS specific declarations.
#define MLDIRECTDICOMIMPORT_EXPORT
Only for diagnostic purposes.
An instance of this class creates singleton proxies for DICOMCachedIO cache classes such that all cac...
This class wraps the MultiFileVolumeList of the output connector of ml::DirectDicomImport such that i...
Field to encapsulate a pointer to an ML base object.
Field to encapsulate a boolean value.
Class managing fields to show and handle a DICOM tree tag dump.
Class handling all DICOM Processor Library Import (DPL) stuff for the DirectDicomImport module.
Base importer class for the DirectDicomImport module.
Derived importer to import non DICOM files into DirectDicomImport.
Imports image files directly from DICOM or other file types without an intermediate representation.
void handleNotification(Field *field) override
Handle field changes of the field field.
bool isStopImportingPressed() const
Returns true if _stopImporting is pressed otherwise it returns false.
void updateProgressIndicator(const std::string &info, float state)
Update a progress indicator about the current import state.
void _resetMessageFlags()
Resets the error/warnings error state to no errors/warnings.
static bool isStopImportingPressedCB(void *ddiOpPtr)
Static callback version of isStopImportingPressed(), requires either nullptr as argument or a valid D...
~DirectDicomImport() override
Destructor.
virtual void calculateOutputImageProperties(int outIndex, PagedImage *outImg) override
Sets properties of the output image at output outIndex.
DirectDicomImport()
Constructor.
void activateAttachments() override
Update internal module state after load or clone and enable notification handling again.
void updateConsole(bool force=true)
Updates the _consoleFld.
void _writeResultCache()
Tries to clear and write the loaded volumes list into the result cache, logs errors on failures.
virtual DicomConfigurableMessageFilterBaseRefCountedPtr _getMessageCollector()
Convenience routine to returns a new instance of a message collector to be used for message handling;...
MultiFileVolumeList & getNonConstOutVolumes()
Provides non constant access to list of all imported output volumes.
virtual void calculateOutputSubImage(SubImage *outSubImg, int outIndex, SubImage *inSubImgs) override
Calculates page outSubImg of output image with index outIndex by using inSubimgs.
static void updateProgressIndicatorCB(void *userData, const std::string &info, float state)
Static callback version to update a progress indicator about the current import state.
const MultiFileVolumeList & getConstOutVolumes() const
Provides constant access to list of all imported output volumes.
Field to encapsulate a double value.
Base class for all fields used in the ML.
Field to encapsulate an integer value.
Base class for an image processing module of the ML.
The ML module class MultiFileVolumeListImageOutput for extending the number of image outputs of Multi...
Manages the volume list view and its contents for the DirectDicomImport module.
Class managing a list of MultiFileVolume instances for the DirectDicomImport module; taking ownership...
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
Field without value for notifications.
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
Field to encapsulate an increasing float value from range [0,1].
Configurable logger and progress handler class which can be used as base class for logging,...
Field to encapsulate a string value.
This class manages/represents a rectangular 6D image region that is organized linearly in memory.
Class to measure precise time intervals.
#define ML_MODULE_CLASS_HEADER(className)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
An instance of this class creates singleton proxies for DICOMCachedIO cache classes such that all cac...
Header file of ML module class DicomConfigurableMessageFilter usable as plugin for modules which prod...
Header file for the DicomTagDumpFieldAddOn which manages fields to show and handle a DICOM tree tag d...
A concrete module class for file and DCMTree filtering which can be used by FileList importers to fil...
The ML module class MultiFileVolumeListImageOutput for extending the number of image outputs of Multi...
Reference counted Base class encapsulating a list of MultiFileVolume instances.
boost::shared_ptr< const Tree > Const_TreePtr