ALBA
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
albaGizmoInteractionDebugger Class Reference

#include <albaGizmoInteractionDebugger.h>

Inheritance diagram for albaGizmoInteractionDebugger:
Inheritance graph
[legend]
Collaboration diagram for albaGizmoInteractionDebugger:
Collaboration graph
[legend]

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])
 
albaGUIGetGui ()
 
- Public Member Functions inherited from albaGizmoInterface
void SetName (albaString name)
 
albaString GetName ()
 
virtual void SetInput (albaVME *vme)
 
albaVMEGetInput ()
 
void SetMediator (albaObserver *mediator)
 
albaObserverGetMediator ()
 
void SetAutoscale (bool autoscale)
 
bool GetAutoscale ()
 
void SetRenderWindowHeightPercentage (double percentage)
 
double GetRenderWindowHeightPercentage ()
 
void SetAlwaysVisible (bool alwaysVisible)
 
bool GetAlwaysVisible ()
 
void SetListener (albaObserver *listener)
 
albaObserverGetListener ()
 
virtual void OnEvent (albaEventBase *alba_event)
 
virtual void Show (bool show)
 
void SetModalityToLocal ()
 
void SetModalityToGlobal ()
 
int GetModality ()
 
virtual void SetAbsPose (albaMatrix *absPose)
 
virtual albaMatrixGetAbsPose ()
 
virtual albaGUIGetGui ()
 
- 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
 
albaInteractorCompositorMousem_GizmoInteractor
 
albaInteractorGenericMousem_LeftMouseInteractor
 
vtkLineSource * m_LineSource
 
vtkSphereSource * m_SphereSource
 
vtkPlaneSource * m_PlaneSource
 
vtkAppendPolyData * m_AppendPolyData
 
albaCurvilinearAbscissaOnSkeletonHelperm_CurvilinearAbscissaHelper
 
- Protected Attributes inherited from albaGizmoInterface
albaObserverm_Mediator
 
albaString m_Name
 
albaVMEm_InputVME
 
int m_Modality
 
albaObserverm_Listener
 
albaVMEm_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 }
 

Detailed Description

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.

Member Enumeration Documentation

◆ CONSTRAINT_MODALITY_ID

Enumerator
FREE 
BOUNDS 
SNAP_VERTEX 
CONSTRAINT_MODALITY_NUMBERS 

Definition at line 119 of file albaGizmoInteractionDebugger.h.

Constructor & Destructor Documentation

◆ albaGizmoInteractionDebugger()

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

◆ ~albaGizmoInteractionDebugger()

virtual albaGizmoInteractionDebugger::~albaGizmoInteractionDebugger ( )
virtual

Member Function Documentation

◆ SetConstraintPolylineGraph()

void albaGizmoInteractionDebugger::SetConstraintPolylineGraph ( albaVMEPolylineGraph *  constraintPolylineGraph)

Set the constraint polyline graph.

◆ SetCurvilinearAbscissa()

void albaGizmoInteractionDebugger::SetCurvilinearAbscissa ( vtkIdType  branchId,
double  s 
)

Set curvilinear abscissa along given constraint skeleton branch.

◆ GetCurvilinearAbscissa()

double albaGizmoInteractionDebugger::GetCurvilinearAbscissa ( )

Get curvilinear abscissa along given constraint skeleton branch.

◆ GetActiveBranchId()

vtkIdType albaGizmoInteractionDebugger::GetActiveBranchId ( )

Get the active branch ie the branch to which gizmo is currently constrained.

◆ SetGizmoLength()

void albaGizmoInteractionDebugger::SetGizmoLength ( double  lineLength)

Set the length of the gizmo.

◆ Show()

void albaGizmoInteractionDebugger::Show ( bool  show)
virtual

Show/Hide the gizmos using actor visibility instead of pipe creation/destruction: this is used for faster rendering.

Reimplemented from albaGizmoInterface.

◆ OnEvent()

void albaGizmoInteractionDebugger::OnEvent ( albaEventBase alba_event)
virtual

Events handling method.

Reimplemented from albaGizmoInterface.

◆ SetInput()

void albaGizmoInteractionDebugger::SetInput ( albaVME vme)
inlinevirtual

Not used since this gizmo is not moving anything.

Reimplemented from albaGizmoInterface.

Definition at line 85 of file albaGizmoInteractionDebugger.h.

◆ SetColor()

void albaGizmoInteractionDebugger::SetColor ( double  col[3])

Set the gizmo color.

◆ GetGui()

albaGUI * albaGizmoInteractionDebugger::GetGui ( )
virtual

Get the gizmo gui.

Reimplemented from albaGizmoInterface.

◆ Constructor()

void albaGizmoInteractionDebugger::Constructor ( albaVME imputVme,
albaObserver listener,
const char *  name,
bool  testMode = false 
)
protected

◆ Destructor()

void albaGizmoInteractionDebugger::Destructor ( )
protected

◆ CreateVMEGizmo()

void albaGizmoInteractionDebugger::CreateVMEGizmo ( )
protected

◆ DestroyVMEGizmo()

void albaGizmoInteractionDebugger::DestroyVMEGizmo ( )
protected

◆ CreateGizmoVTKData()

void albaGizmoInteractionDebugger::CreateGizmoVTKData ( )
protected

◆ CreateInteractor()

void albaGizmoInteractionDebugger::CreateInteractor ( )
protected

◆ LogTransformEvent()

void albaGizmoInteractionDebugger::LogTransformEvent ( albaEvent e)
protected

Member Data Documentation

◆ m_Name

albaString albaGizmoInteractionDebugger::m_Name
protected

Definition at line 107 of file albaGizmoInteractionDebugger.h.

◆ m_VmeGizmo

albaVMEGizmo* albaGizmoInteractionDebugger::m_VmeGizmo
protected

Definition at line 108 of file albaGizmoInteractionDebugger.h.

◆ m_GizmoInteractor

albaInteractorCompositorMouse* albaGizmoInteractionDebugger::m_GizmoInteractor
protected

Definition at line 109 of file albaGizmoInteractionDebugger.h.

◆ m_LeftMouseInteractor

albaInteractorGenericMouse* albaGizmoInteractionDebugger::m_LeftMouseInteractor
protected

Definition at line 110 of file albaGizmoInteractionDebugger.h.

◆ m_LineSource

vtkLineSource* albaGizmoInteractionDebugger::m_LineSource
protected

Definition at line 112 of file albaGizmoInteractionDebugger.h.

◆ m_SphereSource

vtkSphereSource* albaGizmoInteractionDebugger::m_SphereSource
protected

Definition at line 113 of file albaGizmoInteractionDebugger.h.

◆ m_PlaneSource

vtkPlaneSource* albaGizmoInteractionDebugger::m_PlaneSource
protected

Definition at line 114 of file albaGizmoInteractionDebugger.h.

◆ m_AppendPolyData

vtkAppendPolyData* albaGizmoInteractionDebugger::m_AppendPolyData
protected

Definition at line 115 of file albaGizmoInteractionDebugger.h.

◆ m_CurvilinearAbscissaHelper

albaCurvilinearAbscissaOnSkeletonHelper* albaGizmoInteractionDebugger::m_CurvilinearAbscissaHelper
protected

Definition at line 117 of file albaGizmoInteractionDebugger.h.


The documentation for this class was generated from the following file: