MITK-IGT
IGT Extension of MITK
|
Navigation step for marking risk structures. The user can add risk structures by interacting with the render windows. The risk structures are organized in an embedded table view. More...
#include <QmitkUSNavigationStepZoneMarking.h>
Public Member Functions | |
QmitkUSNavigationStepZoneMarking (QWidget *parent=nullptr) | |
~QmitkUSNavigationStepZoneMarking () override | |
bool | OnStartStep () override |
Initialization of the data storage nodes. | |
bool | OnStopStep () override |
Resets widget and filter and removes nodes from the data storage. | |
bool | OnFinishStep () override |
There is nothing to be done. | |
bool | OnActivateStep () override |
Selects input for the node displacement filter and emits "ReadyForNextStep" signal. The input selection cannot be done earlier. | |
bool | OnDeactivateStep () override |
Called when the navigation step gets deactivated (-> state started). This method may be implemented by a concrete subclass to handle actions necessary on deactivating the navigation step, which means switching to another step. | |
void | OnUpdate () override |
Updates just the tracking validity status. | |
void | OnSettingsChanged (const itk::SmartPointer< mitk::DataNode > settingsNode) override |
QString | GetTitle () override |
Getter for the title of the navigation step. This title should be human readable and can be used to display the available steps and the currently active step to the user. The method has to be implemented by a concrete subclass. | |
FilterVector | GetFilter () override |
![]() | |
QmitkUSAbstractNavigationStep (QWidget *parent=nullptr) | |
~QmitkUSAbstractNavigationStep () override | |
virtual bool | GetIsRestartable () |
Indicates if it makes sense to be able to restart the step. This method must be implemented by concrete subclasses if it should not be possible to restart them. | |
void | SetDataStorage (itk::SmartPointer< mitk::DataStorage > dataStorage) |
Sets the data storage for the exchange of results between navigation steps. | |
void | SetCombinedModality (itk::SmartPointer< mitk::AbstractUltrasoundTrackerDevice > combinedModality) |
Sets the combined modality for the navigation step. OnSetCombinedModality() is called internal. | |
bool | StartStep () |
Should be called to start the navigation step. | |
bool | StopStep () |
Should be called to stop the navigation step. | |
bool | RestartStep () |
Should be called to restart the navigation step. | |
bool | FinishStep () |
Should be called to finish the navigation step. The state has to be 'active' before and is 'started' afterwards. | |
bool | ActivateStep () |
Should be called to activate the navigation step. The step gets started before if it was stopped. | |
bool | DeactivateStep () |
Should be called to deactivate the navigation step. | |
void | Update () |
Should be called periodically while the navigation step is active. Internal, the method OnUpdate() is called. | |
NavigationStepState | GetNavigationStepState () |
Get the current state of the navigation step. | |
Protected Slots | |
void | OnFreeze (bool freezed) |
void | OnZoneAdded () |
Triggered when a risk zone was added. Adds the zone to a member variable and to the node displacement filter. | |
void | OnZoneRemoved () |
Triggered when a risk zone was removed. Removes the zone from a member variable and from the node displacement filter. | |
void | OnShowListClicked (int state) |
Protected Member Functions | |
void | OnSetCombinedModality () override |
Called every time SetCombinedModality() was called. This method may be implemented by a concrete subclass to handle this event. The default implementation does nothing. | |
void | UpdateReferenceSensorName () |
![]() | |
virtual bool | OnRestartStep () |
Called when restarting a navigation step. This method may be implemented by a concrete subclass to handle actions necessary for restarting the navigation step. The default implementations calls OnStopStep() followed by OnStartStep(). | |
itk::SmartPointer< mitk::DataStorage > | GetDataStorage (bool throwNull=true) |
Returns the data storage set for the navigation step. | |
itk::SmartPointer< mitk::AbstractUltrasoundTrackerDevice > | GetCombinedModality (bool throwNull=true) |
Returns the combined modality set for the navigation step. | |
itk::SmartPointer< mitk::DataNode > | GetNamedDerivedNode (const char *name, const char *sourceName) |
Returns node with the given name and the given source node (parent) from the data storage. | |
itk::SmartPointer< mitk::DataNode > | GetNamedDerivedNodeAndCreate (const char *name, const char *sourceName) |
Returns node with the given name and the given source node (parent) from the data storage. The node is created if no matching node was found. | |
Protected Attributes | |
itk::SmartPointer< mitk::NavigationDataSource > | m_NavigationDataSource |
itk::SmartPointer< mitk::NodeDisplacementFilter > | m_ZoneDisplacementFilter |
std::vector< itk::SmartPointer< mitk::DataNode > > | m_ZoneNodes |
std::string | m_StateMachineFilename |
std::string | m_ReferenceSensorName |
unsigned int | m_ReferenceSensorIndex |
bool | m_CurrentlyAddingZone |
Additional Inherited Members | |
![]() | |
enum | NavigationStepState { State_Stopped , State_Started , State_Active } |
typedef std::vector< itk::SmartPointer< mitk::NavigationDataToNavigationDataFilter > > | FilterVector |
![]() | |
void | SignalReadyForNextStep () |
Signals that all necessary actions where done. The user can proceed with the next stept after this was signaled. | |
void | SignalNoLongerReadyForNextStep () |
Signals that it is no longer possible to proceed with following steps. This signal is emitted when the result data of the step was removed or changed, so that the old results are invalid for following steps. | |
void | SignalCombinedModalityChanged (itk::SmartPointer< mitk::AbstractUltrasoundTrackerDevice >) |
Signals that the combined modality was changed by this step. This signal is mainly for steps which creates the combined modality. The new combined modality is given as a parameter. | |
void | SignalIntermediateResult (const itk::SmartPointer< mitk::DataNode >) |
Signals that an intermediate result was produced. The properties of the given data node must contain the results. This signal can be used to log the intermediate results of an experiment, for example by using the mitk::USNavigationExperimentLogging. | |
void | SignalSettingsNodeChanged (itk::SmartPointer< mitk::DataNode >) |
Signals that the settings node was changed. This signal must not be emitted in an OnSettingsChanged() method. | |
![]() | |
static const char * | DATANAME_SETTINGS = "Settings" |
static const char * | DATANAME_IMAGESTREAM = "US Image Stream" |
static const char * | DATANAME_BASENODE = QmitkUSAbstractNavigationStep::DATANAME_IMAGESTREAM |
Navigation step for marking risk structures. The user can add risk structures by interacting with the render windows. The risk structures are organized in an embedded table view.
The risk structures are stored under DATANAME_BASENODE -> DATANAME_ZONES.
This step is ready for the next step directly after activating. All actions to be done in this step are optional.
Definition at line 41 of file QmitkUSNavigationStepZoneMarking.h.
|
explicit |
Definition at line 20 of file QmitkUSNavigationStepZoneMarking.cpp.
|
override |
Definition at line 43 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
Reimplemented from QmitkUSAbstractNavigationStep.
Definition at line 150 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
Getter for the title of the navigation step. This title should be human readable and can be used to display the available steps and the currently active step to the user. The method has to be implemented by a concrete subclass.
Implements QmitkUSAbstractNavigationStep.
Definition at line 145 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
Selects input for the node displacement filter and emits "ReadyForNextStep" signal. The input selection cannot be done earlier.
Implements QmitkUSAbstractNavigationStep.
Definition at line 83 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
Called when the navigation step gets deactivated (-> state started). This method may be implemented by a concrete subclass to handle actions necessary on deactivating the navigation step, which means switching to another step.
Reimplemented from QmitkUSAbstractNavigationStep.
Definition at line 93 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
There is nothing to be done.
Implements QmitkUSAbstractNavigationStep.
Definition at line 78 of file QmitkUSNavigationStepZoneMarking.cpp.
|
protectedslot |
Definition at line 155 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overrideprotectedvirtual |
Called every time SetCombinedModality() was called. This method may be implemented by a concrete subclass to handle this event. The default implementation does nothing.
Reimplemented from QmitkUSAbstractNavigationStep.
Definition at line 231 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
The property "settings.interaction-concept" is used.
Reimplemented from QmitkUSAbstractNavigationStep.
Definition at line 125 of file QmitkUSNavigationStepZoneMarking.cpp.
|
protectedslot |
Definition at line 37 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
Initialization of the data storage nodes.
Implements QmitkUSAbstractNavigationStep.
Definition at line 48 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
Resets widget and filter and removes nodes from the data storage.
Reimplemented from QmitkUSAbstractNavigationStep.
Definition at line 58 of file QmitkUSNavigationStepZoneMarking.cpp.
|
overridevirtual |
Updates just the tracking validity status.
Implements QmitkUSAbstractNavigationStep.
Definition at line 100 of file QmitkUSNavigationStepZoneMarking.cpp.
|
protectedslot |
Triggered when a risk zone was added. Adds the zone to a member variable and to the node displacement filter.
Definition at line 177 of file QmitkUSNavigationStepZoneMarking.cpp.
|
protectedslot |
Triggered when a risk zone was removed. Removes the zone from a member variable and from the node displacement filter.
Definition at line 205 of file QmitkUSNavigationStepZoneMarking.cpp.
|
protected |
Definition at line 244 of file QmitkUSNavigationStepZoneMarking.cpp.
|
protected |
Definition at line 124 of file QmitkUSNavigationStepZoneMarking.h.
|
protected |
Definition at line 116 of file QmitkUSNavigationStepZoneMarking.h.
|
protected |
Definition at line 122 of file QmitkUSNavigationStepZoneMarking.h.
|
protected |
Definition at line 121 of file QmitkUSNavigationStepZoneMarking.h.
|
protected |
Definition at line 120 of file QmitkUSNavigationStepZoneMarking.h.
|
protected |
Definition at line 117 of file QmitkUSNavigationStepZoneMarking.h.
|
protected |
Definition at line 118 of file QmitkUSNavigationStepZoneMarking.h.