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

#include <albaGUITransformSliders.h>

Inheritance diagram for albaGUITransformSliders:
Inheritance graph
[legend]
Collaboration diagram for albaGUITransformSliders:
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 , ID_RESET
}
 

Public Member Functions

 albaGUITransformSliders (albaVME *input, double translationRange[6], albaObserver *listener=NULL, bool enableScaling=true, bool testMode=false)
 
 ~albaGUITransformSliders ()
 
void OnEvent (albaEventBase *alba_event)
 
void EnableWidgets (bool enable)
 
void Reset ()
 
void SetAbsPose (albaMatrix *absPose, albaTimeStamp timeStamp=-1)
 
void GetPosition (double pos[3])
 
void GetOrientation (double orientation[3])
 
void GetScaling (double scaling[3])
 
void SetPosition (double pos[3])
 
void SetOrientation (double orientation[3])
 
void SetScaling (double scaling[3])
 
- 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 SlidersValuesChanged ()
 
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]
 
double m_TranslationRange [6]
 
bool m_EnableScaling
 
albaMatrixm_OldAbsMatrix
 
- Protected Attributes inherited from albaGUITransformInterface
albaVMEm_InputVME
 
albaObserverm_Listener
 
albaGUIm_Gui
 
albaVMEm_RefSysVME
 
albaTimeStamp m_CurrentTime
 
bool m_TestMode
 

Detailed Description

Class name: albaGUITransformSliders.

A GUI component with sliders widgets for transform operations.

Definition at line 44 of file albaGUITransformSliders.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 
ID_RESET 

Definition at line 65 of file albaGUITransformSliders.h.

Constructor & Destructor Documentation

◆ albaGUITransformSliders()

albaGUITransformSliders::albaGUITransformSliders ( albaVME input,
double  translationRange[6],
albaObserver listener = NULL,
bool  enableScaling = true,
bool  testMode = false 
)

Constructor.

◆ ~albaGUITransformSliders()

albaGUITransformSliders::~albaGUITransformSliders ( )

Destructor.

Member Function Documentation

◆ OnEvent()

void albaGUITransformSliders::OnEvent ( albaEventBase alba_event)
virtual

Override superclass.

Reimplemented from albaGUITransformInterface.

◆ EnableWidgets()

void albaGUITransformSliders::EnableWidgets ( bool  enable)
virtual

Enable-Disable the GUI's widgets.

Implements albaGUITransformInterface.

◆ Reset()

void albaGUITransformSliders::Reset ( )
virtual

Override superclass.

Reimplemented from albaGUITransformInterface.

◆ SetAbsPose()

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

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

◆ GetPosition()

void albaGUITransformSliders::GetPosition ( double  pos[3])

Return the current position.

◆ GetOrientation()

void albaGUITransformSliders::GetOrientation ( double  orientation[3])

Return the current orientation.

◆ GetScaling()

void albaGUITransformSliders::GetScaling ( double  scaling[3])

Return the current scaling.

◆ SetPosition()

void albaGUITransformSliders::SetPosition ( double  pos[3])

Set the current position.

◆ SetOrientation()

void albaGUITransformSliders::SetOrientation ( double  orientation[3])

Set the current orientation.

◆ SetScaling()

void albaGUITransformSliders::SetScaling ( double  scaling[3])

Set the current scaling.

◆ RefSysVmeChanged()

void albaGUITransformSliders::RefSysVmeChanged ( )
protectedvirtual

override superclass

Reimplemented from albaGUITransformInterface.

◆ SlidersValuesChanged()

void albaGUITransformSliders::SlidersValuesChanged ( )
protected

action to be performed when a slider has changed its position.

◆ CreateGui()

void albaGUITransformSliders::CreateGui ( )
protectedvirtual

override superclass

Reimplemented from albaGUITransformInterface.

Member Data Documentation

◆ m_Position

double albaGUITransformSliders::m_Position[3]
protected

Definition at line 115 of file albaGUITransformSliders.h.

◆ m_Orientation

double albaGUITransformSliders::m_Orientation[3]
protected

Definition at line 116 of file albaGUITransformSliders.h.

◆ m_Scaling

double albaGUITransformSliders::m_Scaling[3]
protected

Definition at line 117 of file albaGUITransformSliders.h.

◆ m_TranslationRange

double albaGUITransformSliders::m_TranslationRange[6]
protected

Definition at line 118 of file albaGUITransformSliders.h.

◆ m_EnableScaling

bool albaGUITransformSliders::m_EnableScaling
protected

Definition at line 120 of file albaGUITransformSliders.h.

◆ m_OldAbsMatrix

albaMatrix* albaGUITransformSliders::m_OldAbsMatrix
protected

Definition at line 122 of file albaGUITransformSliders.h.


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