ALBA
|
#include <albaGizmoSlice.h>
Public Types | |
enum | GISMO_SLICE_AXIS_ID { GIZMO_SLICE_X = 0 , GIZMO_SLICE_Y , GIZMO_SLICE_Z } |
Public Types inherited from albaGizmoInterface | |
enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
Public Member Functions | |
albaGizmoSlice (albaVME *inputVme, albaObserver *Listener=NULL, const char *name="GizmoSlice", bool inverseHandle=false, double centralClipfactor=0) | |
virtual | ~albaGizmoSlice () |
void | Show (bool show) |
void | SetInput (albaVME *vme) |
void | SetColor (double col[3]) |
void | SetCentralClipFactor (double factor) |
albaVME * | GetOutput () |
void | UpdateGizmoSliceInLocalPositionOnAxis (int gizmoSliceId, int axis, double positionOnAxis, bool visibleCubeHandler=true) |
void | SetGizmoMovingModalityToBound () |
void | SetGizmoMovingModalityToSnap () |
int | GetGizmoMovingModality () |
void | SetGizmoEnableMoving (bool enable) |
void | OnEvent (albaEventBase *alba_event) |
void | GetPosition (double *slicePlaneOrigin) |
void | SetModalityToGlobal () |
void | SetPosition (albaMatrix *matrix) |
albaMatrix * | GetPosition () |
void | SetHandleCenterMatrix (albaMatrix *m) |
void | SetEnableCustomizedSnapArray (bool enable) |
void | SetCustomizedSnapArrayStep (double step) |
double * | GetBounds () |
void | SetBounds (double *val) |
Public Member Functions inherited from albaGizmoInterface | |
void | SetName (albaString name) |
albaString | GetName () |
virtual void | SetInput (albaVME *vme) |
albaVME * | GetInput () |
void | SetMediator (albaObserver *mediator) |
albaObserver * | GetMediator () |
void | SetAutoscale (bool autoscale) |
bool | GetAutoscale () |
void | SetRenderWindowHeightPercentage (double percentage) |
double | GetRenderWindowHeightPercentage () |
void | SetAlwaysVisible (bool alwaysVisible) |
bool | GetAlwaysVisible () |
void | SetListener (albaObserver *listener) |
albaObserver * | GetListener () |
virtual void | OnEvent (albaEventBase *alba_event) |
virtual void | Show (bool show) |
void | SetModalityToLocal () |
void | SetModalityToGlobal () |
int | GetModality () |
virtual void | SetAbsPose (albaMatrix *absPose) |
virtual albaMatrix * | GetAbsPose () |
virtual albaGUI * | GetGui () |
Public Member Functions inherited from albaObserver | |
albaObserver () | |
virtual | ~albaObserver () |
virtual void | OnEvent (albaEventBase *e)=0 |
Protected Types | |
enum | MOVING_MODALITY_ID { BOUND = 0 , SNAP , MOVING_MODALITY_NUMBERS } |
Protected Member Functions | |
void | CreateGizmoSlice (albaVME *imputVme, albaObserver *listener, const char *name, bool inverseHandle, double centralClipfactor) |
void | DestroyGizmoSlice () |
double | GetBorderCube () |
void | InitSnapArray (albaVME *vol, int axis) |
void | SetOnSnapArray (int axis) |
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 | |
albaString | m_Name |
long | m_Id |
albaVMEGizmo * | m_VmeGizmo |
albaInteractorCompositorMouse * | m_GizmoBehavior |
vtkDoubleArray * | m_SnapArray |
double | m_Bounds [6] |
albaMatrix * | m_GizmoHandleCenterMatrix |
vtkPoints * | m_Point |
bool | m_CustomizedSnapArrayFlag |
double | m_CustomizedArrayStep |
int | m_Axis |
int | m_MovingModality |
albaInteractorGenericMouse * | m_MouseBH |
bool | m_InverseHandle |
double | m_CentralClipFactor |
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 typically used to move volume slices.
It is reparented under the input vme ie it is working in local coordinates.
Definition at line 41 of file albaGizmoSlice.h.
Enumerator | |
---|---|
GIZMO_SLICE_X | |
GIZMO_SLICE_Y | |
GIZMO_SLICE_Z |
Definition at line 68 of file albaGizmoSlice.h.
|
protected |
Enumerator | |
---|---|
BOUND | |
SNAP | |
MOVING_MODALITY_NUMBERS |
Definition at line 137 of file albaGizmoSlice.h.
albaGizmoSlice::albaGizmoSlice | ( | albaVME * | inputVme, |
albaObserver * | Listener = NULL , |
||
const char * | name = "GizmoSlice" , |
||
bool | inverseHandle = false , |
||
double | centralClipfactor = 0 |
||
) |
|
virtual |
|
virtual |
Show/Hide the gizmos using actor visibility instead of pipe creation/destruction: this is used for faster rendering.
Reimplemented from albaGizmoInterface.
|
virtual |
This method is used to change the input vme.
Reimplemented from albaGizmoInterface.
void albaGizmoSlice::SetColor | ( | double | col[3] | ) |
Set the gizmo color.
|
inline |
Set the central clip length in order to create a less invasive gizmo.
Definition at line 60 of file albaGizmoSlice.h.
albaVME * albaGizmoSlice::GetOutput | ( | ) |
return the gizmo slice object
void albaGizmoSlice::UpdateGizmoSliceInLocalPositionOnAxis | ( | int | gizmoSliceId, |
int | axis, | ||
double | positionOnAxis, | ||
bool | visibleCubeHandler = true |
||
) |
Create the gizmo slice with its id on choosed position on choosed axis.
void albaGizmoSlice::SetGizmoMovingModalityToBound | ( | ) |
Set/Get the gizmo moving modality, default is Snap.
void albaGizmoSlice::SetGizmoMovingModalityToSnap | ( | ) |
|
inline |
Definition at line 78 of file albaGizmoSlice.h.
void albaGizmoSlice::SetGizmoEnableMoving | ( | bool | enable | ) |
|
virtual |
Events handling method.
Reimplemented from albaGizmoInterface.
void albaGizmoSlice::GetPosition | ( | double * | slicePlaneOrigin | ) |
|
inline |
Gizmo is reparented under the vme tree root, this modality is currently not supported.
Definition at line 89 of file albaGizmoSlice.h.
References albaLogMessage().
void albaGizmoSlice::SetPosition | ( | albaMatrix * | matrix | ) |
|
inline |
Definition at line 92 of file albaGizmoSlice.h.
void albaGizmoSlice::SetHandleCenterMatrix | ( | albaMatrix * | m | ) |
Set matrix of the handle.
|
inline |
Definition at line 97 of file albaGizmoSlice.h.
|
inline |
Definition at line 98 of file albaGizmoSlice.h.
|
inline |
Definition at line 100 of file albaGizmoSlice.h.
void albaGizmoSlice::SetBounds | ( | double * | val | ) |
|
protected |
|
protected |
|
protected |
|
protected |
Initialize snap array.
|
protected |
|
protected |
Definition at line 116 of file albaGizmoSlice.h.
|
protected |
Definition at line 117 of file albaGizmoSlice.h.
|
protected |
Definition at line 118 of file albaGizmoSlice.h.
|
protected |
Definition at line 119 of file albaGizmoSlice.h.
|
protected |
Definition at line 120 of file albaGizmoSlice.h.
|
protected |
Definition at line 121 of file albaGizmoSlice.h.
|
protected |
Definition at line 123 of file albaGizmoSlice.h.
|
protected |
Definition at line 124 of file albaGizmoSlice.h.
|
protected |
Definition at line 126 of file albaGizmoSlice.h.
|
protected |
Definition at line 127 of file albaGizmoSlice.h.
|
protected |
Register the gizmo axis, default is z.
Definition at line 130 of file albaGizmoSlice.h.
|
protected |
Register the gizmo behavior: BOUND means gizmo movement is free in an interval while SNAP snaps on a given array.
Definition at line 135 of file albaGizmoSlice.h.
|
protected |
Definition at line 143 of file albaGizmoSlice.h.
|
protected |
Definition at line 145 of file albaGizmoSlice.h.
|
protected |
Definition at line 147 of file albaGizmoSlice.h.