ALBA
albaInteractorCameraPicker.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaInteractorCameraPicker
5 Authors: Stefano Perticoni
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 __medInteractorPicker_h
18#define __medInteractorPicker_h
19
20#include "albaDefines.h"
22
23//----------------------------------------------------------------------------
24// forward declarations :
25//----------------------------------------------------------------------------
26
41{
42public:
44
46 virtual void OnEvent(albaEventBase *event);
47
49 void EnableContinuousPicking(bool enable);
50
51protected:
54
57 void SendPickingInformation(albaView *v, double *mouse_pos = NULL, int msg_id = VME_PICKED, albaMatrix *tracker_pos = NULL, bool mouse_flag = true);
58
60
63
64private:
66 void operator=(const albaInteractorCameraPicker&); // Not implemented.
67};
68#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.
implements mouse move of camera in the scene.
Class albaInteractorCameraPicker:
virtual void OnEvent(albaEventBase *event)
Redefined to send picking events if continuous picking is enabled.
albaTypeMacro(albaInteractorCameraPicker, albaInteractorCameraMove)
virtual void OnButtonDown(albaEventInteraction *e)
virtual ~albaInteractorCameraPicker()
virtual void OnButtonUp(albaEventInteraction *e)
void EnableContinuousPicking(bool enable)
Enable/disable continuous picking in OnEvent.
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...
albaMatrix - Time stamped 4x4 Matrix.
Definition: albaMatrix.h:44
albaView is the base class for Views in alba.
Definition: albaView.h:79