MeVisLab Toolbox Reference
|
Abstract base class for field interfaces to be added to other ML module classes. More...
#include <mlFieldAddOnBase.h>
Public Types | |
enum | FieldChangeState { NoChange = 0 , StatusOnlyChange , RecalculationRequired } |
Describes the type of a field changes detected in handleFieldChanges(Field *field). More... | |
Public Member Functions | |
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 void | addFields ()=0 |
Add fields to field container of module. | |
virtual void | handleFieldActivationChanges () |
Handle class changes according to Module::activateAttachments. | |
virtual FieldChangeState | handleFieldChanges (Field *field) |
Handle field notifications according to Module::handleNotification functionality. | |
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. | |
Protected Member Functions | |
void | _addFieldPointer (Field *field) |
Helper routine to add a Field pointer to _fieldPointers, empty pointers and pointers added more than once will be handled fatally. | |
Abstract base class for field interfaces to be added to other ML module classes.
Definition at line 22 of file mlFieldAddOnBase.h.
Describes the type of a field changes detected in handleFieldChanges(Field *field).
Definition at line 26 of file mlFieldAddOnBase.h.
|
inline |
Constructor, setting the reference of the FieldContainer managing the fields.
Definition at line 35 of file mlFieldAddOnBase.h.
|
inlinevirtual |
Destructor.
Definition at line 40 of file mlFieldAddOnBase.h.
Helper routine to add a Field pointer to _fieldPointers, empty pointers and pointers added more than once will be handled fatally.
Add fields to field container of module.
All derived versions must add their fields to getFieldContainer() and with _addFieldPointer().
Implemented in ml::StringLineFilterFieldAddOn, ml::DicomModifyFieldAddOnBase, ml::DicomModifyImageTagsFieldAddOn, ml::DicomModifyOrdinaryFieldAddOn, ml::DicomModifyOtherTagOperationsFieldAddOn, ml::DicomModifyPrivateAddFieldAddOn, ml::DicomModifyPrivateRemoveFieldAddOn, ml::DicomModifySequenceFieldAddOn, ml::DicomModifySubTreeSelectorFieldAddOn, ml::DicomModifyTagsVariousFieldAddOns, ml::TreeAndVolumeInputFieldAddOn, ml::DicomAcquisitionContextModuleTagInterface, ml::DicomBoolInheritAndWriteTagInterface, ml::DicomCIDEditTagInterface, ml::DicomCIDSingleEntryEditTagInterface, ml::DicomCommonInstanceReferenceModuleTagInterface, ml::DicomContentDateTimeTagInterface, ml::DicomContentIdentificationMacroTagInterface, ml::DicomCopyGroupsTagInterface, ml::DicomCopyTagSetInterface, ml::DicomDeformableSpatialRegistrationModuleTagInterface, ml::DicomEncapsulatedDocumentModuleTagInterface, ml::DicomEncapsulatedDocumentSeriesModuleTagInterface, ml::DicomEnhancedMRImageModuleTagInterface, ml::DicomFrameOfReferenceModuleTagInterface, ml::DicomGeneralEquipmentModuleTagInterface, ml::DicomGeneralImageModuleTagInterface, ml::DicomGeneralSeriesModuleTagInterface, ml::DicomGeneralStudyModuleTagInterface, ml::DicomImageDescriptionTagInterface, ml::DicomImagePlaneModuleTagInterface, ml::DicomImageTypeTagInterface, ml::DicomManufacturing3DModelModuleTagInterface, ml::DicomMRSeriesModuleTagInterface, ml::DicomPatientModuleTagInterface, ml::DicomPresentationStateIdentificationTagInterface, ml::DicomReferencedImageSequenceTagInterface, ml::DicomSCEquipmentModuleTagInterface, ml::DicomSCMultiframeImageModuleTagInterface, ml::DicomSegmentationImageModuleTagInterface, ml::DicomSegmentationSeriesModuleAttributesTagInterface, ml::DicomSegmentSequenceTagInterface, ml::DicomSeriesAndInstanceReferenceMacroTagInterface, ml::DicomSOPCommonModuleTagInterface, ml::DicomSOPInstanceReferenceMacroTagInterface, ml::DicomSpatialFiducialsModuleTagInterface, ml::DicomValueComboBoxSelectorTagInterface, ml::DicomValueInheritAndCreateTagInterface, ml::DicomTagDumpFieldAddOn, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomDOCSaveAddOnPointers * >, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomEnhancedSaveAddOnPointers * >, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomSEGSaveAddOnPointers * >, ml::RelatedDicomVolumeFieldAddOn, ml::DicomModifyApprovalModuleFieldAddOn, ml::DicomModifyCalculatedDoseReferenceRecordModuleFieldAddOn, ml::DicomModifyCineModuleFieldAddOn, ml::DicomModifyClinicalTrialSeriesModuleFieldAddOn, ml::DicomModifyClinicalTrialStudyModuleFieldAddOn, ml::DicomModifyClinicalTrialSubjectModuleFieldAddOn, ml::DicomModifyContrastBolusModuleFieldAddOn, ml::DicomModifyDeviceModuleFieldAddOn, ml::DicomModifyFrameOfReferenceModuleFieldAddOn, ml::DicomModifyGeneralEquipmentModuleFieldAddOn, ml::DicomModifyGeneralImageModuleFieldAddOn, ml::DicomModifyGeneralStudyModuleFieldAddOn, ml::DicomModifyImagePixelModuleFieldAddOn, ml::DicomModifyImagePlaneModuleFieldAddOn, ml::DicomModifyMeasuredDoseReferenceRecordModuleFieldAddOn, ml::DicomModifyModalityLUTModuleFieldAddOn, ml::DicomModifyMultiFrameModuleFieldAddOn, ml::DicomModifyMultiFrameOverlayModuleFieldAddOn, ml::DicomModifyOverlayPlaneModuleFieldAddOn, ml::DicomModifyPatientModuleFieldAddOn, ml::DicomModifyPatientStudyModuleFieldAddOn, ml::DicomModifyROIContourModuleFieldAddOn, ml::DicomModifyRTBeamsModuleFieldAddOn, ml::DicomModifyRTBrachyApplicationSetupsModuleFieldAddOn, ml::DicomModifyRTDoseModuleFieldAddOn, ml::DicomModifyRTDoseROIModuleFieldAddOn, ml::DicomModifyRTDVHModuleFieldAddOn, ml::DicomModifyRTFractionSchemeModuleFieldAddOn, ml::DicomModifyRTGeneralPlanModuleFieldAddOn, ml::DicomModifyRTGeneralTreatmentRecordModuleFieldAddOn, ml::DicomModifyRTImageModuleFieldAddOn, ml::DicomModifyRTIonBeamsModuleFieldAddOn, ml::DicomModifyRTIonBeamsSessionRecordModuleFieldAddOn, ml::DicomModifyRTIonToleranceTablesModuleFieldAddOn, ml::DicomModifyRTPatientSetupModuleFieldAddOn, ml::DicomModifyRTPrescriptionModuleFieldAddOn, ml::DicomModifyRTROIObservationsModuleFieldAddOn, ml::DicomModifyRTSeriesModuleFieldAddOn, ml::DicomModifyRTToleranceTablesModuleFieldAddOn, ml::DicomModifyRTTreatmentMachineRecordModuleFieldAddOn, ml::DicomModifyRTTreatmentSummaryRecordModuleFieldAddOn, ml::DicomModifySOPCommonModuleFieldAddOn, ml::DicomModifyStructureSetModuleFieldAddOn, ml::DicomModifyVOILUTModuleFieldAddOn, and ml::DicomModifyModuleFieldAddOnBase.
|
inline |
Returns the referenced container.
Definition at line 43 of file mlFieldAddOnBase.h.
|
inline |
Returns the referenced container.
Definition at line 46 of file mlFieldAddOnBase.h.
|
inline |
Return modification access to the list of managed fields, use at own risk!
Definition at line 49 of file mlFieldAddOnBase.h.
Return constant access to the list of managed fields!
Definition at line 52 of file mlFieldAddOnBase.h.
|
inlinevirtual |
Returns a FieldChangeState which best represents a merge of the two given states.
Definition at line 71 of file mlFieldAddOnBase.h.
References mlrange_cast().
Handle class changes according to Module::activateAttachments.
Reimplemented in ml::StringLineFilterFieldAddOn, ml::DicomModifyFieldAddOnBase, ml::DicomModifyOrdinaryFieldAddOn, ml::DicomModifyOtherTagOperationsFieldAddOn, ml::DicomModifyPrivateAddFieldAddOn, ml::DicomModifyPrivateRemoveFieldAddOn, ml::DicomModifySequenceFieldAddOn, ml::DicomModifySubTreeSelectorFieldAddOn, ml::DicomModifyTagsVariousFieldAddOns, ml::TreeAndVolumeInputFieldAddOn, ml::DicomAcquisitionContextModuleTagInterface, ml::DicomCIDEditTagInterface, ml::DicomCIDSingleEntryEditTagInterface, ml::DicomEnhancedMRImageModuleTagInterface, ml::DicomImageDescriptionTagInterface, ml::DicomImageTypeTagInterface, ml::DicomManufacturing3DModelModuleTagInterface, ml::DicomSegmentationImageModuleTagInterface, ml::DicomSegmentSequenceTagInterface, ml::DicomSOPCommonModuleTagInterface, ml::DicomValueComboBoxSelectorTagInterface, ml::DicomTagDumpFieldAddOn, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomDOCSaveAddOnPointers * >, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomEnhancedSaveAddOnPointers * >, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomSEGSaveAddOnPointers * >, and ml::RelatedDicomVolumeFieldAddOn.
Definition at line 59 of file mlFieldAddOnBase.h.
|
inlinevirtual |
Handle field notifications according to Module::handleNotification functionality.
The default functionality return
field | The field whose was changed. |
Reimplemented in ml::StringLineFilterFieldAddOn, ml::DicomModifyFieldAddOnBase, ml::DicomModifyOrdinaryFieldAddOn, ml::DicomModifyOtherTagOperationsFieldAddOn, ml::DicomModifyPrivateAddFieldAddOn, ml::DicomModifyPrivateRemoveFieldAddOn, ml::DicomModifySequenceFieldAddOn, ml::DicomModifySubTreeSelectorFieldAddOn, ml::DicomModifyTagsVariousFieldAddOns, ml::TreeAndVolumeInputFieldAddOn, ml::DicomAcquisitionContextModuleTagInterface, ml::DicomBoolInheritAndWriteTagInterface, ml::DicomCIDEditTagInterface, ml::DicomCIDSingleEntryEditTagInterface, ml::DicomCommonInstanceReferenceModuleTagInterface, ml::DicomCopyGroupsTagInterface, ml::DicomCopyTagSetInterface, ml::DicomEncapsulatedDocumentSeriesModuleTagInterface, ml::DicomEnhancedMRImageModuleTagInterface, ml::DicomGeneralEquipmentModuleTagInterface, ml::DicomGeneralSeriesModuleTagInterface, ml::DicomGeneralStudyModuleTagInterface, ml::DicomImageDescriptionTagInterface, ml::DicomImageTypeTagInterface, ml::DicomManufacturing3DModelModuleTagInterface, ml::DicomPatientModuleTagInterface, ml::DicomPresentationStateIdentificationTagInterface, ml::DicomReferencedImageSequenceTagInterface, ml::DicomSegmentationImageModuleTagInterface, ml::DicomSegmentSequenceTagInterface, ml::DicomSeriesAndInstanceReferenceMacroTagInterface, ml::DicomSOPCommonModuleTagInterface, ml::DicomValueComboBoxSelectorTagInterface, ml::DicomValueInheritAndCreateTagInterface, ml::DicomTagDumpFieldAddOn, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomDOCSaveAddOnPointers * >, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomEnhancedSaveAddOnPointers * >, ml::FieldAddOnList< DicomModifyFieldAddOnBase, DicomSEGSaveAddOnPointers * >, ml::RelatedDicomVolumeFieldAddOn, and ml::DicomModifyModuleFieldAddOnBase.
Definition at line 65 of file mlFieldAddOnBase.h.
References mlrange_cast().
Returns true if the passed fieldPtr is in _fieldPointers, otherwise false.