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

#include <albaGUITransformTextEntries.h>

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

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
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 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
albaVMEm_InputVME
 
albaObserverm_Listener
 
albaGUIm_Gui
 
albaVMEm_RefSysVME
 
albaTimeStamp m_CurrentTime
 
bool m_TestMode
 

Friends

class albaGUITransformTextEntriesTest
 

Detailed Description

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()); ...

See also
albaOpTransformOld for an example on how to plug this component into a transform operation
Todo:

Definition at line 58 of file albaGUITransformTextEntries.h.

Member Enumeration Documentation

◆ TRANSFORMTEXTENTRIES_WIDGET_ID

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.

Constructor & Destructor Documentation

◆ albaGUITransformTextEntries()

albaGUITransformTextEntries::albaGUITransformTextEntries ( albaVME input,
albaObserver listener = NULL,
bool  enableScaling = true,
bool  testMode = false 
)

◆ ~albaGUITransformTextEntries()

albaGUITransformTextEntries::~albaGUITransformTextEntries ( )

Member Function Documentation

◆ OnEvent()

void albaGUITransformTextEntries::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGUITransformInterface.

◆ EnableWidgets()

void albaGUITransformTextEntries::EnableWidgets ( bool  enable)
virtual

Enable-Disable the GUI's widgets.

Implements albaGUITransformInterface.

◆ Reset()

void albaGUITransformTextEntries::Reset ( )
virtual

Override superclass.

Reimplemented from albaGUITransformInterface.

◆ SetAbsPose()

void albaGUITransformTextEntries::SetAbsPose ( albaMatrix absPose,
albaTimeStamp  timeStamp = -1 
)

Set abs pose and update position, orientation and scale text entries according to current reference system.

◆ RefSysVmeChanged()

void albaGUITransformTextEntries::RefSysVmeChanged ( )
protectedvirtual

override superclass

Reimplemented from albaGUITransformInterface.

◆ TextEntriesChanged()

void albaGUITransformTextEntries::TextEntriesChanged ( )
protected

action to be performed when one text entry has changed

◆ CreateGui()

void albaGUITransformTextEntries::CreateGui ( )
protectedvirtual

override superclass

Reimplemented from albaGUITransformInterface.

Friends And Related Function Documentation

◆ albaGUITransformTextEntriesTest

friend class albaGUITransformTextEntriesTest
friend

test friend

Definition at line 112 of file albaGUITransformTextEntries.h.

Member Data Documentation

◆ m_Position

double albaGUITransformTextEntries::m_Position[3]
protected

Definition at line 105 of file albaGUITransformTextEntries.h.

◆ m_Orientation

double albaGUITransformTextEntries::m_Orientation[3]
protected

Definition at line 106 of file albaGUITransformTextEntries.h.

◆ m_Scaling

double albaGUITransformTextEntries::m_Scaling[3]
protected

Definition at line 107 of file albaGUITransformTextEntries.h.

◆ m_EnableScaling

bool albaGUITransformTextEntries::m_EnableScaling
protected

Definition at line 109 of file albaGUITransformTextEntries.h.


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