45class DicomMessageCollector;
200 bool _allowNULLInputTree;
Project global and OS specific declarations.
#define MLDICOMOUTPUTS_EXPORT
DLL export macro definition.
Field to encapsulate a pointer to an ML base object.
Field to encapsulate a boolean value.
Class to collect messages and errors related to a given frame handle.
virtual void _updateInputState()
Checks the input state and updates status fields accordingly: it gets the validity of the expected in...
virtual void _createInputModifierConnector()
If called then an input Base field for a DicomModifyList object is installed, typically called in con...
IntField & getTagDumpSizeFld() const
virtual std::string _getInputImageConfiguration(int inputImageConnector, DCMTree::Const_TreePtr &originalInputImageTree, DCMTree::TreePtr &resultDcmTree, PagedImage *&inImg)
Returns some important parameters of the module's input image configuration:
virtual void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree)=0
Tries to copy all DICOM tag field information from a given DCMTree; dcmTree will be nullptr if not av...
NotifyField & getSaveField() const
DCMTree::TreePtr _getCurrentModifiableTree() const
Returns content of _currentModifiableTree after the recent call of _updateInputState().
PagedImage * _getCurrentInImg() const
Returns content of _currentInImg after the recent call of _updateInputState().
const BoolField & getCopyOtherInputTagsFld() const
Access to internal fields fields, see corresponding member documentation for details.
const StringField & getFileNameField() const
virtual std::string _applyInputModifiersIfAvailable(DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr)
If an InputModifierConnector is available and modifiers are connected then apply them to dcmTree,...
virtual void _updateTagDump(DCMTree::Const_TreePtr dcmTree)
Updates the _dicomTagDumpFieldAddOn according to the content of dcmTree; called automatically by _sav...
DicomTagDumpFieldAddOn _dicomTagDumpFieldAddOn
Field AddOns managing the DICOM tag dump as string field.
const NotifyField & getInheritDICOMTagsFld() const
void activateAttachments() override
Updates the internal module state after loading or cloning the module, and enables notification handl...
virtual void _save()
Saves the DICOM object in the file(s) defined by _fileNameFld.
bool & _getAllowNULLInputTree()
Provides access to _allowNULLInputTree.
static std::string checkXYZValues(const ImageVector &ext)
If Y and X are used as row and column, they can hold at most values of 65535, because these tags are ...
StringField & getTagDumpFld() const
TreeAndVolumeInputFieldAddOn _dcmTreeInputFieldAddOn
Field AddOn to manage selectors and input connectors for DCMTrees and MultiFileVolumes.
StringField & getStatusField() const
virtual std::string _checkConsistency() const =0
Checks for invalid parameters which could cause problems in file creation and return textual descript...
const BoolField & getPostBadParamErrorsField() const
virtual std::string _setUpTreeContent()=0
Allows the user to apply changes to the tree before it is saved; called after _updateInputState() and...
DicomSaveBase(int numInputs=1, int numOutputs=0)
Constructor, currently 0-3 input images are allowed to be set by derived modules.
static std::string checkMaximumPixelDataSize(const PagedImage &inImg)
Returns an empty string if the passed PagedImage describes an image whose pixel data would fit into a...
BoolField & getDumpPrivateTagValuesFld() const
virtual DCMTree::Const_TreePtr _getInputDCMTree(DicomMessageCollector &dcmMsgCollector)
Gets a DCMTree from the selected input or a nullptr tree if that is not available or empty.
void handleNotification(Field *field) override
Handles field changes of the field field.
DCMTree::Const_TreePtr _getCurrentOriginalInputTree() const
Returns content of the _currentOriginalInputTree after the recent call of _updateInputState().
Class managing fields to show and handle a DICOM tree tag dump.
Defines the class FieldContainer to encapsulate a vector of fields for (see class Field).
Base class for all fields used in the ML.
Field to encapsulate an integer value.
Base class for an image processing module of the ML.
Field without value for notifications.
Class which represents an image, which manages properties of an image and image data which is located...
Field to encapsulate a string value.
#define ML_MODULE_CLASS_HEADER(className)
Like ML_CLASS_HEADER for the usage of derived classes from Module.
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