MeVisLab Toolbox Reference
ml::RelatedDicomVolumeFieldAddOn Class Reference

Class managing fields fields to show and reference other volumes in a MultiFileVolumeList. More...

#include <mlRelatedDicomVolumeFieldAddOn.h>

Inheritance diagram for ml::RelatedDicomVolumeFieldAddOn:
ml::FieldAddOnBase

Public Member Functions

 RelatedDicomVolumeFieldAddOn (FieldContainer &fieldContainerRef)
 Constructor, setting the reference of the FieldContainer managing the fields. More...
 
void addFields () override
 Add fields to field container of module. More...
 
void handleFieldActivationChanges () override
 Do the activateAttachment-like stuff in this method. More...
 
FieldAddOnBase::FieldChangeState handleFieldChanges (Field *field) override
 Handle field notifications. More...
 
virtual std::string checkConsistency () const
 Checks for invalid parameters; return textual description on error, or empty string on success. More...
 
virtual void resetFields ()
 Sets field to default state. More...
 
virtual std::string updateResultFields (DCMTree::Const_TreePtr dcmTree, MultiFileVolumeList *volList)
 Update the field state to new values of dcmTree and volList; if any of them is nullptr then resetFields() is called.) More...
 
BoolFieldgetEnableRelatedVolumesFld () const
 Provide direct access to the fields; see corresponding fields for comments. More...
 
IntFieldgetFirstVolumeIndexDerivedFromFld () const
 
StringFieldgetVolumeIndexesDerivedFromFld () const
 
IntFieldgetFirstSharedFrameOfReferenceVolumeIndexFld () const
 
StringFieldgetSharedFrameOfReferenceVolumeIndexesFld () const
 
IntFieldgetFirstRelatedVolumeIndexFld () const
 
StringFieldgetRelatedVolumeIndexesFld () const
 
- Public Member Functions inherited from ml::FieldAddOnBase
 FieldAddOnBase (FieldContainer &fieldContainerRef)
 Constructor, setting the reference of the FieldContainer managing the fields. More...
 
virtual ~FieldAddOnBase ()
 Destructor. More...
 
FieldContainergetFieldContainer ()
 Returns the referenced container. More...
 
const FieldContainergetFieldContainer () const
 Returns the referenced container. More...
 
std::vector< Field * > & getFields ()
 Return modification access to the list of managed fields, use at own risk! More...
 
const std::vector< Field * > & getFields () const
 Return constant access to the list of managed fields! More...
 
virtual FieldChangeState getMergedFieldChangeState (FieldChangeState state1, FieldChangeState state2) const
 Returns a FieldChangeState which best represents a merge of the two given states. More...
 
virtual bool hasField (Field *field) const
 Returns true if the passed fieldPtr is in _fieldPointers, otherwise false. More...
 

Protected Attributes

BoolField_enableRelatedVolumesFld
 Enables/disables the functionality of this FieldAddOn since it can be time consuming. More...
 
IntField_firstVolumeIndexDerivedFromFld
 The index into the current MultiFileVolumeList to the first image referenced in DerivedImageSequence or -1 if not found. More...
 
StringField_volumeIndexesDerivedFromFld
 The indexes into the current MultiFileVolumeList to all images referenced in DerivedImageSequence or empty if not found. More...
 
IntField_firstSharedFrameOfReferenceVolumeIndexFld
 The index into the current MultiFileVolumeList to the first found volume which has the same FrameOfReferenceUID as the current volume or -1 if not found. More...
 
StringField_sharedFrameOfReferenceVolumeIndexesFld
 The indexes of all found MultiFileVolumes in the current MultiFileVolumeList which have the same FrameOfReferenceUID as the current volume or empty if not found. More...
 
IntField_firstRelatedVolumeIndexFld
 The first valid index from _firstVolumeIndexDerivedFromFld and _firstSharedFrameOfReferenceVolumeIndexFld. More...
 
StringField_relatedVolumeIndexesFld
 All valid indexes from _volumeIndexesDerivedFromFld and _sharedFrameOfReferenceVolumeIndexesFld. More...
 

Additional Inherited Members

- Public Types inherited from ml::FieldAddOnBase
enum  FieldChangeState { NoChange = 0 , StatusOnlyChange , RecalculationRequired }
 Describes the type of a field changes detected in handleFieldChanges(Field *field). More...
 
- Protected Member Functions inherited from ml::FieldAddOnBase
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. More...
 

Detailed Description

Class managing fields fields to show and reference other volumes in a MultiFileVolumeList.

Definition at line 26 of file mlRelatedDicomVolumeFieldAddOn.h.

Constructor & Destructor Documentation

◆ RelatedDicomVolumeFieldAddOn()

ml::RelatedDicomVolumeFieldAddOn::RelatedDicomVolumeFieldAddOn ( FieldContainer fieldContainerRef)
inline

Constructor, setting the reference of the FieldContainer managing the fields.

Definition at line 30 of file mlRelatedDicomVolumeFieldAddOn.h.

Member Function Documentation

◆ addFields()

void ml::RelatedDicomVolumeFieldAddOn::addFields ( )
overridevirtual

Add fields to field container of module.

Implements ml::FieldAddOnBase.

◆ checkConsistency()

virtual std::string ml::RelatedDicomVolumeFieldAddOn::checkConsistency ( ) const
virtual

Checks for invalid parameters; return textual description on error, or empty string on success.

◆ getEnableRelatedVolumesFld()

BoolField& ml::RelatedDicomVolumeFieldAddOn::getEnableRelatedVolumesFld ( ) const
inline

Provide direct access to the fields; see corresponding fields for comments.

Definition at line 52 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ getFirstRelatedVolumeIndexFld()

IntField& ml::RelatedDicomVolumeFieldAddOn::getFirstRelatedVolumeIndexFld ( ) const
inline

Definition at line 57 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ getFirstSharedFrameOfReferenceVolumeIndexFld()

IntField& ml::RelatedDicomVolumeFieldAddOn::getFirstSharedFrameOfReferenceVolumeIndexFld ( ) const
inline

Definition at line 55 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ getFirstVolumeIndexDerivedFromFld()

IntField& ml::RelatedDicomVolumeFieldAddOn::getFirstVolumeIndexDerivedFromFld ( ) const
inline

Definition at line 53 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ getRelatedVolumeIndexesFld()

StringField& ml::RelatedDicomVolumeFieldAddOn::getRelatedVolumeIndexesFld ( ) const
inline

Definition at line 58 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ getSharedFrameOfReferenceVolumeIndexesFld()

StringField& ml::RelatedDicomVolumeFieldAddOn::getSharedFrameOfReferenceVolumeIndexesFld ( ) const
inline

Definition at line 56 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ getVolumeIndexesDerivedFromFld()

StringField& ml::RelatedDicomVolumeFieldAddOn::getVolumeIndexesDerivedFromFld ( ) const
inline

Definition at line 54 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ handleFieldActivationChanges()

void ml::RelatedDicomVolumeFieldAddOn::handleFieldActivationChanges ( )
overridevirtual

Do the activateAttachment-like stuff in this method.

Reimplemented from ml::FieldAddOnBase.

◆ handleFieldChanges()

FieldAddOnBase::FieldChangeState ml::RelatedDicomVolumeFieldAddOn::handleFieldChanges ( Field field)
overridevirtual

Handle field notifications.

Reimplemented from ml::FieldAddOnBase.

◆ resetFields()

virtual void ml::RelatedDicomVolumeFieldAddOn::resetFields ( )
virtual

Sets field to default state.

◆ updateResultFields()

virtual std::string ml::RelatedDicomVolumeFieldAddOn::updateResultFields ( DCMTree::Const_TreePtr  dcmTree,
MultiFileVolumeList volList 
)
virtual

Update the field state to new values of dcmTree and volList; if any of them is nullptr then resetFields() is called.)

Member Data Documentation

◆ _enableRelatedVolumesFld

BoolField* ml::RelatedDicomVolumeFieldAddOn::_enableRelatedVolumesFld
protected

Enables/disables the functionality of this FieldAddOn since it can be time consuming.

Definition at line 66 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ _firstRelatedVolumeIndexFld

IntField* ml::RelatedDicomVolumeFieldAddOn::_firstRelatedVolumeIndexFld
protected

The first valid index from _firstVolumeIndexDerivedFromFld and _firstSharedFrameOfReferenceVolumeIndexFld.

Definition at line 85 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ _firstSharedFrameOfReferenceVolumeIndexFld

IntField* ml::RelatedDicomVolumeFieldAddOn::_firstSharedFrameOfReferenceVolumeIndexFld
protected

The index into the current MultiFileVolumeList to the first found volume which has the same FrameOfReferenceUID as the current volume or -1 if not found.

Definition at line 77 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ _firstVolumeIndexDerivedFromFld

IntField* ml::RelatedDicomVolumeFieldAddOn::_firstVolumeIndexDerivedFromFld
protected

The index into the current MultiFileVolumeList to the first image referenced in DerivedImageSequence or -1 if not found.

Definition at line 69 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ _relatedVolumeIndexesFld

StringField* ml::RelatedDicomVolumeFieldAddOn::_relatedVolumeIndexesFld
protected

All valid indexes from _volumeIndexesDerivedFromFld and _sharedFrameOfReferenceVolumeIndexesFld.

Definition at line 88 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ _sharedFrameOfReferenceVolumeIndexesFld

StringField* ml::RelatedDicomVolumeFieldAddOn::_sharedFrameOfReferenceVolumeIndexesFld
protected

The indexes of all found MultiFileVolumes in the current MultiFileVolumeList which have the same FrameOfReferenceUID as the current volume or empty if not found.

Definition at line 81 of file mlRelatedDicomVolumeFieldAddOn.h.

◆ _volumeIndexesDerivedFromFld

StringField* ml::RelatedDicomVolumeFieldAddOn::_volumeIndexesDerivedFromFld
protected

The indexes into the current MultiFileVolumeList to all images referenced in DerivedImageSequence or empty if not found.

Definition at line 72 of file mlRelatedDicomVolumeFieldAddOn.h.


The documentation for this class was generated from the following file: