16#ifndef __albaInteractor2DIndicator_h
17#define __albaInteractor2DIndicator_h
21#include "vtkALBATextActorMeter.h"
32class vtkPolyDataMapper2D;
93 return albaString(m_MeterVector[m_MeterVector.size()-1]->GetText());
179 double m_PickedPoint[3];
187 friend class albaInteractor2DIndicatorTest;
Event class to transport a triggering button and a position from pointing devices.
Class implementing an interactor for creating 2D measure tool.
virtual void OnRightButtonUp(albaEventInteraction *e)
std::vector< vtkConeSource * > m_ConeSourceVector
vtkCoordinate * m_Coordinate
vtkLineSource * m_ProbingLine
virtual ~albaInteractor2DIndicator()
virtual void OnLeftButtonUp(albaEventInteraction *e)
vtkActor2D * m_LineActor2
virtual void OnRightButtonDown(albaEventInteraction *e)
virtual void OnMiddleButtonDown(albaEventInteraction *e)
void SetLabel(albaString label)
Set the label.
void ShowAllMeasures(bool show)
Show On/Off all measures.
void UndoMeasure()
Undo the last measure.
bool GetRegisterMeasure()
Get the boolean value of end measure.
std::vector< vtkPolyDataMapper2D * > m_ConeMapperVector
vtkLineSource * m_Line2
Second line of the measure tool (used for angle measures)
std::vector< vtkPolyDataMapper2D * > m_LineMapperVector1
albaRWIBase * GetCurrentRwi()
return the current rwi
bool m_DisableUndoAndOkCancel
virtual void OnButtonUp(albaEventInteraction *e)
albaTypeMacro(albaInteractor2DIndicator, albaInteractorPER)
albaRWIBase * m_CurrentRwi
std::vector< vtkLineSource * > m_LineSourceVector1
albaInteractor2DIndicator()
vtkPolyDataMapper2D * m_LineMapper
virtual void OnButtonDown(albaEventInteraction *e)
Perform a pick on start of interaction to find if the user pointed an object in the scene,...
std::vector< vtkPolyDataMapper2D * > m_LineMapperVector2
std::vector< vtkALBATextActorMeter * > m_MeterVector
albaString GetLabel()
Get the label.
std::vector< vtkRenderer * > m_RendererVector
vtkRenderer * m_PreviousRenderer
void ShowOnlyLastMeasure(bool show)
Show On/Off only last measure.
virtual void OnMove(albaEventInteraction *e)
std::vector< vtkActor2D * > m_ConeActorVector
virtual void OnMiddleButtonUp(albaEventInteraction *e)
std::vector< vtkLineSource * > m_LineSourceVector2
vtkLineSource * m_Line
First line of the measure tool.
std::vector< vtkActor2D * > m_LineActorVector1
vtkRenderer * m_CurrentRenderer
vtkPolyDataMapper2D * m_LineMapper2
int SizeMeasureVector()
Return the dimension of Measure Vector.
std::vector< vtkActor2D * > m_LineActorVector2
vtkRenderer * m_LastRenderer
Renderer used for the first line.
virtual void OnLeftButtonDown(albaEventInteraction *e)
bool IsDisableUndoAndOkCancel()
Control if disabling various buttons.
albaVME * m_ProbedVME
VME probed by the m_ProbingLine.
void DrawMeasureTool(double x, double y)
Draw the measure tool according to the measure type selected.
albaDeviceButtonsPadMouse * m_Mouse
virtual void OnChar(albaEventInteraction *e)
void RemoveMeter()
Remove the meters from the render window.
Class implementing routing of events based on picking.
albaRWIBase is a vtkRenderWindowInteractor placed on a wxWindow
albaString - performs common string operations on c-strings.