40class DicomEnhancedSaveAddOnPointers;
52#if defined(_USE_ENHANCED_SAVE_COMMON_INSTANCE_REFERENCE)
59 DerivationImageAndFrameOfReference,
75 enum { NumSupportedIODs = 1 };
79 LegacyConvertedEnhancedMR = 0
83 static const char *
const SupportedIODsStrings[NumSupportedIODs];
133#if defined(_USE_ENHANCED_SAVE_COMMON_INSTANCE_REFERENCE)
Project global and OS specific declarations.
#define MLDICOMOUTPUTS_EXPORT
DLL export macro definition.
Field to encapsulate a boolean value.
_EnhancedFieldAddOnListType _fieldAddOnList
Container which handles all internally used DicomModifyFieldAddOns.
void activateAttachments() override
Updates the internal module state after loading or cloning the module, and enables notification handl...
std::string _setEnhancedIODTags(DCMTree::TreePtr resultTree, PagedImage &inputPagedImage, DCMTree::Const_TreePtr inputDcmTree)
Creates and sets all tags for a valid Enhanced Image IOD dicom tree from inputPagedImage into dcmTree...
EnumField * _supportedIODsFld
Selector for the IOD to export.
void handleNotification(Field *field) override
Handles field changes of the field field.
EnumField * _compressionFld
Selector for supported lossless compressions.
void _inheritFieldValuesFromDCMTree(DCMTree::Const_TreePtr dcmTree) override
Overloads base class field inheritance and adds the additional tags needed by this class.
BoolField * _strictChecksFld
If false then no advanced checks (for example for a matching Modality tag) is performed when exportin...
SupportedIODs
Enumerators for supported IODs.
std::string _checkConsistency() const override
Checks for invalid parameters and return a textual description of the error if there is any,...
virtual ~DicomEnhancedSave()
Destructor.
void _updateInputState() override
Overwrites base class and sets up additional stuff in commonInstanceReferenceModuleTags.
void _addAndSetEnhancedPixelDataTag(DCMTree::TreePtr resultTree, PagedImage &inputPagedImage)
This routine saves the image data.
std::string _setUpTreeContent() override
Sets the Enhanced DICOM tags in the tree; required that checkConsistency returns success.
DicomEnhancedSave()
Constructor.
ML_MODULE_CLASS_HEADER(DicomEnhancedSave)
Implements interface for the runtime type system of the ML.
void _setUpCompression(DCMTree::TreePtr resultTree)
Add tags configuring the compression scheme.
virtual void _handleCommonInstanceReferenceFieldChanges(Field *field)
Handles possible changes for CommonInstanceReference fields if compiled.
void _removeTags(DCMTree::TreePtr dcmTree, bool alsoSMFStuff)
Removes tags not needed or not permitted in the IOD; remove SMF tree sequence only if alsoSMFStuff is...
BoolField * _suppressUnassignedContentWriteFld
If true then no contents are written into Unassigned[PerFrame|Shared]ConvertedAttributesSequence in L...
Class managing a list of BASE_FIELD_ADD_ON_TYPE to simplify usage of multiple AddOns; AddOns are neve...
Field to encapsulate an enumerated value.
Base class for all fields used in the ML.
Class which represents an image, which manages properties of an image and image data which is located...
Header file of the DicomModifyFieldAddOnBase class dedicated to manage fields for ML modules and inst...
Header file of a class managing many DicomModifFieldAddOns to simplify usage of multiple AddOns.
Header file for the ML module base class DicomSaveBase.
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