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

#include <albaGizmoCrossRotate.h>

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

Public Member Functions

 albaGizmoCrossRotate (albaVME *input, albaObserver *listener=NULL, bool buildGUI=true, int axis=X)
 
virtual ~albaGizmoCrossRotate ()
 
void SetInput (albaVME *vme)
 
void SetRenderWindowHeightPercentage (double percentage)
 
void SetAutoscale (bool autoscale)
 
void SetAlwaysVisible (bool alwaysVisible)
 
void OnEvent (albaEventBase *alba_event)
 
void Show (bool show)
 
void SetAbsPose (albaMatrix *absPose, bool applyPoseToFans=true)
 
albaMatrixGetAbsPose ()
 
albaInteractorGenericInterfaceGetInteractor (int axis)
 
void SetRefSys (albaVME *refSys)
 
albaVMEGetRefSys ()
 
albaGUIGetGui ()
 
void SetCircleFanRadius (double radius)
 
double GetCircleFanRadius ()
 
albaGizmoCrossRotateAxisGetGizmoCrossRotateAxisNS ()
 
albaGizmoCrossRotateAxisGetGizmoCrossRotateAxisEW ()
 
- Public Member Functions inherited from albaGizmoInterface
void SetName (albaString name)
 
albaString GetName ()
 
virtual void SetInput (albaVME *vme)
 
albaVMEGetInput ()
 
void SetMediator (albaObserver *mediator)
 
albaObserverGetMediator ()
 
void SetAutoscale (bool autoscale)
 
bool GetAutoscale ()
 
void SetRenderWindowHeightPercentage (double percentage)
 
double GetRenderWindowHeightPercentage ()
 
void SetAlwaysVisible (bool alwaysVisible)
 
bool GetAlwaysVisible ()
 
void SetListener (albaObserver *listener)
 
albaObserverGetListener ()
 
virtual void OnEvent (albaEventBase *alba_event)
 
virtual void Show (bool show)
 
void SetModalityToLocal ()
 
void SetModalityToGlobal ()
 
int GetModality ()
 
virtual void SetAbsPose (albaMatrix *absPose)
 
virtual albaMatrixGetAbsPose ()
 
virtual albaGUIGetGui ()
 
- Public Member Functions inherited from albaObserver
 albaObserver ()
 
virtual ~albaObserver ()
 
virtual void OnEvent (albaEventBase *e)=0
 

Protected Types

enum  AXIS { X = 0 , Y , Z }
 
enum  ACTIVE_COMPONENT {
  NONE = -1 , X_AXIS = 0 , Y_AXIS , Z_AXIS ,
  NUM_COMPONENTS
}
 

Protected Member Functions

void SendTransformMatrixFromGui (albaEventBase *alba_event)
 
void OnEventGizmoGui (albaEventBase *alba_event)
 
void OnEventGizmoComponents (albaEventBase *alba_event)
 
void Highlight (bool highlight)
 
- Protected Member Functions inherited from albaGizmoInterface
 albaGizmoInterface ()
 
virtual ~albaGizmoInterface ()
 
void SendTransformMatrix (albaMatrix *matrix, int eventId, long arg)
 
virtual void OnEventGizmoGui (albaEventBase *alba_event)
 
virtual void OnEventGizmoComponents (albaEventBase *alba_event)
 

Protected Attributes

albaGUIGizmoRotatem_GuiGizmoRotate
 
albaGizmoCrossRotateAxism_GizmoCrossRotateAxisNS
 
albaGizmoCrossRotateAxism_GizmoCrossRotateAxisEW
 
albaGizmoCrossRotateFanm_GizmoCrossRotateFan
 
bool m_BuildGUI
 
double m_CircleFanRadius
 
- Protected Attributes inherited from albaGizmoInterface
albaObserverm_Mediator
 
albaString m_Name
 
albaVMEm_InputVME
 
int m_Modality
 
albaObserverm_Listener
 
albaVMEm_RefSysVME
 
bool m_Visibility
 
double m_RenderWindowHeightPercentage
 
bool m_AlwaysVisible
 
bool m_Autoscale
 

Additional Inherited Members

- Public Types inherited from albaGizmoInterface
enum  MODALITY { G_LOCAL = 0 , G_GLOBAL }
 

Detailed Description

Gizmo used to perform constrained rotation around an axis.

Definition at line 53 of file albaGizmoCrossRotate.h.

Member Enumeration Documentation

◆ AXIS

gizmo components enum

Enumerator

Definition at line 130 of file albaGizmoCrossRotate.h.

◆ ACTIVE_COMPONENT

Enumerator
NONE 
X_AXIS 
Y_AXIS 
Z_AXIS 
NUM_COMPONENTS 

Definition at line 132 of file albaGizmoCrossRotate.h.

Constructor & Destructor Documentation

◆ albaGizmoCrossRotate()

albaGizmoCrossRotate::albaGizmoCrossRotate ( albaVME input,
albaObserver listener = NULL,
bool  buildGUI = true,
int  axis = X 
)

◆ ~albaGizmoCrossRotate()

virtual albaGizmoCrossRotate::~albaGizmoCrossRotate ( )
virtual

Member Function Documentation

◆ SetInput()

void albaGizmoCrossRotate::SetInput ( albaVME vme)
virtual

Set input vme for the gizmo.

Reimplemented from albaGizmoInterface.

◆ SetRenderWindowHeightPercentage()

void albaGizmoCrossRotate::SetRenderWindowHeightPercentage ( double  percentage)

Superclass override.

◆ SetAutoscale()

void albaGizmoCrossRotate::SetAutoscale ( bool  autoscale)

Superclass override.

◆ SetAlwaysVisible()

void albaGizmoCrossRotate::SetAlwaysVisible ( bool  alwaysVisible)

Superclass override.

◆ OnEvent()

void albaGizmoCrossRotate::OnEvent ( albaEventBase alba_event)
virtual

Events handling.

Reimplemented from albaGizmoInterface.

◆ Show()

void albaGizmoCrossRotate::Show ( bool  show)
virtual

Show the gizmo.

Reimplemented from albaGizmoInterface.

◆ SetAbsPose()

void albaGizmoCrossRotate::SetAbsPose ( albaMatrix absPose,
bool  applyPoseToFans = true 
)

Set the gizmo pose.

◆ GetAbsPose()

albaMatrix * albaGizmoCrossRotate::GetAbsPose ( )
virtual

Get the gizmo abs pose.

Reimplemented from albaGizmoInterface.

◆ GetInteractor()

albaInteractorGenericInterface * albaGizmoCrossRotate::GetInteractor ( int  axis)

Get the Interactor asscociated to each axis.

◆ SetRefSys()

void albaGizmoCrossRotate::SetRefSys ( albaVME refSys)

Set the vme to be used as reference system, the vme is referenced; default ref sys is vme abs matrix.

◆ GetRefSys()

albaVME * albaGizmoCrossRotate::GetRefSys ( )

◆ GetGui()

albaGUI * albaGizmoCrossRotate::GetGui ( )
inlinevirtual

Return gui owned by the gizmo.

Reimplemented from albaGizmoInterface.

Definition at line 107 of file albaGizmoCrossRotate.h.

References albaGUIGizmoInterface::GetGui(), and m_GuiGizmoRotate.

Here is the call graph for this function:

◆ SetCircleFanRadius()

void albaGizmoCrossRotate::SetCircleFanRadius ( double  radius)

Modify radius of circles.

◆ GetCircleFanRadius()

double albaGizmoCrossRotate::GetCircleFanRadius ( )

◆ GetGizmoCrossRotateAxisNS()

albaGizmoCrossRotateAxis * albaGizmoCrossRotate::GetGizmoCrossRotateAxisNS ( )
inline

Definition at line 113 of file albaGizmoCrossRotate.h.

References m_GizmoCrossRotateAxisNS.

◆ GetGizmoCrossRotateAxisEW()

albaGizmoCrossRotateAxis * albaGizmoCrossRotate::GetGizmoCrossRotateAxisEW ( )
inline

Definition at line 114 of file albaGizmoCrossRotate.h.

References m_GizmoCrossRotateAxisEW.

◆ SendTransformMatrixFromGui()

void albaGizmoCrossRotate::SendTransformMatrixFromGui ( albaEventBase alba_event)
protected

Send matrix to postmultiply to listener.

◆ OnEventGizmoGui()

void albaGizmoCrossRotate::OnEventGizmoGui ( albaEventBase alba_event)
protectedvirtual

Gizmo components events handling.

Reimplemented from albaGizmoInterface.

◆ OnEventGizmoComponents()

void albaGizmoCrossRotate::OnEventGizmoComponents ( albaEventBase alba_event)
protectedvirtual

Gizmo components events handling.

Reimplemented from albaGizmoInterface.

◆ Highlight()

void albaGizmoCrossRotate::Highlight ( bool  highlight)
protected

Highlight one component and dehighlight other components.

Member Data Documentation

◆ m_GuiGizmoRotate

albaGUIGizmoRotate* albaGizmoCrossRotate::m_GuiGizmoRotate
protected

Definition at line 117 of file albaGizmoCrossRotate.h.

Referenced by GetGui().

◆ m_GizmoCrossRotateAxisNS

albaGizmoCrossRotateAxis* albaGizmoCrossRotate::m_GizmoCrossRotateAxisNS
protected

Array holding the three gizmo that performs rotation.

Definition at line 139 of file albaGizmoCrossRotate.h.

Referenced by GetGizmoCrossRotateAxisNS().

◆ m_GizmoCrossRotateAxisEW

albaGizmoCrossRotateAxis* albaGizmoCrossRotate::m_GizmoCrossRotateAxisEW
protected

Definition at line 140 of file albaGizmoCrossRotate.h.

Referenced by GetGizmoCrossRotateAxisEW().

◆ m_GizmoCrossRotateFan

albaGizmoCrossRotateFan* albaGizmoCrossRotate::m_GizmoCrossRotateFan
protected

The rotating fan gizmo.

Definition at line 143 of file albaGizmoCrossRotate.h.

◆ m_BuildGUI

bool albaGizmoCrossRotate::m_BuildGUI
protected

Build Gizmo GUI.

Definition at line 146 of file albaGizmoCrossRotate.h.

◆ m_CircleFanRadius

double albaGizmoCrossRotate::m_CircleFanRadius
protected

Definition at line 149 of file albaGizmoCrossRotate.h.


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