ALBA
albaGUIGizmoRotate.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUIGizmoRotate
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 __albaGizmoGuiRotate_H__
18#define __albaGizmoGuiRotate_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaEvent.h"
24#include "albaObserver.h"
26
27//----------------------------------------------------------------------------
28// forward references :
29//----------------------------------------------------------------------------
30class albaGUIButton;
31class albaMatrix;
32
33//----------------------------------------------------------------------------
40class ALBA_EXPORT albaGUIGizmoRotate : public albaGUIGizmoInterface
41{
42public:
43
44 albaGUIGizmoRotate(albaObserver *listener, 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
58{
59 ID_ROTATE_X = MINID,
62};
63
67
68protected:
69
71 void CreateGui();
72
75 double m_Orientation[3];
76
80
82 friend class albaGUIGizmoRotateTest;
83
84};
85#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 rotation gizmo
void CreateGui()
Create the GUI.
void SetAbsOrientation(albaMatrix *pose)
Set RotAngles ivar, only rotation part is copied from pose.
void EnableWidgets(bool enable)
Enable-Disable the GUI's widgets.
void SendAbsOrientation(albaEventBase *sourceEvent)
Send position to listener as vtkMatrix.
albaGUIGizmoRotate(albaObserver *listener, bool testMode=false)
void OnEvent(albaEventBase *alba_event)
process the events sent by subjects
albaMatrix - Time stamped 4x4 Matrix.
Definition: albaMatrix.h:44
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36