|
ALBA
|
#include <albaGizmoCrossTranslate.h>


Public Types | |
| enum | NORMAL { X = 0 , Y , Z } |
Public Types inherited from albaGizmoInterface | |
| enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
Protected Types | |
| enum | TRANSLATE_ON_PLANE { XNORMAL = 0 , YNORMAL , ZNORMAL } |
| enum | ACTIVE_COMPONENT { NONE = -1 , TRANSLATE_UP_DOWN = 0 , TRANSLATE_LEFT_RIGHT = 1 , TRANSLATE_ON_PLANE = 3 } |
Protected Member Functions | |
| void | OnEventGizmoGui (albaEventBase *alba_event) |
| void | OnEventGizmoComponents (albaEventBase *alba_event) |
| void | Highlight (int component) |
| void | SendTransformMatrixFromGui (albaEventBase *alba_event) |
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 | |
| int | m_Normal |
| bool | m_ConstrainTranslationToInputVMEBounds |
| albaGUIGizmoTranslate * | m_GuiGizmoTranslate |
| albaGizmoCrossTranslateAxis * | m_GTUpDown |
| albaGizmoCrossTranslateAxis * | m_GTLeftRight |
| albaGizmoCrossTranslatePlane * | m_GTPlane |
| int | m_ActiveGizmoComponent |
| albaMatrix * | m_PivotPose |
| bool | m_BuildGUI |
| int | m_ConstraintModality |
| int | m_Step |
Protected Attributes inherited from albaGizmoInterface | |
| albaObserver * | m_Mediator |
| albaString | m_Name |
| albaVME * | m_InputVME |
| int | m_Modality |
| albaObserver * | m_Listener |
| albaVME * | m_RefSysVME |
| bool | m_Visibility |
| double | m_RenderWindowHeightPercentage |
| bool | m_AlwaysVisible |
| bool | m_Autoscale |
Gizmo used to perform constrained translation.
Definition at line 52 of file albaGizmoCrossTranslate.h.
| Enumerator | |
|---|---|
| X | |
| Y | |
| Z | |
Definition at line 57 of file albaGizmoCrossTranslate.h.
|
protected |
gizmo components enum
| Enumerator | |
|---|---|
| XNORMAL | |
| YNORMAL | |
| ZNORMAL | |
Definition at line 143 of file albaGizmoCrossTranslate.h.
|
protected |
gizmo components enum
up o o O \_/
left right
down
World Coordinates
Z/ \ | .—> X Y
| Enumerator | |
|---|---|
| NONE | |
| TRANSLATE_UP_DOWN | |
| TRANSLATE_LEFT_RIGHT | |
| TRANSLATE_ON_PLANE | |
Definition at line 169 of file albaGizmoCrossTranslate.h.
| albaGizmoCrossTranslate::albaGizmoCrossTranslate | ( | albaVME * | input, |
| albaObserver * | listener = NULL, |
||
| bool | BuildGUI = true, |
||
| int | normal = X |
||
| ) |
|
virtual |
|
virtual |
Set input vme for the gizmo.
Reimplemented from albaGizmoInterface.
| void albaGizmoCrossTranslate::SetRenderWindowHeightPercentage | ( | double | percentage | ) |
Superclass override.
| void albaGizmoCrossTranslate::SetAutoscale | ( | bool | autoscale | ) |
Superclass override.
| void albaGizmoCrossTranslate::SetAlwaysVisible | ( | bool | alwaysVisible | ) |
Superclass override.
|
inline |
Constrain translation to Input VME bounds (default to true): the gizmo will move inside the input volume only
Definition at line 76 of file albaGizmoCrossTranslate.h.
References m_ConstrainTranslationToInputVMEBounds.
|
inline |
Definition at line 77 of file albaGizmoCrossTranslate.h.
References m_ConstrainTranslationToInputVMEBounds.
|
virtual |
Events handling.
Reimplemented from albaGizmoInterface.
|
virtual |
Show the gizmo.
Reimplemented from albaGizmoInterface.
| void albaGizmoCrossTranslate::SetAbsPose | ( | albaMatrix * | absPose, |
| albaTimeStamp | ts = -1 |
||
| ) |
Set/Get the gizmo pose: works by setting the pose to all gizmo subcomponents.
|
virtual |
Get the gizmo abs pose.
Reimplemented from albaGizmoInterface.
| void albaGizmoCrossTranslate::SetRefSys | ( | albaVME * | refSys | ) |
Set the vme to be used as reference system, the vme is referenced; default ref sys is vme abs matrix.
| albaVME * albaGizmoCrossTranslate::GetRefSys | ( | ) |
|
inlinevirtual |
Return gui owned by the gizmo.
Reimplemented from albaGizmoInterface.
Definition at line 108 of file albaGizmoCrossTranslate.h.
References albaGUIGizmoInterface::GetGui(), and m_GuiGizmoTranslate.

| void albaGizmoCrossTranslate::SetConstraintModality | ( | int | constrainModality | ) |
Allowed constraint modality are: LOCK, FREE, BOUNDS, SNAP_STEP, SNAP_ARRAY defined in albaInteractorConstraint.
| int albaGizmoCrossTranslate::GetConstraintModality | ( | ) |
| void albaGizmoCrossTranslate::SetStep | ( | double | step | ) |
Set the step value for snap step constraint type for the given axis.
| int albaGizmoCrossTranslate::GetStep | ( | ) |
|
inline |
Definition at line 120 of file albaGizmoCrossTranslate.h.
References m_GTUpDown.
|
inline |
Definition at line 121 of file albaGizmoCrossTranslate.h.
References m_GTLeftRight.
|
inline |
Definition at line 122 of file albaGizmoCrossTranslate.h.
References m_GTPlane.
|
protectedvirtual |
Gizmo components events handling.
Reimplemented from albaGizmoInterface.
|
protectedvirtual |
Gizmo components events handling.
Reimplemented from albaGizmoInterface.
|
protected |
Highlight one component and dehighlight other components.
|
protected |
Send matrix to postmultiply to listener.
|
protected |
Normal to the cross gizmo.
Definition at line 127 of file albaGizmoCrossTranslate.h.
|
protected |
Register if translation is constrained to input vme bounds.
Definition at line 130 of file albaGizmoCrossTranslate.h.
Referenced by ConstrainTranslationToInputVMEBoundsOff(), and ConstrainTranslationToInputVMEBoundsOn().
|
protected |
|
protected |
Array holding the three gizmo that performs translation on a vector.
Definition at line 176 of file albaGizmoCrossTranslate.h.
Referenced by GetGTUpDown().
|
protected |
Definition at line 177 of file albaGizmoCrossTranslate.h.
Referenced by GetGTLeftRight().
|
protected |
Array holding the three gizmo that performs translation on a plane.
Definition at line 179 of file albaGizmoCrossTranslate.h.
Referenced by GetGTPlane().
|
protected |
Register the active gizmo component at MOUSE_DOWN.
Definition at line 183 of file albaGizmoCrossTranslate.h.
|
protected |
Pivot point position;.
Definition at line 187 of file albaGizmoCrossTranslate.h.
|
protected |
Build Gizmo GUI.
Definition at line 193 of file albaGizmoCrossTranslate.h.
|
protected |
register axis constraint modality
Definition at line 196 of file albaGizmoCrossTranslate.h.
|
protected |
register step on axes
Definition at line 199 of file albaGizmoCrossTranslate.h.