ALBA
albaGizmoInteractionDebugger.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: ALBA (Agile Library for Biomedical Applications)
4 Module: albaGizmoInteractionDebugger
5 Authors: Stefano Perticoni
6
7 Copyright (c) BIC
8 All rights reserved. See Copyright.txt or
9
10
11 This software is distributed WITHOUT ANY WARRANTY; without even
12 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13 PURPOSE. See the above copyright notice for more information.
14
15=========================================================================*/
16
17#ifndef __albaGizmoInteractionDebugger_h
18#define __albaGizmoInteractionDebugger_h
19
20
21//----------------------------------------------------------------------------
22// Include:
23//----------------------------------------------------------------------------
24#include "albaDefines.h"
25#include "albaGizmoInterface.h"
26#include "albaMatrix.h"
28
29//---------------------------------------------------------------------------
30// forward refs:
31//---------------------------------------------------------------------------
33
34
35class albaEvent;
36class albaVME;
37class albaVMEGizmo;
38class albaVME;
39
40class vtkLineSource;
41class vtkSphereSource;
42class vtkPlaneSource;
43class vtkAppendPolyData;
44
45class albaVMEPolylineGraph;
47
53{
54public:
55
57 albaGizmoInteractionDebugger(albaVME* inputVme, albaObserver *Listener = NULL, const char *name = "GizmoPath", bool testMode = false);
58
60
62 void SetConstraintPolylineGraph(albaVMEPolylineGraph* constraintPolylineGraph);
63
65 void SetCurvilinearAbscissa(vtkIdType branchId, double s);
66
69
71 vtkIdType GetActiveBranchId();;
72
74 void SetGizmoLength (double lineLength);
75
78 void Show(bool show) ;
79
81 void OnEvent(albaEventBase *alba_event);
82
84 void SetInput(albaVME *vme) {return;};
85
87 void SetColor(double col[3]);
88
91
92protected:
93
94
95
96 void Constructor(albaVME *imputVme, albaObserver *listener, const char *name, bool testMode = false);
97 void Destructor();
98
103
105
107 albaVMEGizmo *m_VmeGizmo;
109
110 vtkLineSource *m_LineSource;
111 vtkSphereSource *m_SphereSource;
112 vtkPlaneSource *m_PlaneSource;
113 vtkAppendPolyData *m_AppendPolyData;
114
116
118 {
119 FREE = 0,
123 };
124
125};
126
127#endif
Constrained interaction with mouse device: the left button moves the VME (see OnLeftButtonDown).
Decorate input vme with curvilinear abscissa interface for albaVMEPolylineGraph constrained interacti...
Implementation of the message object for the Subject/Observer design pattern.
Definition: albaEventBase.h:49
albaEvent - Class implementing ALBA application events.
Definition: albaEvent.h:55
albaGUI is a panel with function to easily create GUI.
Definition: albaGUI.h:110
Gizmo Helper Object for interaction stuff debug: this class should be expanded and refactored increme...
albaBehaviorTransform * m_LeftMouseInteractor
void SetGizmoLength(double lineLength)
Set the length of the gizmo.
void SetConstraintPolylineGraph(albaVMEPolylineGraph *constraintPolylineGraph)
Set the constraint polyline graph.
albaCurvilinearAbscissaOnSkeletonHelper * m_CurvilinearAbscissaHelper
void SetCurvilinearAbscissa(vtkIdType branchId, double s)
Set curvilinear abscissa along given constraint skeleton branch.
void SetColor(double col[3])
Set the gizmo color.
void LogTransformEvent(albaEvent *e)
void OnEvent(albaEventBase *alba_event)
Events handling method.
albaGUI * GetGui()
Get the gizmo gui.
void Show(bool show)
Show/Hide the gizmos using actor visibility instead of pipe creation/destruction: this is used for fa...
void SetInput(albaVME *vme)
Not used since this gizmo is not moving anything.
vtkIdType GetActiveBranchId()
Get the active branch ie the branch to which gizmo is currently constrained.
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
double GetCurvilinearAbscissa()
Get curvilinear abscissa along given constraint skeleton branch.
void Constructor(albaVME *imputVme, albaObserver *listener, const char *name, bool testMode=false)
Base class for operations and views gizmos.
Interface implementing the Observer of the Subject/Observer design pattern.
Definition: albaObserver.h:36
albaString - performs common string operations on c-strings.
Definition: albaString.h:43
albaVME -
Definition: albaVME.h:150