MeVisLab Toolbox Reference
mlDicomModifyList.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
6
11//----------------------------------------------------------------------------------
12#pragma once
13
14#include "MLDicomModifySystem.h"
15#include "mlBase.h"
16#include "mlDicomModifyBase.h"
17
18ML_START_NAMESPACE
19
20// Forwards.
21class DicomModifyBase;
22
23//----------------------------------------------------------------------------------
27//----------------------------------------------------------------------------------
29public:
33
35 ~DicomModifyList() override;
36
41 void addModifier(DicomModifyBase* modifier, bool atEnd=true);
42
44 void clear();
45
54 virtual std::string applyModifications(DCMTree::TreePtr dcmTree,
55 const FieldContainer *treeInfos=nullptr);
56
61 inline std::vector<DicomModifyBase*> &getModifierList(){ return _modifiers; }
62
64 inline const std::vector<DicomModifyBase*> &getModifierList() const { return _modifiers; }
65
68 void setInputPlugin(DicomModifyList *inputPlugin=nullptr){ _inputPlugin = inputPlugin; }
69
71 DicomModifyList *getInputPlugin() const { return _inputPlugin; }
72
73private:
76
78 DicomModifyList &operator=(const DicomModifyList&);
79
82 DicomModifyList *_inputPlugin;
83
85 std::vector<DicomModifyBase*> _modifiers;
86
89};
90
91ML_END_NAMESPACE
Project global and OS specific declarations.
#define ML_DICOM_MODIFY_EXPORT
DLL export macro definition.
Base()
Constructor.
const std::vector< DicomModifyBase * > & getModifierList() const
Same as getModifierList() only for constant access.
void clear()
Makes modifier array empty and deletes all of them.
DicomModifyList * getInputPlugin() const
Returns the optional plugin to be called by applyModififcations.
~DicomModifyList() override
Destructor also destroying all of its stored Modifiers.
void setInputPlugin(DicomModifyList *inputPlugin=nullptr)
void addModifier(DicomModifyBase *modifier, bool atEnd=true)
std::vector< DicomModifyBase * > & getModifierList()
virtual std::string applyModifications(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr)
#define ML_CLASS_HEADER(className)
boost::shared_ptr< Tree > TreePtr
Shared pointer to a DCMTree::Tree.
Definition DCMTree_Lib.h:66