ALBA
albaGUITransformInterface.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUITransformInterface
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 __albaGUITransformInterface_H__
18#define __albaGUITransformInterface_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaObserver.h"
24#include "albaEvent.h"
25
26//----------------------------------------------------------------------------
27// forward references :
28//----------------------------------------------------------------------------
29class albaGUI;
30class albaVME;
31
32//----------------------------------------------------------------------------
43class ALBA_EXPORT albaGUITransformInterface : public albaObserver
44{
45public:
46
48 albaGUI *GetGui() {return m_Gui;};
49
51 virtual void EnableWidgets(bool enable) = 0;
52
54 void SetRefSys(albaVME *refSysVme);
55 albaVME* GetRefSys() {return m_RefSysVME;};
56
58 virtual void Reset() {};
59
61 void OnEvent(albaEventBase *alba_event) {};
62
65 void TestModeOn() {m_TestMode = true;};
66
68 void TestModeOff() {m_TestMode = false;};
69
71 bool GetTestMode(){return m_TestMode;};
72
73protected:
74
77
79 virtual void CreateGui() {};
80
82
85
88
90 virtual void RefSysVmeChanged() {};
91
93
95};
96#endif
double albaTimeStamp
type for time varying data timestamps (not for pipelines timestamps!)
Definition: albaDefines.h:57
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
albaVME * m_RefSysVME
Vme to be used as reference system.
virtual void EnableWidgets(bool enable)=0
Enable-Disable the GUI's widgets.
void TestModeOff()
Used to turn off m_TestMode flag.
virtual void CreateGui()
Create the GUI.
void OnEvent(albaEventBase *alba_event)
Events handling.
void SetRefSys(albaVME *refSysVme)
Set the vme to be used as reference system, the vme is referenced; default ref sys is vme abs matrix.
void TestModeOn()
Turn On m_TestMode flag.
virtual void Reset()
Reset the gui component to initial state.
albaGUI * GetGui()
Return the gui to be plugged.
virtual void RefSysVmeChanged()
Internal actions to be performed when RefSys vme has changed.
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
albaVME -
Definition: albaVME.h:150