ALBA
albaGUITransformTextEntries.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUITransformTextEntries
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 __albaGUITransformTextEntries_H__
18#define __albaGUITransformTextEntries_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaObserver.h"
25
26//----------------------------------------------------------------------------
27// forward references :
28//----------------------------------------------------------------------------
29class albaGUI;
30class albaGUIButton;
33class albaInteractor;
34class albaVME;
35class albaMatrix;
36
37//----------------------------------------------------------------------------
59{
60public:
61
62 albaGUITransformTextEntries(albaVME *input, albaObserver *listener = NULL, bool enableScaling = true, bool testMode = false);
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_TRANSLATE_X = MINID,
86 };
87
89 void Reset();
90
92 void SetAbsPose(albaMatrix *absPose, albaTimeStamp timeStamp = -1);
93
94protected:
95
98
101
103 void CreateGui();
104
105 double m_Position[3];
106 double m_Orientation[3];
107 double m_Scaling[3];
108
110
112 friend class albaGUITransformTextEntriesTest;
113};
114#endif
MINID
Definition: albaDecl.h:420
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
albaGUIButton inherit from wxButton.
Definition: albaGUIButton.h:35
text entries gui component for transform operations
void TextEntriesChanged()
action to be performed when one text entry has changed
void CreateGui()
override superclass
void Reset()
Override superclass.
void RefSysVmeChanged()
override superclass
albaGUITransformTextEntries(albaVME *input, albaObserver *listener=NULL, bool enableScaling=true, bool testMode=false)
void EnableWidgets(bool enable)
Enable-Disable the GUI's widgets.
void OnEvent(albaEventBase *alba_event)
Events handling.
void SetAbsPose(albaMatrix *absPose, albaTimeStamp timeStamp=-1)
Set abs pose and update position, orientation and scale text entries according to current reference s...
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...
albaMatrix - Time stamped 4x4 Matrix.
Definition: albaMatrix.h:44
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaVME -
Definition: albaVME.h:150