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

#include <albaGUIGizmoTranslate.h>

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

Public Types

enum  GUI_GIZMO_TRANSLATE_ID { ID_TRANSLATE_X = MINID , ID_TRANSLATE_Y , ID_TRANSLATE_Z }
 

Public Member Functions

 albaGUIGizmoTranslate (albaObserver *listener=NULL, bool testMode=false)
 
 ~albaGUIGizmoTranslate ()
 
void OnEvent (albaEventBase *alba_event)
 
void EnableWidgets (bool enable)
 
void SetAbsPosition (albaMatrix *pose)
 
- Public Member Functions inherited from albaGUIGizmoInterface
virtual ~albaGUIGizmoInterface ()
 
virtual void OnEvent (albaEventBase *alba_event)
 
albaGUIGetGui ()
 
virtual void EnableWidgets (bool enable)
 
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 SendAbsPosition (albaEventBase *sourceEvent)
 
void CreateGui ()
 
- Protected Member Functions inherited from albaGUIGizmoInterface
virtual void CreateGui ()
 
 albaGUIGizmoInterface (albaObserver *listener=NULL)
 

Protected Attributes

double m_Position [3]
 
- Protected Attributes inherited from albaGUIGizmoInterface
albaObserverm_Listener
 
albaGUIm_Gui
 
bool m_TestMode
 

Friends

class albaGUIGizmoTranslateTest
 

Detailed Description

gui class for translation gizmo

See also
Todo:

Definition at line 39 of file albaGUIGizmoTranslate.h.

Member Enumeration Documentation

◆ GUI_GIZMO_TRANSLATE_ID

Enumerator
ID_TRANSLATE_X 
ID_TRANSLATE_Y 
ID_TRANSLATE_Z 

Definition at line 57 of file albaGUIGizmoTranslate.h.

Constructor & Destructor Documentation

◆ albaGUIGizmoTranslate()

albaGUIGizmoTranslate::albaGUIGizmoTranslate ( albaObserver listener = NULL,
bool  testMode = false 
)

◆ ~albaGUIGizmoTranslate()

albaGUIGizmoTranslate::~albaGUIGizmoTranslate ( )

Member Function Documentation

◆ OnEvent()

void albaGUIGizmoTranslate::OnEvent ( albaEventBase e)
virtual

process the events sent by subjects

Reimplemented from albaGUIGizmoInterface.

◆ EnableWidgets()

void albaGUIGizmoTranslate::EnableWidgets ( bool  enable)
virtual

Enable-Disable the GUI's widgets.

Reimplemented from albaGUIGizmoInterface.

◆ SetAbsPosition()

void albaGUIGizmoTranslate::SetAbsPosition ( albaMatrix pose)

Update Position ivar; only translation part is copied from pose.

◆ SendAbsPosition()

void albaGUIGizmoTranslate::SendAbsPosition ( albaEventBase sourceEvent)
protected

◆ CreateGui()

void albaGUIGizmoTranslate::CreateGui ( )
protectedvirtual

Create the GUI.

Reimplemented from albaGUIGizmoInterface.

Friends And Related Function Documentation

◆ albaGUIGizmoTranslateTest

friend class albaGUIGizmoTranslateTest
friend

test friend

Definition at line 80 of file albaGUIGizmoTranslate.h.

Member Data Documentation

◆ m_Position

double albaGUIGizmoTranslate::m_Position[3]
protected

Gizmo abs pose.

Definition at line 77 of file albaGUIGizmoTranslate.h.


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