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

#include <albaGUITransformMouse.h>

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

Public Types

enum  TRANSFORM_MOUSE_WIDGET_ID {
  X_AXIS = 0 , Y_AXIS , Z_AXIS , VIEW_PLANE ,
  NORMAL_VIEW_PLANE , XY_PLANE , XZ_PLANE , YZ_PLANE ,
  SURFACE_SNAP , NORMAL_SURFACE
}
 
enum  GUI_TRANSFORM_MOUSE_ID { ID_ROTATION_AXES = MINID , ID_TRASLATION_AXES }
 

Public Member Functions

 albaGUITransformMouse (albaVME *input, albaObserver *listener=NULL, bool testMode=false)
 
 ~albaGUITransformMouse ()
 
void OnEvent (albaEventBase *alba_event)
 
void EnableWidgets (bool enable)
 
void AttachInteractorToVme ()
 
void DetachInteractorFromVme ()
 
void SetRotationConstraintId (int value)
 
void SetTranslationConstraintId (int value)
 
albaInteractorGenericMouseCreateBehavior (MMI_ACTIVATOR activator)
 
albaInteractorGenericMouseGetIsaRotate ()
 
- 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 CreateISA ()
 
void CreateGui ()
 
void RefSysVmeChanged ()
 
- Protected Member Functions inherited from albaGUITransformInterface
 albaGUITransformInterface ()
 
 ~albaGUITransformInterface ()
 
virtual void CreateGui ()
 
virtual void RefSysVmeChanged ()
 

Protected Attributes

albaInteractorm_OldInteractor
 
albaInteractorCompositorMousem_IsaCompositor
 
albaInteractorGenericMousem_IsaRotate
 
albaInteractorGenericMousem_IsaTranslate
 
albaInteractorGenericMousem_IsaRoll
 
int m_RotationConstraintId
 
int m_TranslationConstraintId
 
- Protected Attributes inherited from albaGUITransformInterface
albaVMEm_InputVME
 
albaObserverm_Listener
 
albaGUIm_Gui
 
albaVMEm_RefSysVME
 
albaTimeStamp m_CurrentTime
 
bool m_TestMode
 

Friends

class albaGUITransformMouseTest
 

Detailed Description

transform gui

See also
Todo:

Definition at line 44 of file albaGUITransformMouse.h.

Member Enumeration Documentation

◆ TRANSFORM_MOUSE_WIDGET_ID

Enumerator
X_AXIS 
Y_AXIS 
Z_AXIS 
VIEW_PLANE 
NORMAL_VIEW_PLANE 
XY_PLANE 
XZ_PLANE 
YZ_PLANE 
SURFACE_SNAP 
NORMAL_SURFACE 

Definition at line 51 of file albaGUITransformMouse.h.

◆ GUI_TRANSFORM_MOUSE_ID

Enumerator
ID_ROTATION_AXES 
ID_TRASLATION_AXES 

Definition at line 75 of file albaGUITransformMouse.h.

Constructor & Destructor Documentation

◆ albaGUITransformMouse()

albaGUITransformMouse::albaGUITransformMouse ( albaVME input,
albaObserver listener = NULL,
bool  testMode = false 
)

◆ ~albaGUITransformMouse()

albaGUITransformMouse::~albaGUITransformMouse ( )

Member Function Documentation

◆ OnEvent()

void albaGUITransformMouse::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGUITransformInterface.

◆ EnableWidgets()

void albaGUITransformMouse::EnableWidgets ( bool  enable)
virtual

Override superclass.

Implements albaGUITransformInterface.

◆ AttachInteractorToVme()

void albaGUITransformMouse::AttachInteractorToVme ( )

Start and stop interaction through this object isa.

◆ DetachInteractorFromVme()

void albaGUITransformMouse::DetachInteractorFromVme ( )

◆ SetRotationConstraintId()

void albaGUITransformMouse::SetRotationConstraintId ( int  value)
inline

Definition at line 85 of file albaGUITransformMouse.h.

◆ SetTranslationConstraintId()

void albaGUITransformMouse::SetTranslationConstraintId ( int  value)
inline

Definition at line 86 of file albaGUITransformMouse.h.

◆ CreateBehavior()

albaInteractorGenericMouse * albaGUITransformMouse::CreateBehavior ( MMI_ACTIVATOR  activator)

◆ GetIsaRotate()

albaInteractorGenericMouse * albaGUITransformMouse::GetIsaRotate ( )

◆ CreateISA()

void albaGUITransformMouse::CreateISA ( )
protected

Create interactors.

◆ CreateGui()

void albaGUITransformMouse::CreateGui ( )
protectedvirtual

Override superclass.

Reimplemented from albaGUITransformInterface.

◆ RefSysVmeChanged()

void albaGUITransformMouse::RefSysVmeChanged ( )
protectedvirtual

Override superclass.

Reimplemented from albaGUITransformInterface.

Friends And Related Function Documentation

◆ albaGUITransformMouseTest

friend class albaGUITransformMouseTest
friend

Definition at line 113 of file albaGUITransformMouse.h.

Member Data Documentation

◆ m_OldInteractor

albaInteractor* albaGUITransformMouse::m_OldInteractor
protected

Definition at line 93 of file albaGUITransformMouse.h.

◆ m_IsaCompositor

albaInteractorCompositorMouse* albaGUITransformMouse::m_IsaCompositor
protected

Definition at line 101 of file albaGUITransformMouse.h.

◆ m_IsaRotate

albaInteractorGenericMouse* albaGUITransformMouse::m_IsaRotate
protected

Definition at line 103 of file albaGUITransformMouse.h.

◆ m_IsaTranslate

albaInteractorGenericMouse* albaGUITransformMouse::m_IsaTranslate
protected

Definition at line 104 of file albaGUITransformMouse.h.

◆ m_IsaRoll

albaInteractorGenericMouse* albaGUITransformMouse::m_IsaRoll
protected

Definition at line 105 of file albaGUITransformMouse.h.

◆ m_RotationConstraintId

int albaGUITransformMouse::m_RotationConstraintId
protected

Definition at line 107 of file albaGUITransformMouse.h.

◆ m_TranslationConstraintId

int albaGUITransformMouse::m_TranslationConstraintId
protected

Definition at line 108 of file albaGUITransformMouse.h.


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