MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkUSPointMarkInteractor.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12
13#ifndef mitkUSPointMarkInteractor_h
14#define mitkUSPointMarkInteractor_h
15
16#include "mitkDataInteractor.h"
17
18namespace itk {
19 template<class T> class SmartPointer;
20}
21
22namespace mitk
23{
27 class USPointMarkInteractor : public DataInteractor
28 {
29 public:
32
33 typedef Message1<DataNode*> PointMarkInteractorEvent;
35
36 protected:
38
40 ~USPointMarkInteractor() override;
41
45 void ConnectActionsAndFunctions() override;
46
52 void DataNodeChanged() override;
53
57 void AddPoint(StateMachineAction*, InteractionEvent*);
58 };
59} // namespace mitk
60
61#endif
Simple interactor for getting just one position on mouse click.
mitkClassMacro(USPointMarkInteractor, DataInteractor)
void AddPoint(StateMachineAction *, InteractionEvent *)
Set current position as origin to the data node.
Message1< DataNode * > PointMarkInteractorEvent
void DataNodeChanged() override
Sets empty surface as data for the new data node. This is necessary as data nodes without data do not...
void ConnectActionsAndFunctions() override
Connects the functions from the state machine to methods of this class.
static void UpdateSurface(itk::SmartPointer< mitk::DataNode >)
PointMarkInteractorEvent CoordinatesChangedEvent
IGT Exceptions.