ALBA
albaGUIGizmoTranslate.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIGizmoTranslate
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 __albaGizmoGuiTranslate_H__
18#define __albaGizmoGuiTranslate_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaObserver.h"
25
26//----------------------------------------------------------------------------
27// forward references :
28//----------------------------------------------------------------------------
29class albaGUIButton;
30class albaGUI;
31
32//----------------------------------------------------------------------------
40{
41public:
42
43 albaGUIGizmoTranslate(albaObserver *listener = NULL, bool testMode = false);
45
46 void OnEvent(albaEventBase *alba_event);
47
49 void EnableWidgets(bool enable);
50
51//----------------------------------------------------------------------------
52//gui constants:
53//----------------------------------------------------------------------------
54
55// this constants must be visible from the owner gizmo
56
58{
59 ID_TRANSLATE_X = MINID,
62};
63
67
68protected:
69
70 void SendAbsPosition(albaEventBase *sourceEvent);
71
73 void CreateGui();
74
77 double m_Position[3];
78
80 friend class albaGUIGizmoTranslateTest;
81
82};
83#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
abstract base class for gizmo gui
gui class for translation gizmo
void EnableWidgets(bool enable)
Enable-Disable the GUI's widgets.
void SendAbsPosition(albaEventBase *sourceEvent)
void SetAbsPosition(albaMatrix *pose)
Update Position ivar; only translation part is copied from pose.
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
void CreateGui()
Create the GUI.
albaGUIGizmoTranslate(albaObserver *listener=NULL, bool testMode=false)
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
albaMatrix - Time stamped 4x4 Matrix.
Definition: albaMatrix.h:44
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36