|
MeVisLab Toolbox Reference
|
Manages the module field interface according to DICOM General Series, C.7.3.1. More...
#include <mlDicomGeneralSeriesModuleTagInterface.h>
Public Member Functions | |
| DicomGeneralSeriesModuleTagInterface (Module &modRef, bool useEnhancedSeriesNumber=false, const std::string &modality="", bool forceSeriesInstanceUIDAsType1=false) | |
| void | addFields () override |
| Add fields to field container of module. | |
| void | inheritValues (DCMTree::Const_TreePtr dcmTree) override |
| Implements the copy of tag values from the given dcmTree to the fields. | |
| std::string | applyModifications (DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override |
| See DicomModifyFieldAddOnBase::applyModifications() for documentation. | |
| FieldAddOnBase::FieldChangeState | handleFieldChanges (Field *field) override |
| Handle field notifications. | |
| std::string | checkConsistency () const override |
| Checks for invalid parameters; return textual description on error, or empty string on success. | |
| Public Member Functions inherited from ml::DicomModifyFieldAddOnBase | |
| DicomModifyFieldAddOnBase (FieldContainer &fieldContainerRef, size_t numInstances=1, bool createInputModifyTagsPluginBaseConnectorField=false, bool createOutputModifyTagsPluginBaseConnectorField=false) | |
| ~DicomModifyFieldAddOnBase () override | |
| Destructor resetting connector fields if they exist. | |
| size_t | getNumInstances () const |
| Returns the number of instances to be created by derived fields. | |
| std::string | applyModifications (DCMTree::TreePtr dcmTree, const FieldContainer *treeInfos=nullptr) override |
| void | addFields () override |
| Add fields to field container of the FieldAddOn. | |
| void | handleFieldActivationChanges () override |
| Handle class changes according to Module::activateAttachments. | |
| FieldAddOnBase::FieldChangeState | handleFieldChanges (Field *field) override |
| Handle field notifications according to Module::handleNotification with a return of field change state. | |
| BaseField * | getOutputModifierListFld () const |
| Provide access to output base field if it was created. | |
| BaseField * | getInputModifierListFld () const |
| Provide access to input base connector field if it was created. | |
| Public Member Functions inherited from ml::DicomModifyList | |
| DicomModifyList () | |
| ~DicomModifyList () override | |
| Destructor also destroying all of its stored Modifiers. | |
| void | addModifier (DicomModifyBase *modifier, bool atEnd=true) |
| void | clear () |
| Makes modifier array empty and deletes all of them. | |
| std::vector< DicomModifyBase * > & | getModifierList () |
| const std::vector< DicomModifyBase * > & | getModifierList () const |
| Same as getModifierList() only for constant access. | |
| void | setInputPlugin (DicomModifyList *inputPlugin=nullptr) |
| DicomModifyList * | getInputPlugin () const |
| Returns the optional plugin to be called by applyModififcations. | |
| Public Member Functions inherited from ml::Base | |
| Base () | |
| Constructor. | |
| virtual | ~Base () |
| Destructor. | |
| virtual Base * | deepCopy () const |
| bool | isOfAllowedType (const std::vector< const RuntimeType * > &types) const |
| virtual bool | isRefCountedBase () const |
| Returns whether the instance is derived from RefCountedBase. | |
| virtual std::string | detailString () const |
| virtual bool | implementsPersistence (PersistenceInterface) const |
| virtual std::string | persistentState () const |
| Returns a string describing the object's internal state. | |
| virtual void | setPersistentState (const std::string &state) |
| virtual void | addStateToTree (TreeNode *) const |
| Attaches the object state as children of the given parent node. | |
| virtual void | readStateFromTree (TreeNode *) |
| Reads the object state from the children of the given parent node. | |
| virtual void | writeTo (AbstractPersistenceOutputStream *) const |
| virtual void | readFrom (AbstractPersistenceInputStream *, int) |
| Public Member Functions inherited from ml::FieldAddOnBase | |
| FieldAddOnBase (FieldContainer &fieldContainerRef) | |
| Constructor, setting the reference of the FieldContainer managing the fields. | |
| virtual | ~FieldAddOnBase () |
| Destructor. | |
| FieldContainer & | getFieldContainer () |
| Returns the referenced container. | |
| const FieldContainer & | getFieldContainer () const |
| Returns the referenced container. | |
| std::vector< Field * > & | getFields () |
| Return modification access to the list of managed fields, use at own risk! | |
| const std::vector< Field * > & | getFields () const |
| Return constant access to the list of managed fields! | |
| virtual FieldChangeState | getMergedFieldChangeState (FieldChangeState state1, FieldChangeState state2) const |
| Returns a FieldChangeState which best represents a merge of the two given states. | |
| virtual bool | hasField (Field *field) const |
| Returns true if the passed fieldPtr is in _fieldPointers, otherwise false. | |
Public Attributes | |
| DicomValueInheritAndCreateTagInterface | _seriesInstanceUIDAddOn |
| Fields. | |
| StringField * | _seriesNumberFld |
| Content of the corresponding DICOM tag definition. | |
| BoolField * | _inheritSeriesNumberFld |
| If true then the seriesNumber field is overwritten with inherited states, otherwise not. | |
| EnumField * | _lateralityFld |
| Laterality tag (0020,0060), type 2C. | |
| BoolField * | _useEmptyLateralityTagIfNotFoundOnInheritanceFld |
| EnumField * | _lateralityChecksFld |
| StringField * | _seriesDescriptionFld |
| Describes the series for which this DICOM file is created. | |
| DicomCopyTagSetInterface | _otherGeneralSeriesTags |
| All other General Series tags not available in the interface, allow public access. | |
Static Public Attributes | |
| static const char *const | LateralityStringValues [NumLateralityEnumerators] |
| String representations for the _lateralityFld enum. | |
| static const char *const | LateralityChecksStringValues [NumLateralityChecksEnumerators] |
| String representations for the LateralityChecksValues enum. | |
| static const char *const | BodyPartExaminedStringValues [NumBodyPartExaminedValues] |
| String representations for the _bodyPartExaminedValuesFld. | |
| static const char *const | UnpairedBodyPartExaminedStringValues [NumUnpairedBodyPartExaminedValues] |
| String representations for the _unpairedBodyPartExaminedValuesFld. | |
Protected Attributes | |
| BoolField * | _writeBodyPartExaminedFld |
| Enables/disabled whether bodyPartExamined shall be written or not. | |
| StringField * | _bodyPartExaminedFld |
| Value of possibly inherited BodyPartExamined tag. | |
| StringField * | _bodyPartExaminedValuesFld |
| Available values for _bodyPartExaminedFld. | |
| const bool | _useEnhancedSeriesNumber |
| If true then Series Number will be checked to be non-empty. | |
| const std::string | _modality |
| If not empty then the content will be set as Modality tag, otherwise ignored. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from ml::DicomModifyFieldAddOnBase | |
| static bool | isIn (const std::string &str, const char *const *values, size_t numValues) |
| Static helper function which checks whether str is part of the given list of values which has numValues entries. | |
| Protected Member Functions inherited from ml::FieldAddOnBase | |
| void | _addFieldPointer (Field *field) |
Manages the module field interface according to DICOM General Series, C.7.3.1.
Definition at line 23 of file mlDicomGeneralSeriesModuleTagInterface.h.
| anonymous enum |
Number of available laterality enumerators.
| Enumerator | |
|---|---|
| NumLateralityEnumerators | |
Definition at line 79 of file mlDicomGeneralSeriesModuleTagInterface.h.
| anonymous enum |
Number of available BodyPartExaminedValues.
| Enumerator | |
|---|---|
| NumBodyPartExaminedValues | |
Definition at line 136 of file mlDicomGeneralSeriesModuleTagInterface.h.
| anonymous enum |
Number of available UnpairedBodyPartExaminedValues.
| Enumerator | |
|---|---|
| NumUnpairedBodyPartExaminedValues | |
Definition at line 142 of file mlDicomGeneralSeriesModuleTagInterface.h.
| anonymous enum |
Number of available laterality checks enumerators.
| Enumerator | |
|---|---|
| NumLateralityChecksEnumerators | |
Definition at line 100 of file mlDicomGeneralSeriesModuleTagInterface.h.
Available values for BodyPartExaminedValues.
Definition at line 114 of file mlDicomGeneralSeriesModuleTagInterface.h.
Enumerator for modes of laterality checks tag.
| Enumerator | |
|---|---|
| AsError | Handle a possible problem as error. |
| AsWarning | Log a possible problem as console warning. |
| Ignore | Ignore any possible problem. |
Definition at line 93 of file mlDicomGeneralSeriesModuleTagInterface.h.
Enumerator for the laterality tag.
| Enumerator | |
|---|---|
| DoNotWriteLateralityTag | Do not write the tag at all. |
| WriteEmptyLateralityTag | Write the tag with empty value. |
| Left | Write the tag with value "L". |
| Right | Write the tag with value "R". |
Definition at line 71 of file mlDicomGeneralSeriesModuleTagInterface.h.
| ml::DicomGeneralSeriesModuleTagInterface::DicomGeneralSeriesModuleTagInterface | ( | Module & | modRef, |
| bool | useEnhancedSeriesNumber = false, | ||
| const std::string & | modality = "", | ||
| bool | forceSeriesInstanceUIDAsType1 = false ) |
Constructor, setting the reference of the module for which the fields shall be managed.
| modRef | The reference to the ML Module instance in which this FieldAdddOn will be inserted. |
| useEnhancedSeriesNumber | If true then the series number content will be handled as Type 1, if false it will be handled as Type 2. |
| modality | Ignored if empty; if not empty then the Modality tag is added with the given string as value. |
| forceSeriesInstanceUIDAsType1 | If true then SeriesInstanceUID is handled as Type 1 (mandatory and not empty) tag, otherwise it is allowed to be empty (only for backward compatibility and not recommended). |
|
overridevirtual |
Add fields to field container of module.
Implements ml::FieldAddOnBase.
|
overridevirtual |
See DicomModifyFieldAddOnBase::applyModifications() for documentation.
Reimplemented from ml::DicomModifyList.
|
overridevirtual |
Checks for invalid parameters; return textual description on error, or empty string on success.
Reimplemented from ml::DicomModifyFieldAddOnBase.
|
overridevirtual |
Handle field notifications.
Reimplemented from ml::FieldAddOnBase.
|
overridevirtual |
Implements the copy of tag values from the given dcmTree to the fields.
Reimplemented from ml::DicomModifyFieldAddOnBase.
|
protected |
Value of possibly inherited BodyPartExamined tag.
Definition at line 152 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
protected |
Available values for _bodyPartExaminedFld.
Definition at line 155 of file mlDicomGeneralSeriesModuleTagInterface.h.
| BoolField* ml::DicomGeneralSeriesModuleTagInterface::_inheritSeriesNumberFld |
If true then the seriesNumber field is overwritten with inherited states, otherwise not.
Definition at line 68 of file mlDicomGeneralSeriesModuleTagInterface.h.
| EnumField* ml::DicomGeneralSeriesModuleTagInterface::_lateralityChecksFld |
Checking for valid combinations of Laterality and BodyPartExamined values is difficult and still incomplete, and there are still unclear circumstances how to do that correctly in all cases.
Definition at line 108 of file mlDicomGeneralSeriesModuleTagInterface.h.
| EnumField* ml::DicomGeneralSeriesModuleTagInterface::_lateralityFld |
Laterality tag (0020,0060), type 2C.
Definition at line 85 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
protected |
If not empty then the content will be set as Modality tag, otherwise ignored.
Definition at line 161 of file mlDicomGeneralSeriesModuleTagInterface.h.
| DicomCopyTagSetInterface ml::DicomGeneralSeriesModuleTagInterface::_otherGeneralSeriesTags |
All other General Series tags not available in the interface, allow public access.
Definition at line 165 of file mlDicomGeneralSeriesModuleTagInterface.h.
| StringField* ml::DicomGeneralSeriesModuleTagInterface::_seriesDescriptionFld |
Describes the series for which this DICOM file is created.
Definition at line 111 of file mlDicomGeneralSeriesModuleTagInterface.h.
| DicomValueInheritAndCreateTagInterface ml::DicomGeneralSeriesModuleTagInterface::_seriesInstanceUIDAddOn |
Fields.
FieldAddOn managing field value, create mode, inherit modes, create button etc. for the SeriesInstanceUID.
Definition at line 63 of file mlDicomGeneralSeriesModuleTagInterface.h.
| StringField* ml::DicomGeneralSeriesModuleTagInterface::_seriesNumberFld |
Content of the corresponding DICOM tag definition.
Definition at line 66 of file mlDicomGeneralSeriesModuleTagInterface.h.
| BoolField* ml::DicomGeneralSeriesModuleTagInterface::_useEmptyLateralityTagIfNotFoundOnInheritanceFld |
If true then WriteEmptyLateralityTag is selected on inheritance even if no one laterality tag was found in the input; otherwise DoNotWriteLateralityTag is selected.
Definition at line 90 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
protected |
If true then Series Number will be checked to be non-empty.
Definition at line 158 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
protected |
Enables/disabled whether bodyPartExamined shall be written or not.
Definition at line 149 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
static |
String representations for the _bodyPartExaminedValuesFld.
Definition at line 139 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
static |
String representations for the LateralityChecksValues enum.
Definition at line 103 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
static |
String representations for the _lateralityFld enum.
Definition at line 82 of file mlDicomGeneralSeriesModuleTagInterface.h.
|
static |
String representations for the _unpairedBodyPartExaminedValuesFld.
Definition at line 145 of file mlDicomGeneralSeriesModuleTagInterface.h.