ALBA
albaInteractorSegmentationPicker.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaInteractorSegmentationPicker
5 Authors: Matteo Giacomoni, Gianluigi Crimi
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaInteractorSegmentationPicker_h
18#define __albaInteractorSegmentationPicker_h
19
20#include "albaDefines.h"
22
23//----------------------------------------------------------------------------
24// forward declarations :
25//----------------------------------------------------------------------------
26
28{
29public:
30
32
33 virtual void OnEvent(albaEventBase *event);
34
35protected:
39 virtual void OnLeftButtonUp();
40
42 void SendPickingInformation(albaView *v, double *mouse_pos, long modifier, int eventID);
43
46
49
50
51 bool m_IsPicking; //< Determine if interactor is picking
52 double m_PickPosition[3];
53};
54#endif
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Event class to transport a triggering button and a position from pointing devices.
implements mouse move of camera in the scene.
albaInteractorSegmentationPicker()
constructor.
void SendPickingInformation(albaView *v, double *mouse_pos, long modifier, int eventID)
Send to the listener picked point coordinate through vtkPoint and the corresponding scalar value foun...
albaTypeMacro(albaInteractorSegmentationPicker, albaInteractorCameraMove)
virtual ~albaInteractorSegmentationPicker()
destructor.
virtual void OnEvent(albaEventBase *event)
Process events coming from tracker.
virtual void OnLeftButtonUp()
This function is called when on mouse button release.
virtual void OnLeftButtonDown(albaEventInteraction *e)
This function is called when on mouse button down.
albaView is the base class for Views in alba.
Definition: albaView.h:79