17#ifndef __albaGizmoTranslate_H__
18#define __albaGizmoTranslate_H__
117 void Show(
bool showX,
bool showY,
bool showZ);
157 enum PLANE {XNORMAL = 0, YNORMAL, ZNORMAL};
158 enum ACTIVE_COMPONENT {NONE = -1, X_AXIS = 0, Y_AXIS, Z_AXIS, XN_PLANE, YN_PLANE, ZN_PLANE};
185 friend class albaGizmoTranslateTest;
188 int m_ConstraintModality[3];
double albaTimeStamp
type for time varying data timestamps (not for pipelines timestamps!)
Implementation of the message object for the Subject/Observer design pattern.
gui class for translation gizmo
albaGUI is a panel with function to easily create GUI.
Base class for operations and views gizmos.
Basic gizmo component used to perform constrained translation on one axis.
Basic gizmo component used to perform constrained translation on a plane.
Gizmo used to perform constrained translation along the x, yz axis or the xy, xz, yz plane.
virtual ~albaGizmoTranslate()
albaGUI * GetGui()
Return gui owned by the gizmo.
void OnEvent(albaEventBase *alba_event)
Events handling.
void SetAbsPose(albaMatrix *absPose, albaTimeStamp ts=-1)
Set/Get the gizmo pose.
void SetRenderWindowHeightPercentage(double percentage)
Superclass override.
void SetInput(albaVME *vme)
Set input vme for the gizmo.
int GetConstraintModality(int axis)
void SetStep(int axis, double step)
Set the step value for snap step constraint type for the given axis.
albaMatrix * m_PivotPose
Pivot point position;.
void Show(bool show)
Show the gizmo.
albaGizmoTranslate(albaVME *input, albaObserver *listener=NULL, bool BuildGUI=true)
void SetAutoscale(bool autoscale)
Superclass override.
albaMatrix * GetAbsPose()
Get the gizmo abs pose.
void OnEventGizmoComponents(albaEventBase *alba_event)
Gizmo components events handling.
AXIS
gizmo components enum
bool m_BuildGUI
Build Gizmo GUI.
void OnEventGizmoGui(albaEventBase *alba_event)
Gizmo components events handling.
int m_ActiveGizmoComponent
Register the active gizmo component at MOUSE_DOWN.
void Highlight(int component)
Highlight one component and dehighlight other components.
void Show(bool showX, bool showY, bool showZ)
Show the gizmo.
void SetAlwaysVisible(bool alwaysVisible)
Superclass override.
void SetConstraintModality(int axis, int constrainModality)
Set the constraint modality for the given axis; allowed constraint modality are: LOCK,...
albaGUIGizmoTranslate * m_GuiGizmoTranslate
void SendTransformMatrixFromGui(albaEventBase *alba_event)
Send matrix to postmultiply to listener.
void SetRefSys(albaVME *refSys)
Set the vme to be used as reference system, the vme is referenced; default ref sys is vme abs matrix.
albaMatrix - Time stamped 4x4 Matrix.
Interface implementing the Observer of the Subject/Observer design pattern.