ALBA
albaGUIGizmoInterface.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIGizmoInterface
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 __albaGizmoGuiInterface_H__
18#define __albaGizmoGuiInterface_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaEvent.h"
24#include "albaObserver.h"
25
26//----------------------------------------------------------------------------
27// forward references :
28//----------------------------------------------------------------------------
29class mflMatrix;
30class albaGUI;
31
32//----------------------------------------------------------------------------
43class ALBA_EXPORT albaGUIGizmoInterface : public albaObserver
44{
45public:
46
48
49 virtual void OnEvent(albaEventBase *alba_event) {};
50
52 albaGUI *GetGui() {return m_Gui;};
53
55 virtual void EnableWidgets(bool enable) {};
56
59 void TestModeOn() {m_TestMode = true;};
60
62 void TestModeOff() {m_TestMode = false;};
63
65 bool GetTestMode(){return m_TestMode;};
66
67protected:
68 virtual void CreateGui() {};
69
71
75
77 friend class albaGUIGizmoInterfaceTest;
78};
79#endif
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
abstract base class for gizmo gui
void TestModeOff()
Used to turn off m_TestMode flag.
virtual void EnableWidgets(bool enable)
Enable-Disable the GUI's widgets.
void TestModeOn()
Turn On m_TestMode flag.
albaGUIGizmoInterface(albaObserver *listener=NULL)
albaGUI * GetGui()
Return the gui to be plugged.
virtual ~albaGUIGizmoInterface()
bool GetTestMode()
Get TestMode.
virtual void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36