MeVisLab Toolbox Reference
mlDicomModifyTree.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
14 #include "MLDicomModifySystem.h"
15 
16 // ML basics.
17 #include <mlModuleIncludes.h>
18 #include <mlAlgorithmModule.h>
19 // Reference-counted DCMTree.
20 #include <mlMutableDicomTree.h>
21 
22 ML_START_NAMESPACE
23 
24 //----------------------------------------------------------------------------------
26 //----------------------------------------------------------------------------------
28 {
29 public:
30 
32 
33 protected:
35  void validateInput() override;
36 
38  void update() override;
39 
41  void clear() override;
42 
45 
46 private:
47 
49  BaseField *_inputDicomModifierFld;
50 
52  BaseField *_inputDicomTreeFld;
53 
55  BaseField *_outputDicomTreeFld;
56 
58  MutableDicomTreePtr _filteredInputDCMTreeCopy;
59 
62 };
63 
64 ML_END_NAMESPACE
Project global and OS specific declarations.
#define ML_DICOM_MODIFY_EXPORT
DLL export macro definition.
ML-Module base class to simplify development of modules encapsulating an algorithm with dedicated inp...
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
ML module class DicomModifyTree for modifying DICOM trees.
void update() override
Set output field to a valid and modifies tree if possible.
void clear() override
Resets output field to nullptr.
void _updateFilteredTree()
Tries to get a DCMTree from the selected input, copy, filter and pass it to the output.
void validateInput() override
Clears and throws if input connection is invalid; otherwise do nothing.
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.