ALBA
albaGUITransformMouse.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUITransformMouse
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 __albaGUITransformMouse_H__
18#define __albaGUITransformMouse_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaObserver.h"
26
27//----------------------------------------------------------------------------
28// forward references :
29//----------------------------------------------------------------------------
30class albaGUI;
31class albaGUIButton;
33class albaInteractor;
34class albaVME;
35
36//----------------------------------------------------------------------------
45{
46public:
47 albaGUITransformMouse(albaVME *input, albaObserver *listener = NULL, bool testMode = false);
49
50 // constraints enum
52 {
53 X_AXIS = 0,
63 };
64
65 void OnEvent(albaEventBase *alba_event);
66
68 void EnableWidgets(bool enable);
69
70 //----------------------------------------------------------------------------
71 //gui constants:
72 //----------------------------------------------------------------------------
73
74 // this constants must be visible from the owner object
76 {
77 ID_ROTATION_AXES = MINID,
79 };
80
84
85 void SetRotationConstraintId(int value){m_RotationConstraintId = value;};
86 void SetTranslationConstraintId(int value){m_TranslationConstraintId = value;};
87
89
91
92protected:
94
96 void CreateISA();
97
99 void CreateGui();
100
102
106
109 ;
112
113 friend class albaGUITransformMouseTest;
114
115};
116#endif
MINID
Definition: albaDecl.h:420
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
albaGUIButton inherit from wxButton.
Definition: albaGUIButton.h:35
albaInteractorGenericMouse * m_IsaRoll
void SetRotationConstraintId(int value)
void OnEvent(albaEventBase *alba_event)
Events handling.
void SetTranslationConstraintId(int value)
void CreateISA()
Create interactors.
albaInteractorGenericMouse * GetIsaRotate()
void CreateGui()
Override superclass.
void AttachInteractorToVme()
Start and stop interaction through this object isa.
albaInteractor * m_OldInteractor
albaInteractorGenericMouse * CreateBehavior(MMI_ACTIVATOR activator)
albaGUITransformMouse(albaVME *input, albaObserver *listener=NULL, bool testMode=false)
void EnableWidgets(bool enable)
Override superclass.
albaInteractorGenericMouse * m_IsaRotate
albaInteractorGenericMouse * m_IsaTranslate
albaInteractorCompositorMouse * m_IsaCompositor
void RefSysVmeChanged()
Override superclass.
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
Associates instances of albaInteractorGenericMouse to mouse buttons and ctrl/shift keys combinations.
Constrained interaction with mouse device.
Abstract class for ALBA interactors This class provides base interface and features of ALBA continuou...
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaVME -
Definition: albaVME.h:150