ALBA
albaInteractorPicker.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaInteractorPicker
5 Authors: Marco Petrone, originally by Silvano Imboden
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#ifndef __albaInteractorPicker_h
17#define __albaInteractorPicker_h
18
19#include "albaInteractor.h"
20
21//----------------------------------------------------------------------------
22// forward declarations
23//----------------------------------------------------------------------------
24class albaObserver;
25
27class ALBA_EXPORT albaInteractorPicker : public albaInteractor
28{
29public:
31
33 virtual void OnEvent(albaEventBase *event);
34
36 void EnableContinuousPicking(bool enable) {m_ContinuousPickingFlag = enable;};
37
38 bool IsContinuousPicking(){return m_ContinuousPickingFlag;};
39
40protected:
43
46
48
51 void SendPickingInformation(albaView *v, double *mouse_pos = NULL, int msg_id = VME_PICKED, albaMatrix *tracker_pos = NULL, bool mouse_flag = true);
52
53private:
54 albaInteractorPicker(const albaInteractorPicker&); // Not implemented.
55 void operator=(const albaInteractorPicker&); // Not implemented.
56};
57
58#endif
VME_PICKED
Definition: albaDecl.h:202
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.
interactor implementing a picking operation
virtual void OnButtonUp(albaEventInteraction *e)
virtual ~albaInteractorPicker()
virtual void OnEvent(albaEventBase *event)
Redefined to send picking events if continuous picking is enabled.
albaTypeMacro(albaInteractorPicker, albaInteractor)
virtual void OnButtonDown(albaEventInteraction *e)
void SendPickingInformation(albaView *v, double *mouse_pos=NULL, int msg_id=VME_PICKED, albaMatrix *tracker_pos=NULL, bool mouse_flag=true)
Send to the listener picked point coordinate through vtkPoint and the corresponding scalar value foun...
void EnableContinuousPicking(bool enable)
Enable/disable continuous picking in OnEvent.
Abstract class for ALBA interactors This class provides base interface and features of ALBA continuou...
albaMatrix - Time stamped 4x4 Matrix.
Definition: albaMatrix.h:44
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaView is the base class for Views in alba.
Definition: albaView.h:79