29#ifndef __albaGizmoCrossTranslate_H__
30#define __albaGizmoCrossTranslate_H__
double albaTimeStamp
type for time varying data timestamps (not for pipelines timestamps!)
Implementation of the message object for the Subject/Observer design pattern.
albaGUI * GetGui()
Return the gui to be plugged.
gui class for translation gizmo
albaGUI is a panel with function to easily create GUI.
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.
albaGizmoCrossTranslateAxis * m_GTLeftRight
albaGizmoCrossTranslatePlane * m_GTPlane
Array holding the three gizmo that performs translation on a plane.
albaGizmoCrossTranslatePlane * GetGTPlane() const
int m_Step
register step on axes
bool m_BuildGUI
Build Gizmo GUI.
albaGizmoCrossTranslateAxis * GetGTUpDown()
albaMatrix * GetAbsPose()
Get the gizmo abs pose.
albaGizmoCrossTranslateAxis * GetGTLeftRight()
void OnEventGizmoGui(albaEventBase *alba_event)
Gizmo components events handling.
int m_ConstraintModality
register axis constraint modality
void SetRefSys(albaVME *refSys)
Set the vme to be used as reference system, the vme is referenced; default ref sys is vme abs matrix.
virtual ~albaGizmoCrossTranslate()
albaGUI * GetGui()
Return gui owned by the gizmo.
albaMatrix * m_PivotPose
Pivot point position;.
void SetRenderWindowHeightPercentage(double percentage)
Superclass override.
ACTIVE_COMPONENT
gizmo components enum
int m_ActiveGizmoComponent
Register the active gizmo component at MOUSE_DOWN.
void Highlight(int component)
Highlight one component and dehighlight other components.
void SetInput(albaVME *vme)
Set input vme for the gizmo.
void Show(bool show)
Show the gizmo.
void OnEventGizmoComponents(albaEventBase *alba_event)
Gizmo components events handling.
void ConstrainTranslationToInputVMEBoundsOn()
Constrain translation to Input VME bounds (default to true): the gizmo will move inside the input vol...
void OnEvent(albaEventBase *alba_event)
Events handling.
void SetStep(double step)
Set the step value for snap step constraint type for the given axis.
void SetAutoscale(bool autoscale)
Superclass override.
albaGizmoCrossTranslate(albaVME *input, albaObserver *listener=NULL, bool BuildGUI=true, int normal=X)
void SendTransformMatrixFromGui(albaEventBase *alba_event)
Send matrix to postmultiply to listener.
int m_Normal
Normal to the cross gizmo.
albaGizmoCrossTranslateAxis * m_GTUpDown
Array holding the three gizmo that performs translation on a vector.
void SetConstraintModality(int constrainModality)
Allowed constraint modality are: LOCK, FREE, BOUNDS, SNAP_STEP, SNAP_ARRAY defined in albaInteractorC...
albaGUIGizmoTranslate * m_GuiGizmoTranslate
Gizmo gui.
void SetAlwaysVisible(bool alwaysVisible)
Superclass override.
TRANSLATE_ON_PLANE
gizmo components enum
int GetConstraintModality()
void ConstrainTranslationToInputVMEBoundsOff()
bool m_ConstrainTranslationToInputVMEBounds
Register if translation is constrained to input vme bounds.
void SetAbsPose(albaMatrix *absPose, albaTimeStamp ts=-1)
Set/Get the gizmo pose: works by setting the pose to all gizmo subcomponents.
Base class for operations and views gizmos.
albaMatrix - Time stamped 4x4 Matrix.
Interface implementing the Observer of the Subject/Observer design pattern.