MeVisLab Toolbox Reference
mlRelatedDicomVolumeFieldAddOn.h
Go to the documentation of this file.
1// Copyright (c) Fraunhofer MEVIS, Germany. All rights reserved.
2// **InsertLicense** code
3//----------------------------------------------------------------------------------
7
12//----------------------------------------------------------------------------------
13#pragma once
14
16#include <mlFieldAddOnBase.h>
17#include <DCMTree_Lib.h>
18
19ML_START_NAMESPACE
20
21class MultiFileVolumeList;
22
23//----------------------------------------------------------------------------------
25//----------------------------------------------------------------------------------
27{
28public:
30 inline RelatedDicomVolumeFieldAddOn(FieldContainer &fieldContainerRef): FieldAddOnBase(fieldContainerRef){};
31
33 void addFields() override;
34
37
40
42 virtual std::string checkConsistency() const;
43
45 virtual void resetFields();
46
48 virtual std::string updateResultFields(DCMTree::Const_TreePtr dcmTree,
49 MultiFileVolumeList *volList);
50
61
62protected:
63
64 // The managed fields.
65
68
85
88
91
92
96
100
101
104
107};
108
109ML_END_NAMESPACE
110
Project global and OS specific declarations.
#define MLDIRECTDICOMIMPORTOUTPUTS_EXPORT
DLL export macro definition.
FieldChangeState
Describes the type of a field changes detected in handleFieldChanges(Field *field).
FieldAddOnBase(FieldContainer &fieldContainerRef)
Constructor, setting the reference of the FieldContainer managing the fields.
StringField * _volumeIndexesDerivedFromFld
The indexes into the current MultiFileVolumeList to all images referenced in DerivedImageSequence or ...
StringField & getSharedFrameOfReferenceVolumeIndexesFld() const
StringField & getRelatedSequencesSourceConfigFld() const
Provide direct access to the fields; see corresponding fields for comments.
BoolField * _enableRelatedVolumesFld
Enables/disables the functionality of this FieldAddOn since it can be time consuming.
RelatedDicomVolumeFieldAddOn(FieldContainer &fieldContainerRef)
Constructor, setting the reference of the FieldContainer managing the fields.
FieldAddOnBase::FieldChangeState handleFieldChanges(Field *field) override
Handle field notifications.
virtual void resetFields()
Sets field to default state.
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 resetFiel...
IntField * _firstVolumeIndexDerivedFromFld
The index into the current MultiFileVolumeList to the first image referenced in DerivedImageSequence ...
void addFields() override
Add fields to field container of module.
IntField * _firstRelatedVolumeIndexFld
The first valid index from _firstVolumeIndexDerivedFromFld and _firstSharedFrameOfReferenceVolumeInde...
StringField * _relatedVolumeIndexesFld
All valid indexes from _volumeIndexesDerivedFromFld and _sharedFrameOfReferenceVolumeIndexesFld.
virtual std::string checkConsistency() const
Checks for invalid parameters; return textual description on error, or empty string on success.
void handleFieldActivationChanges() override
Do the activateAttachment-like stuff in this method.
boost::shared_ptr< const Tree > Const_TreePtr
Definition DCMTree_Lib.h:67