ALBA
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
albaGUISaveRestorePose Class Reference

#include <albaGUISaveRestorePose.h>

Inheritance diagram for albaGUISaveRestorePose:
Inheritance graph
[legend]
Collaboration diagram for albaGUISaveRestorePose:
Collaboration graph
[legend]

Public Types

enum  ID_TYPE_GUI { ID_POSE_GUI = 0 , ID_SCALE_GUI }
 
enum  GUI_SAVE_RESTORE_ID { ID_SAVE = MINID , ID_REMOVE , ID_APPLY }
 

Public Member Functions

 albaGUISaveRestorePose (albaVME *input, albaObserver *listener=NULL, int typeGui=ID_POSE_GUI, bool testMode=false)
 
 ~albaGUISaveRestorePose ()
 
void OnEvent (albaEventBase *alba_event)
 
void EnableWidgets (bool enable)
 
- Public Member Functions inherited from albaGUITransformInterface
albaGUIGetGui ()
 
virtual void EnableWidgets (bool enable)=0
 
void SetRefSys (albaVME *refSysVme)
 
albaVMEGetRefSys ()
 
virtual void Reset ()
 
void OnEvent (albaEventBase *alba_event)
 
void TestModeOn ()
 
void TestModeOff ()
 
bool GetTestMode ()
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Member Functions

void CreateGui ()
 
void FillListBoxWithABSPosesStoredInInputVME ()
 
void StorePose ()
 
void RestorePose (int absPoseListBoxID)
 
void RemovePose (int absPoseListBoxID)
 
void StorePoseHelper (albaString absPoseTagName)
 
void RestorePoseHelper (albaString absPoseTagName)
 
void RemovePoseHelper (albaString absPoseTagName)
 
- Protected Member Functions inherited from albaGUITransformInterface
 albaGUITransformInterface ()
 
 ~albaGUITransformInterface ()
 
virtual void CreateGui ()
 
virtual void RefSysVmeChanged ()
 

Protected Attributes

wxListBox * m_PositionsList
 
int m_TypeGui
 
- Protected Attributes inherited from albaGUITransformInterface
albaVMEm_InputVME
 
albaObserverm_Listener
 
albaGUIm_Gui
 
albaVMEm_RefSysVME
 
albaTimeStamp m_CurrentTime
 
bool m_TestMode
 

Friends

class albaGUISaveRestorePoseTest
 

Detailed Description

Input VME ABS Matrix Store/Restore GUI Component.

Component to store/restore input vme abs pose

Example usage to plug this component into an operation:

guiSaveRestorePose = new albaGUISaveRestorePose(opInputVME, this); clientOpGUI->AddGui(guiSaveRestorePose->GetGui());

See also
albaOpTransformOld

Definition at line 44 of file albaGUISaveRestorePose.h.

Member Enumeration Documentation

◆ ID_TYPE_GUI

Enumerator
ID_POSE_GUI 
ID_SCALE_GUI 

Definition at line 48 of file albaGUISaveRestorePose.h.

◆ GUI_SAVE_RESTORE_ID

Enumerator
ID_SAVE 
ID_REMOVE 
ID_APPLY 

Definition at line 65 of file albaGUISaveRestorePose.h.

Constructor & Destructor Documentation

◆ albaGUISaveRestorePose()

albaGUISaveRestorePose::albaGUISaveRestorePose ( albaVME input,
albaObserver listener = NULL,
int  typeGui = ID_POSE_GUI,
bool  testMode = false 
)

◆ ~albaGUISaveRestorePose()

albaGUISaveRestorePose::~albaGUISaveRestorePose ( )

Member Function Documentation

◆ OnEvent()

void albaGUISaveRestorePose::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Implements albaObserver.

◆ EnableWidgets()

void albaGUISaveRestorePose::EnableWidgets ( bool  enable)
virtual

Enable-Disable the GUI's widgets.

Implements albaGUITransformInterface.

◆ CreateGui()

void albaGUISaveRestorePose::CreateGui ( )
protectedvirtual

Create the GUI.

Reimplemented from albaGUITransformInterface.

◆ FillListBoxWithABSPosesStoredInInputVME()

void albaGUISaveRestorePose::FillListBoxWithABSPosesStoredInInputVME ( )
protected

Find in input vme if there are stored abs poses and fill the listbox with their names.

◆ StorePose()

void albaGUISaveRestorePose::StorePose ( )
protected

Prompt the user for the new pose to be saved name , add the associated string to the listbox and add the corresponding matrix data to the input vme tagarray.

◆ RestorePose()

void albaGUISaveRestorePose::RestorePose ( int  absPoseListBoxID)
protected

Restore the selected pose to the input vme from the listbox pose id.

◆ RemovePose()

void albaGUISaveRestorePose::RemovePose ( int  absPoseListBoxID)
protected

Remove the given pose from the input vme tag array and the associated string from the listbox.

◆ StorePoseHelper()

void albaGUISaveRestorePose::StorePoseHelper ( albaString  absPoseTagName)
protected

Helper functions.

◆ RestorePoseHelper()

void albaGUISaveRestorePose::RestorePoseHelper ( albaString  absPoseTagName)
protected

◆ RemovePoseHelper()

void albaGUISaveRestorePose::RemovePoseHelper ( albaString  absPoseTagName)
protected

Friends And Related Function Documentation

◆ albaGUISaveRestorePoseTest

friend class albaGUISaveRestorePoseTest
friend

friend test

Definition at line 104 of file albaGUISaveRestorePose.h.

Member Data Documentation

◆ m_PositionsList

wxListBox* albaGUISaveRestorePose::m_PositionsList
protected

Definition at line 100 of file albaGUISaveRestorePose.h.

◆ m_TypeGui

int albaGUISaveRestorePose::m_TypeGui
protected

Definition at line 101 of file albaGUISaveRestorePose.h.


The documentation for this class was generated from the following file: