17#ifndef __albaGizmoPolylineGraph_h
18#define __albaGizmoPolylineGraph_h
42class vtkAppendPolyData;
43class vtkTransformPolyDataFilter;
45class albaVMEPolylineGraph;
57 albaObserver *Listener = NULL,
const char *name =
"GizmoPath",
bool showOnlyDirectionAxis =
false,
bool testMode =
false)
85 inline void SetConstraintPolylineGraph(albaVMEPolylineGraph* constraintPolylineGraph);
88 virtual void SetCurvilinearAbscissa(vtkIdType branchId,
double s);
91 inline double GetCurvilinearAbscissa();
94 inline vtkIdType GetActiveBranchId();;
146 vtkArrowSource* m_AxisSource[3];
147 vtkTransformPolyDataFilter* m_Axis[3];
168#pragma region inlines
196#pragma endregion inlines
Decorate input vme with curvilinear abscissa interface for albaVMEPolylineGraph constrained interacti...
vtkIdType GetActiveBranchId()
Get the active branch ie the branch to which inputVME is currently constrained.
void SetConstraintPolylineGraph(albaVMEPolylineGraph *constraintPolylineGraph)
Set the polyline graph constraint.
double GetCurvilinearAbscissa()
Get the curvilinear abscissa.
int SetCurvilinearAbscissa(vtkIdType branchId, double s)
Set the curvilinear abscissa value s on branchId branch, return ALBA_OK or ALBA_ERROR.
Implementation of the message object for the Subject/Observer design pattern.
albaEvent - Class implementing ALBA application events.
Base class for operations and views gizmos.
Gizmo Helper Object for interaction stuff debug: this class should be expanded and refactored increme...
virtual void DestroyInteractor()
Destroys the interactor of the gizmo.
virtual void SetGizmoLength(double lineLength)
Set the length of the gizmo.
vtkSphereSource * m_SphereSource
albaCurvilinearAbscissaOnSkeletonHelper * m_CurvilinearAbscissaHelper
void LogTransformEvent(albaEvent *e)
bool m_ShowOnlyDirectionAxis
albaVMEGizmo * m_VmeGizmo
virtual void OnTransform(albaEvent *e)
Handles ID_TRANSFORM event.
double GetCurvilinearAbscissa()
Get curvilinear abscissa along given constraint skeleton branch.
virtual void Show(bool show)
Show/Hide the gizmos using actor visibility instead of pipe creation/destruction: this is used for fa...
albaVMEGizmo * GetOutput()
void SetConstraintPolylineGraph(albaVMEPolylineGraph *constraintPolylineGraph)
Set the constraint polyline graph.
virtual void CreateGizmoVTKData()
Creates VTK pipeline for the gizmo.
albaBehaviorTransform * m_LeftMouseInteractor
static albaGizmoPolylineGraph * New(albaVME *inputVme, albaObserver *Listener=NULL, const char *name="GizmoPath", bool showOnlyDirectionAxis=false, bool testMode=false)
The only way to construct correctly the instance.
void SetInput(albaVME *vme)
Not used since this gizmo is not moving anything.
virtual void SetCurvilinearAbscissa(vtkIdType branchId, double s)
Set curvilinear abscissa along given constraint skeleton branch.
vtkPlaneSource * m_PlaneSource
vtkAppendPolyData * m_AppendPolyData
@ CONSTRAINT_MODALITY_NUMBERS
virtual void CreateInteractor()
Creates the interactor for the gizmo.
vtkIdType GetActiveBranchId()
Get the active branch ie the branch to which gizmo is currently constrained.
albaGizmoPolylineGraph(albaVME *inputVme, albaObserver *Listener=NULL, const char *name="GizmoPath", bool showOnlyDirectionAxis=false, bool testMode=false)
void OnEvent(albaEventBase *alba_event)
Events handling method.
virtual void Delete()
The only way to destruct correctly the instance.
virtual void InternalInitInstance()
Initializes the object.
virtual void DestroyVMEGizmo()
Destroys the gizmo.
virtual void CreateVMEGizmo()
Creates the gizmo.
virtual void DestroyGizmoVTKData()
Destroys VTK pipeline for the gizmo.
virtual void InternalRelease()
Finalizes the object.
virtual void SetColor(double col[3])
Set the gizmo color.
Interface implementing the Observer of the Subject/Observer design pattern.
albaString - performs common string operations on c-strings.