ALBA
albaGUISaveRestorePose.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGUISaveRestorePose
5 Authors: Paolo Quadrani , 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 __albaGUISaveRestorePose_H__
18#define __albaGUISaveRestorePose_H__
19
20//----------------------------------------------------------------------------
21// Include:
22//----------------------------------------------------------------------------
23#include "albaObserver.h"
25#include "albaTagArray.h"
26//----------------------------------------------------------------------------
27// forward references :
28//----------------------------------------------------------------------------
29class albaGUI;
30class albaMatrix;
31
45{
46public:
47
49 {
50 ID_POSE_GUI = 0,
52 };
53
54 albaGUISaveRestorePose(albaVME *input, albaObserver *listener = NULL , int typeGui = ID_POSE_GUI, bool testMode = false);
56
58 void OnEvent(albaEventBase *alba_event);
59
62 void EnableWidgets(bool enable);
63
64 // this constants must be visible from the owner object
66 {
67 ID_SAVE = MINID,
70 };
71
72protected:
73
76 void CreateGui();
77
81
85 void StorePose();
86
89 void RestorePose(int absPoseListBoxID);
90
93 void RemovePose(int absPoseListBoxID);
94
96 void StorePoseHelper( albaString absPoseTagName);
97 void RestorePoseHelper( albaString absPoseTagName );
98 void RemovePoseHelper( albaString absPoseTagName );
99
100 wxListBox *m_PositionsList;
102
104 friend class albaGUISaveRestorePoseTest;
105
106};
107#endif
MINID
Definition: albaDecl.h:420
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
Input VME ABS Matrix Store/Restore GUI Component.
void OnEvent(albaEventBase *alba_event)
Events handling.
void RemovePose(int absPoseListBoxID)
Remove the given pose from the input vme tag array and the associated string from the listbox.
void StorePose()
Prompt the user for the new pose to be saved name , add the associated string to the listbox and add ...
void FillListBoxWithABSPosesStoredInInputVME()
Find in input vme if there are stored abs poses and fill the listbox with their names.
void RestorePose(int absPoseListBoxID)
Restore the selected pose to the input vme from the listbox pose id.
void RemovePoseHelper(albaString absPoseTagName)
void EnableWidgets(bool enable)
Enable-Disable the GUI's widgets.
void StorePoseHelper(albaString absPoseTagName)
Helper functions.
void CreateGui()
Create the GUI.
void RestorePoseHelper(albaString absPoseTagName)
albaGUISaveRestorePose(albaVME *input, albaObserver *listener=NULL, int typeGui=ID_POSE_GUI, 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
albaString - performs common string operations on c-strings.
Definition: albaString.h:43
albaVME -
Definition: albaVME.h:150