90 enum InputSourceSelector {
101 enum { NumInputSourceSelectors = DicomTreeInput+1 };
104 static const char *
const InputSourceSelectorStrings[NumInputSourceSelectors];
107 enum { NumImageDataSourceSelectors = ImageInput1+1 };
112 enum PixelDataChangeModes {
113 DoNotChangePixelData = 0,
119 enum { NumPixelDataChangeModes = SetPixelData+1 };
122 static const char *
const PixelDataChangeModeStrings[NumPixelDataChangeModes];
126 TreeAndVolumeInputFieldAddOn _dcmTreeInputFieldAddOn;
129 DicomTagDumpFieldAddOn _dicomTagDumpFieldAddOn;
134 EnumField *_imageDataSourceSelectorFld;
137 BaseField *_inputDicomModifierFld;
140 EnumField *_removePixelDataFld;
143 BaseField *_outputDicomTreeFld;
152 bool _treeIsModified;
Project global and OS specific declarations.
#define ML_DICOM_MODIFY_EXPORT
DLL export macro definition.
Class to collect messages and errors related to a given frame handle.
ML module class DicomModifyTreeAndImage for composing and decomposing MLImages with DICOM trees as we...
DicomModifyTreeAndImage()
Constructor: Input 1: Original input image bypassed to first output.
void calculateOutputImageProperties(int outIndex, PagedImage *outImg) override
Sets properties of the output image at output outIndex.
void handleNotification(Field *field) override
Handles field changes.
Module::INPUT_HANDLE handleInput(int, INPUT_STATE) const override
Sets the second input as optional.
void _appendPixelDataToDCMTree(DCMTree::TreePtr dcmTree, bool skipIfNoImageData, DicomMessageCollector &dcmMsgCollector)
Append the pixel data of a selected input image connector to the pixel data and return an empty strin...
void _updateOutputInformationFields()
Updates information output fields.
void _updateInputDCMTree()
Gets a DCMTree from the selected input or a nullptr tree if that is not available or empty.
void activateAttachments() override
Handles changes which were applied without notifications.
Base class for all fields used in the ML.
Base class for an image processing module of the ML.
INPUT_HANDLE
See documentation of handleInput.
INPUT_STATE
See documentation of handleInput.
Class which represents an image, which manages properties of an image and image data which is located...
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
Header file of a class which manages a list of DicomModifyBase objects and an input which allows the ...
Header file for the DicomTagDumpFieldAddOn which manages fields to show and handle a DICOM tree tag d...
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
boost::shared_ptr< const Tree > Const_TreePtr
boost::shared_ptr< Tree > TreePtr
shared pointer to a DCMTree::Tree