ALBA
albaInteractorSelectCell.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaInteractorSelectCell
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 __albaInteractorSelectCell_h
18#define __albaInteractorSelectCell_h
19
21#include "albaMTime.h"
22
23//----------------------------------------------------------------------------
24// forward declarations :
25//----------------------------------------------------------------------------
26class vtkCellPicker;
27class vtkCamera;
28
49{
50public:
52
54 virtual void OnMouseMove();
55
58
61
62protected:
65
67 void PickCell(albaDevice *device);
68
70
71private:
72 albaInteractorSelectCell(const albaInteractorSelectCell&); // Not implemented.
73 void operator=(const albaInteractorSelectCell&); // Not implemented.
74 void OnEvent(albaEventBase *event);
75
76};
77#endif
This abstract class manages function calls coming from devices and issue specific events to interacto...
Definition: albaDevice.h:40
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.
virtual void OnEvent(albaEventBase *event)
Process events coming from tracker.
Implements mouse move of camera in the scene or perform continuous cell picking when using CTRL modif...
virtual void OnMouseMove()
redefined not to move the camera if something has been picked
virtual ~albaInteractorSelectCell()
virtual void OnButtonUp(albaEventInteraction *e)
redefined to end pick modality
albaTypeMacro(albaInteractorSelectCell, albaInteractorCameraMove)
virtual void OnLeftButtonDown(albaEventInteraction *e)
redefined to pick cell if CTRL modifier is pressed
void PickCell(albaDevice *device)
send the picking informations to the listener