ALBA
albaGUIGizmoScale.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIGizmoScale
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 __albaGizmoGuiScale_H__
18#define __albaGizmoGuiScale_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaObserver.h"
25
26//----------------------------------------------------------------------------
27// forward references :
28//----------------------------------------------------------------------------
29class albaGUIButton;
30class albaGUI;
31
32//----------------------------------------------------------------------------
40class ALBA_EXPORT albaGUIGizmoScale : public albaGUIGizmoInterface
41{
42public:
43
44 albaGUIGizmoScale(albaObserver *listener = NULL, bool testMode = false);
46
47 void OnEvent(albaEventBase *alba_event);
48
50 void EnableWidgets(bool enable);
51
52 //----------------------------------------------------------------------------
53 //gui constants:
54 //----------------------------------------------------------------------------
55
56 // this constants must be visible from the owner gizmo
57
59 {
60 ID_SCALE_X = MINID,
63 };
64
68
69protected:
70
71 void SendAbsScaling(albaEventBase *sourceEvent);
72
74 void CreateGui();
75
78 double m_Scaling[3];
79
81 friend class albaGUIGizmoScaleTest;
82
83};
84#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 scaling gizmo.
void SetAbsScaling(albaMatrix *pose)
Update Scaling ivar; only scaling part is copied from pose.
void SendAbsScaling(albaEventBase *sourceEvent)
void CreateGui()
Create the GUI.
void EnableWidgets(bool enable)
Enable-Disable the GUI's widgets.
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
albaGUIGizmoScale(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