ALBA
|
#include <albaGizmoInteractionDebugger.h>
Public Member Functions | |
albaGizmoInteractionDebugger (albaVME *inputVme, albaObserver *Listener=NULL, const char *name="GizmoPath", bool testMode=false) | |
virtual | ~albaGizmoInteractionDebugger () |
void | SetConstraintPolylineGraph (albaVMEPolylineGraph *constraintPolylineGraph) |
void | SetCurvilinearAbscissa (vtkIdType branchId, double s) |
double | GetCurvilinearAbscissa () |
vtkIdType | GetActiveBranchId () |
void | SetGizmoLength (double lineLength) |
void | Show (bool show) |
void | OnEvent (albaEventBase *alba_event) |
void | SetInput (albaVME *vme) |
void | SetColor (double col[3]) |
albaGUI * | GetGui () |
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 | CONSTRAINT_MODALITY_ID { FREE = 0 , BOUNDS , SNAP_VERTEX , CONSTRAINT_MODALITY_NUMBERS } |
Protected Member Functions | |
void | Constructor (albaVME *imputVme, albaObserver *listener, const char *name, bool testMode=false) |
void | Destructor () |
void | CreateVMEGizmo () |
void | DestroyVMEGizmo () |
void | CreateGizmoVTKData () |
void | CreateInteractor () |
void | LogTransformEvent (albaEvent *e) |
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 |
albaVMEGizmo * | m_VmeGizmo |
albaInteractorCompositorMouse * | m_GizmoInteractor |
albaInteractorGenericMouse * | m_LeftMouseInteractor |
vtkLineSource * | m_LineSource |
vtkSphereSource * | m_SphereSource |
vtkPlaneSource * | m_PlaneSource |
vtkAppendPolyData * | m_AppendPolyData |
albaCurvilinearAbscissaOnSkeletonHelper * | m_CurvilinearAbscissaHelper |
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 |
Additional Inherited Members | |
Public Types inherited from albaGizmoInterface | |
enum | MODALITY { G_LOCAL = 0 , G_GLOBAL } |
Gizmo Helper Object for interaction stuff debug: this class should be expanded and refactored incrementally to ease interaction stuff debug.
See also albaOpInteractionDebugger
Definition at line 53 of file albaGizmoInteractionDebugger.h.
|
protected |
Enumerator | |
---|---|
FREE | |
BOUNDS | |
SNAP_VERTEX | |
CONSTRAINT_MODALITY_NUMBERS |
Definition at line 119 of file albaGizmoInteractionDebugger.h.
albaGizmoInteractionDebugger::albaGizmoInteractionDebugger | ( | albaVME * | inputVme, |
albaObserver * | Listener = NULL , |
||
const char * | name = "GizmoPath" , |
||
bool | testMode = false |
||
) |
inputVME is used just to put the gizmo on the vme tree: this gizmo is not moving anything but itself
|
virtual |
void albaGizmoInteractionDebugger::SetConstraintPolylineGraph | ( | albaVMEPolylineGraph * | constraintPolylineGraph | ) |
Set the constraint polyline graph.
void albaGizmoInteractionDebugger::SetCurvilinearAbscissa | ( | vtkIdType | branchId, |
double | s | ||
) |
Set curvilinear abscissa along given constraint skeleton branch.
double albaGizmoInteractionDebugger::GetCurvilinearAbscissa | ( | ) |
Get curvilinear abscissa along given constraint skeleton branch.
vtkIdType albaGizmoInteractionDebugger::GetActiveBranchId | ( | ) |
Get the active branch ie the branch to which gizmo is currently constrained.
void albaGizmoInteractionDebugger::SetGizmoLength | ( | double | lineLength | ) |
Set the length of the gizmo.
|
virtual |
Show/Hide the gizmos using actor visibility instead of pipe creation/destruction: this is used for faster rendering.
Reimplemented from albaGizmoInterface.
|
virtual |
Events handling method.
Reimplemented from albaGizmoInterface.
|
inlinevirtual |
Not used since this gizmo is not moving anything.
Reimplemented from albaGizmoInterface.
Definition at line 85 of file albaGizmoInteractionDebugger.h.
void albaGizmoInteractionDebugger::SetColor | ( | double | col[3] | ) |
Set the gizmo color.
|
virtual |
Get the gizmo gui.
Reimplemented from albaGizmoInterface.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 107 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 108 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 109 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 110 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 112 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 113 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 114 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 115 of file albaGizmoInteractionDebugger.h.
|
protected |
Definition at line 117 of file albaGizmoInteractionDebugger.h.