MeVisLab Toolbox Reference
mlDicomTreeToRTObject.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
12 //----------------------------------------------------------------------------------
13 #ifndef __mlDicomTreeToRTObject_H
14 #define __mlDicomTreeToRTObject_H
15 
17 
18 #include <mlModuleIncludes.h>
19 #include <DCMTree_Lib.h>
20 
21 ML_START_NAMESPACE
22 
23 class RTBase;
24 
27 {
28 public:
29 
32 
34  virtual ~DicomTreeToRTObject () override{};
35 
37  virtual void handleNotification (Field *field) override;
38 
40  virtual void activateAttachments() override;
41 
42 private:
43 
45  NotifyField* _updateFld;
47  BoolField* _autoApplyFld;
49  BaseField* _rtObjectOutputFld;
51  BaseField* _dicomTreeRefCountedInputFld;
52 
54  BoolField* _isBaseInputValidFld;
56  BoolField* _isBaseOutputValidFld;
58  StringField* _statusFld;
59 
61  RTBase* _rtBaseObject;
62  DCMTree::TreePtr _dicomTree;
63 
64 
65 protected:
66 
67  void _update();
72 };
73 
74 
75 ML_END_NAMESPACE
76 
77 #endif // __mlRTStructToML_H
78 
Project global and OS specific declarations.
#define MLDCMTKMLCONVERTERMODULES_EXPORT
Field to encapsulate a pointer to an ML base object.
Definition: mlFields.h:1187
Field to encapsulate a boolean value.
Definition: mlFields.h:62
Module that converts a RT Object Base to a DicomTree which can be used with other DicomModify modules...
virtual void activateAttachments() override
Reset field values after module (re)load or clone.
virtual ~DicomTreeToRTObject() override
Destructor.
virtual void handleNotification(Field *field) override
Handle field changes of the field field.
DicomTreeToRTObject()
Constructor.
bool _createRTObjectOutputBaseObject()
Base class for all fields used in the ML.
Definition: mlField.h:73
Base class for an image processing module of the ML.
Definition: mlModule.h:156
Field without value for notifications.
Definition: mlFields.h:1049
DcmtkBase derived base object class for base objects that wrap RT related objects.
Definition: mlRTBase.h:34
Field to encapsulate a string value.
Definition: mlFields.h:1000
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70