ALBA
|
#include <albaCurvilinearAbscissaOnSkeletonHelper.h>
Public Member Functions | |
albaCurvilinearAbscissaOnSkeletonHelper (albaVME *inputVME, albaObserver *listener=NULL, bool testMode=false) | |
void | SetConstraintPolylineGraph (albaVMEPolylineGraph *constraintPolylineGraph) |
albaVMEPolylineGraph * | GetSetConstraintPolylineGraph () |
int | SetCurvilinearAbscissa (vtkIdType branchId, double s) |
double | GetCurvilinearAbscissa () |
vtkIdType | GetActiveBranchId () |
void | MoveOnSkeleton (albaEvent *mouseEvent) |
~albaCurvilinearAbscissaOnSkeletonHelper () | |
virtual void | OnEvent (albaEventBase *alba_event) |
albaGUI * | GetGui () |
virtual void | EnableWidgets (bool enable) |
Decorate input vme with curvilinear abscissa interface for albaVMEPolylineGraph constrained interaction.
Definition at line 38 of file albaCurvilinearAbscissaOnSkeletonHelper.h.
albaCurvilinearAbscissaOnSkeletonHelper::albaCurvilinearAbscissaOnSkeletonHelper | ( | albaVME * | inputVME, |
albaObserver * | listener = NULL , |
||
bool | testMode = false |
||
) |
Pass the vme you want to decorate with curvilinear abscissa interface.
albaCurvilinearAbscissaOnSkeletonHelper::~albaCurvilinearAbscissaOnSkeletonHelper | ( | ) |
void albaCurvilinearAbscissaOnSkeletonHelper::SetConstraintPolylineGraph | ( | albaVMEPolylineGraph * | constraintPolylineGraph | ) |
Set the polyline graph constraint.
Referenced by albaGizmoPolylineGraph::SetConstraintPolylineGraph().
|
inline |
Get the polyline graph constraint.
Definition at line 49 of file albaCurvilinearAbscissaOnSkeletonHelper.h.
int albaCurvilinearAbscissaOnSkeletonHelper::SetCurvilinearAbscissa | ( | vtkIdType | branchId, |
double | s | ||
) |
Set the curvilinear abscissa value s on branchId branch, return ALBA_OK or ALBA_ERROR.
Referenced by albaGizmoPolylineGraph::SetCurvilinearAbscissa().
|
inline |
Get the curvilinear abscissa.
Definition at line 55 of file albaCurvilinearAbscissaOnSkeletonHelper.h.
Referenced by albaGizmoPolylineGraph::GetCurvilinearAbscissa().
|
inline |
Get the active branch ie the branch to which inputVME is currently constrained.
Definition at line 58 of file albaCurvilinearAbscissaOnSkeletonHelper.h.
Referenced by albaGizmoPolylineGraph::GetActiveBranchId().
void albaCurvilinearAbscissaOnSkeletonHelper::MoveOnSkeleton | ( | albaEvent * | mouseEvent | ) |
Move input vme constrained to skeleton in response to mouse events: use in your client as:
Client::OnEvent(e) { case ID_TRANSFORM: { m_CurvilinearAbscissaHelper->MoveOnSkeleton(e); } }
where e is mouse move event coming from the vme interactor. See albaGizmoInteractionDebugger and albaOpInteractionDebugger for example usage.
|
virtual |
GUI Stuff.
Implements albaObserver.
|
inline |
Return the gui to be plugged.
Definition at line 83 of file albaCurvilinearAbscissaOnSkeletonHelper.h.
|
virtual |
Enable-Disable the GUI's widgets.