MeVisLab Toolbox Reference
mlDirectDicomImportImporterBase.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 
13 // Local includes
15 
16 // Progress and log handler from ReleaseTools.
17 #include <mlProgressLogger.h>
18 
19 // ML includes
20 #include <mlTypeDefs.h>
21 #include <ThirdPartyWarningsDisable.h>
22 #include <string>
23 #include <ThirdPartyWarningsRestore.h>
24 
25 // Message Base class.
27 
28 // Forward to internally used classes.
29 class imageData;
30 
31 ML_START_NAMESPACE
32 
33 // Forward to internally used classes.
34 class DirectDicomImport;
35 class MultiFileVolumeList;
36 class FileListFilterPluginBase;
37 namespace FileListTools {
38  class FileList;
39 }
40 
41 //----------------------------------------------------------------------------------
43 //----------------------------------------------------------------------------------
45 
46  public:
47 
50 
53 
57  virtual void appendFields(FieldContainer & /*fieldContainer*/){ };
58 
60  virtual void handleNotification(Field &/*field*/){ };
61 
64  virtual void import(const FileListTools::FileList &fileList) = 0;
65 
68  void updateProgressIndicator(const std::string &info,
69  float percState) override;
70 
74  void _updateConsole(bool fullUpdate=true) override;
75 
77  virtual DicomConfigurableMessageFilterBaseRefCountedPtr getMessageCollector() const;
78 
79  protected:
83 
84  private:
85 
88  DirectDicomImport &_ddiOp;
89 
95 };
96 
97 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDIRECTDICOMIMPORT_EXPORT
Only for diagnostic purposes.
Base importer class for the DirectDicomImport module.
virtual DicomConfigurableMessageFilterBaseRefCountedPtr getMessageCollector() const
Privides access to the message collector of the internally referenced DDI instance.
virtual MultiFileVolumeList & _getOutVolumeList()
Modifiable list of DirectDicomImportVolumeReferences to which new volumes are going to be appended du...
~DirectDicomImportImporterBase() override
Destructor.
virtual void handleNotification(Field &)
Handles all field changes related to fields created in appendFields().
DirectDicomImportImporterBase(DirectDicomImport &ddiOp)
Constructor using a DirectDicomImport instance associated with.
virtual void appendFields(FieldContainer &)
Appends all parameter fields related to the import class to fieldContainer.
void updateProgressIndicator(const std::string &info, float percState) override
Update a progress indicator which shows the message info and the percentage percState.
void _updateConsole(bool fullUpdate=true) override
Updates the output console if there is any.
Imports image files directly from DICOM or other file types without an intermediate representation.
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Base class for all fields used in the ML.
Definition: mlField.h:73
A tool class to manage a list of file/frame names/urls associated with attributes.
Class managing a list of MultiFileVolume instances for the DirectDicomImport module; taking ownership...
Configurable logger and progress handler class which can be used as base class for logging,...
Header file of ML module class DicomConfigurableMessageFilter usable as plugin for modules which prod...
Configurable logger and progress handler class which can be used as base class for logging,...
Namespace containing a number of tools and classes to scan directories for files, assign attributes t...