MeVisLab Toolbox Reference
mlDicomSCSave.h
Go to the documentation of this file.
1 // Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2 // **InsertLicense** code
3 //----------------------------------------------------------------------------------
5 
31 //----------------------------------------------------------------------------------
32 #pragma once
33 
34 // Local includes
35 #include "MLDicomOutputsSystem.h"
36 
37 // ML includes
38 #include <mlModuleIncludes.h>
39 #include <mlDicomSaveBase.h>
40 
41 // Tag/Field manager.
51 
52 // DICOM tree etc.
53 #include <DCMTree_Tree.h>
54 
55 ML_START_NAMESPACE
56 
57 //----------------------------------------------------------------------------------
58 // See above.
59 //----------------------------------------------------------------------------------
61 {
62 public:
63 
66 
67 protected:
68 
70  void handleNotification(Field *field) override;
71 
74  void activateAttachments() override;
75 
78  std::string _checkConsistency() const override;
79 
83  virtual std::string _checkInputImageProperties(const PagedImage *inImg) const;
84 
87 
89  virtual void _removeUndesiredInputTags(DCMTree::TreePtr resultTree) const;
90 
93  std::string _setUpTreeContent() override;
94 
96  void _save() override;
97 
100 
103 
106 
109 
112 
116 
119 
122 
128 
131 
134 };
135 
136 ML_END_NAMESPACE
Project global and OS specific declarations.
#define MLDICOMOUTPUTS_EXPORT
DLL export macro definition.
Field to encapsulate a boolean value.
Definition: mlFields.h:62
Manages the module field interface according to DICOM General Equipment, C.7.5.1.
Manages the module field interface according to DICOM General Image, C.7.6.1.
Manages the module field interface according to DICOM General Series, C.7.3.1.
Manages the module field interface according to DICOM General Study, C.7.1.3.
Manages the module field interface according to DICOM Image Plane Module, C.7.6.2.
Manages the module field interface according to DICOM Patient Module, C.7.1.1.
Manages the module field interface according to DICOM SC Equipment Module, C.8.8.1.
Manages the module field interface according to DICOM SC-Multi-frame Image, C.8.6....
std::string _checkConsistency() const override
Checks for invalid parameters and return a textual description of the error if there is any,...
DicomImagePlaneModuleTagInterface _imagePlaneModule
DICOM Image Plane Module, C.7.6.2.
DicomSOPCommonModuleTagInterface _sopCommonModule
Explicitly added SOP Common Module, C.12.1.
DicomSCEquipmentModuleTagInterface _scEquipmentModule
SC Equipment module, C.8.8.1.
ML_MODULE_CLASS_HEADER(DicomSCSave)
Implements interface for the runtime type system of the ML.
void handleNotification(Field *field) override
Handles field changes of the field field.
void activateAttachments() override
Updates the internal module state after loading or cloning the module, and enables notification handl...
BoolField * _addImagePlaneModuleFld
Image Plane Module Attributes, C.7.6.2.
DicomGeneralSeriesModuleTagInterface _generalSeriesModule
General Series, C.7.3.1.
DicomPatientModuleTagInterface _patientModule
Field interface for Patient Module, C.7.1.1.
Definition: mlDicomSCSave.h:99
void _save() override
Overwrite inherited function to extent it with additional error handling.
DicomGeneralImageModuleTagInterface _generalImageModule
General Image, C.7.6.1.
virtual void _removeUndesiredInputTags(DCMTree::TreePtr resultTree) const
Remove tags from tree which could disturb the correct interpretation of the written DICOM file.
DicomSCMultiframeImageModuleTagInterface _scMultiframeImageModule
SC-Multiframe Image, C.8.6.3 Image Pixel module C.7.6.3 SOP Common Module, C.12.1 - not added by defa...
std::string _setUpTreeContent() override
Set the SC DICOM tags in the tree.
virtual std::string _checkInputImageProperties(const PagedImage *inImg) const
Checks whether the passed image is a configuration which can be saved as a secondary capture.
DicomGeneralStudyModuleTagInterface _generalStudyModule
General Study, C.7.1.3.
DicomSCSave()
Constructor.
void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree) override
Overloads base class field inheritance and adds the additional tags needed by this class.
DicomGeneralEquipmentModuleTagInterface _generalEquipmentModule
General Equipment, C.7.5.1.
Manages the module field interface according to SOP Common Module shown in DICOM Table 12-1.
Base class for all fields used in the ML.
Definition: mlField.h:73
Class which represents an image, which manages properties of an image and image data which is located...
Definition: mlPagedImage.h:70
Header file for the ML module base class DicomGeneralEquipmentModuleTagInterface.
Header file for the ML module base class DicomGeneralImageModuleTagInterface.
Header file for the ML module base class DicomGeneralSeriesModuleTagInterface.
Header file for the ML module base class DicomGeneralStudyModuleTagInterface.
Header file for the ML module base class DicomImagePlaneModuleTagInterface.
Header file for the ML module base class DicomPatientModuleTagInterface.
Header file for the ML module base class DicomSCEquipmentModuleTagInterface.
Header file for the ML module base class DicomSCMultiframeImageModuleTagInterface.
Header file for the tag interface for the SOP Common Module shown as in DICOM Table 12-1.
Header file for the ML module base class DicomSaveBase.
boost::shared_ptr< const Tree > Const_TreePtr
Definition: DCMTree_Lib.h:73
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree
Definition: DCMTree_Lib.h:70