ALBA
|
#include <albaGUITransformTextEntries.h>
Public Types | |
enum | TRANSFORMTEXTENTRIES_WIDGET_ID { ID_TRANSLATE_X = MINID , ID_TRANSLATE_Y , ID_TRANSLATE_Z , ID_ROTATE_X , ID_ROTATE_Y , ID_ROTATE_Z , ID_SCALE_X , ID_SCALE_Y , ID_SCALE_Z } |
Public Member Functions | |
albaGUITransformTextEntries (albaVME *input, albaObserver *listener=NULL, bool enableScaling=true, bool testMode=false) | |
~albaGUITransformTextEntries () | |
void | OnEvent (albaEventBase *alba_event) |
void | EnableWidgets (bool enable) |
void | Reset () |
void | SetAbsPose (albaMatrix *absPose, albaTimeStamp timeStamp=-1) |
Public Member Functions inherited from albaGUITransformInterface | |
albaGUI * | GetGui () |
virtual void | EnableWidgets (bool enable)=0 |
void | SetRefSys (albaVME *refSysVme) |
albaVME * | GetRefSys () |
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 | RefSysVmeChanged () |
void | TextEntriesChanged () |
void | CreateGui () |
Protected Member Functions inherited from albaGUITransformInterface | |
albaGUITransformInterface () | |
~albaGUITransformInterface () | |
virtual void | CreateGui () |
virtual void | RefSysVmeChanged () |
Protected Attributes | |
double | m_Position [3] |
double | m_Orientation [3] |
double | m_Scaling [3] |
bool | m_EnableScaling |
Protected Attributes inherited from albaGUITransformInterface | |
albaVME * | m_InputVME |
albaObserver * | m_Listener |
albaGUI * | m_Gui |
albaVME * | m_RefSysVME |
albaTimeStamp | m_CurrentTime |
bool | m_TestMode |
Friends | |
class | albaGUITransformTextEntriesTest |
text entries gui component for transform operations
plug it into an operation to allow vme transformation through text entries. scaling gui can be disabled through a bool flag in the constructor; default is scaling set to on.
Example Usage: ... guiTransformTextEntries = new albaGUITransformTextEntries(vmeToMove, observerOperation); observerOperation->GetGui()->AddGui(guiTransformTextEntries->GetGui()); ...
Definition at line 58 of file albaGUITransformTextEntries.h.
Enumerator | |
---|---|
ID_TRANSLATE_X | |
ID_TRANSLATE_Y | |
ID_TRANSLATE_Z | |
ID_ROTATE_X | |
ID_ROTATE_Y | |
ID_ROTATE_Z | |
ID_SCALE_X | |
ID_SCALE_Y | |
ID_SCALE_Z |
Definition at line 75 of file albaGUITransformTextEntries.h.
albaGUITransformTextEntries::albaGUITransformTextEntries | ( | albaVME * | input, |
albaObserver * | listener = NULL , |
||
bool | enableScaling = true , |
||
bool | testMode = false |
||
) |
albaGUITransformTextEntries::~albaGUITransformTextEntries | ( | ) |
|
virtual |
Events handling.
Reimplemented from albaGUITransformInterface.
|
virtual |
Enable-Disable the GUI's widgets.
Implements albaGUITransformInterface.
|
virtual |
Override superclass.
Reimplemented from albaGUITransformInterface.
void albaGUITransformTextEntries::SetAbsPose | ( | albaMatrix * | absPose, |
albaTimeStamp | timeStamp = -1 |
||
) |
Set abs pose and update position, orientation and scale text entries according to current reference system.
|
protectedvirtual |
override superclass
Reimplemented from albaGUITransformInterface.
|
protected |
action to be performed when one text entry has changed
|
protectedvirtual |
override superclass
Reimplemented from albaGUITransformInterface.
|
friend |
test friend
Definition at line 112 of file albaGUITransformTextEntries.h.
|
protected |
Definition at line 105 of file albaGUITransformTextEntries.h.
|
protected |
Definition at line 106 of file albaGUITransformTextEntries.h.
|
protected |
Definition at line 107 of file albaGUITransformTextEntries.h.
|
protected |
Definition at line 109 of file albaGUITransformTextEntries.h.