ALBA
albaInteractorCompositorMouseFloatVME.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA
4 Module: albaInteractorCompositorMouseFloatVME
5 Authors: Nicola Vanella
6
7 Copyright (c) B3C
8 All rights reserved. See Copyright.txt or
9 http://www.scsitaly.com/Copyright.htm for details.
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 __albaInteractorCompositorMouseFloatVME_h
18#define __albaInteractorCompositorMouseFloatVME_h
19
21
22//----------------------------------------------------------------------------
23//forward ref
24//----------------------------------------------------------------------------
27
28//----------------------------------------------------------------------------
34{
35public:
37
39 virtual void OnEvent(albaEventBase *event);
40
41 void InitInteraction(int buttonPressed, albaEventInteraction *e);
42
44
46
49
50protected:
51 typedef std::map<int, albaAutoPointer<albaInteractorGenericMouseFloatVME> > mmuActivatorArbitraryMap;
53
54private:
55
56 int m_MousePose[2];
57 int m_LastMousePose[2];
58 int m_ButtonPressed;
59};
60#endif
61
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 name: albaInteractorCompositorMouseFloatVME This class derived from albaInteractorCompositorMou...
std::map< int, albaAutoPointer< albaInteractorGenericMouseFloatVME > > mmuActivatorArbitraryMap
albaTypeMacro(albaInteractorCompositorMouseFloatVME, albaInteractorCompositorMouse)
void InitInteraction(int buttonPressed, albaEventInteraction *e)
void OnButtonDown(albaEventInteraction *e)
albaInteractorGenericMouse * CreateBehavior(MMI_ACTIVATOR activator)
Create a behavior given the activator.
virtual void OnEvent(albaEventBase *event)
Process events coming from the mouse.
void OnButtonUp(albaEventInteraction *e)
Associates instances of albaInteractorGenericMouse to mouse buttons and ctrl/shift keys combinations.
Constrained interaction with mouse device.