17#ifndef __albaGizmoSlice_h
18#define __albaGizmoSlice_h
ALBA_EXPORT void albaLogMessage(const char *format,...)
write a message in the log area
Implementation of the message object for the Subject/Observer design pattern.
Base class for operations and views gizmos.
Gizmo typically used to move volume slices.
int m_MovingModality
Register the gizmo behavior: BOUND means gizmo movement is free in an interval while SNAP snaps on a ...
void InitSnapArray(albaVME *vol, int axis)
Initialize snap array.
void UpdateGizmoSliceInLocalPositionOnAxis(int gizmoSliceId, int axis, double positionOnAxis, bool visibleCubeHandler=true)
Create the gizmo slice with its id on choosed position on choosed axis.
void CreateGizmoSlice(albaVME *imputVme, albaObserver *listener, const char *name, bool inverseHandle, double centralClipfactor)
void SetInput(albaVME *vme)
This method is used to change the input vme.
void GetPosition(double *slicePlaneOrigin)
void SetGizmoMovingModalityToSnap()
void SetGizmoMovingModalityToBound()
Set/Get the gizmo moving modality, default is Snap.
void SetCentralClipFactor(double factor)
Set the central clip length in order to create a less invasive gizmo.
void SetGizmoEnableMoving(bool enable)
double m_CustomizedArrayStep
albaMatrix * m_GizmoHandleCenterMatrix
void SetHandleCenterMatrix(albaMatrix *m)
Set matrix of the handle.
vtkDoubleArray * m_SnapArray
void OnEvent(albaEventBase *alba_event)
Events handling method.
int GetGizmoMovingModality()
void SetModalityToGlobal()
Gizmo is reparented under the vme tree root, this modality is currently not supported.
albaGizmoSlice(albaVME *inputVme, albaObserver *Listener=NULL, const char *name="GizmoSlice", bool inverseHandle=false, double centralClipfactor=0)
albaInteractorGenericMouse * m_MouseBH
albaVME * GetOutput()
return the gizmo slice object
void SetColor(double col[3])
Set the gizmo color.
albaInteractorCompositorMouse * m_GizmoBehavior
double m_CentralClipFactor
void SetBounds(double *val)
@ MOVING_MODALITY_NUMBERS
virtual ~albaGizmoSlice()
void Show(bool show)
Show/Hide the gizmos using actor visibility instead of pipe creation/destruction: this is used for fa...
albaVMEGizmo * m_VmeGizmo
bool m_CustomizedSnapArrayFlag
void SetCustomizedSnapArrayStep(double step)
albaMatrix * GetPosition()
void SetOnSnapArray(int axis)
void SetEnableCustomizedSnapArray(bool enable)
void SetPosition(albaMatrix *matrix)
int m_Axis
Register the gizmo axis, default is z.
Associates instances of albaInteractorGenericMouse to mouse buttons and ctrl/shift keys combinations.
Constrained interaction with mouse device.
albaMatrix - Time stamped 4x4 Matrix.
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.