MeVisLab Toolbox Reference
mlRTObjectToDicomTree.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
12 //----------------------------------------------------------------------------------
13 
14 
15 #ifndef __mlRTObjectToDicomTree_H
16 #define __mlRTObjectToDicomTree_H
17 
18 // Local includes
20 
21 // MLDcmtkBaseObjects includes
22 
23 #include <mlMutableDicomTree.h>
24 
25 // MLDcmtkMLConverters includes
26 
27 #include <mlDRTDoseIODBase.h>
28 #include <mlDRTImageIODBase.h>
30 #include <mlDRTIonPlanIODBase.h>
31 #include <mlDRTPlanIODBase.h>
34 
35 // ML includes
36 #include <mlModuleIncludes.h>
37 
38 
39 ML_START_NAMESPACE
40 
43 {
44 public:
45 
48 
50  ~RTObjectToDicomTree () override {};
51 
53  void handleNotification (Field *field) override;
54 
56  virtual void activateAttachments();
57 
58 private:
59 
61  NotifyField* _updateFld;
63  BoolField* _autoApplyFld;
65  BaseField* _rtObjectFld;
67  BaseField* _dicomTreeRefCountedOutputFld;
68 
70  BoolField* _isBaseInputValidFld;
72  BoolField* _isBaseOutputValidFld;
74  StringField* _statusFld;
75 
77  RTBase* _rtBaseObject;
78  DCMTree::TreePtr _dicomTree;
79 
80 
81 protected:
82 
83  void _update();
87 };
88 
89 
90 ML_END_NAMESPACE
91 
92 #endif // __mlRTStructToML_H
93 
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
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
Module that converts a RT Object Base to a DicomTree which can be used with other DicomModify modules...
virtual void activateAttachments()
Reset field values after module (re)load or clone.
RTObjectToDicomTree()
Constructor.
void handleNotification(Field *field) override
Handle field changes of the field field.
~RTObjectToDicomTree() override
Destructor.
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.
Base object class for passing DRTDoseIOD objects between MeVisLab modules.
Base object class for passing DRTImageIOD objects between MeVisLab modules.
Base object class for passing DRTIonBeamsTreatmentRecordIOD objects between MeVisLab modules.
Base object class for passing DRTIonPlanIOD objects between MeVisLab modules.
Base object class for passing DRTPlanIOD objects between MeVisLab modules.
Base object class for passing DRTStructureSetIOD objects between MeVisLab modules.
Base object class for passing DRTTreatmentSummaryRecordIOD objects between MeVisLab modules.
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70