16#ifndef __albaInteractorSlider_h
17#define __albaInteractorSlider_h
35class vtkPolyDataMapper2D;
38class vtkRendererCollection;
71 void ShowText(
bool show) { m_ShowText = show; };
105 int m_SliderPosition[2];
131 double m_EditLineColor[3];
133 double m_TextColor[3];
149 double m_PadLineColor[3];
174 friend class albaInteractorSliderTest;
177 DECLARE_EVENT_TABLE();
Implementation of the message object for the Subject/Observer design pattern.
Event class to transport a triggering button and a position from pointing devices.
Class implementing routing of events based on picking.
vtkActor2D * m_DescreaseLineActor
virtual void OnEvent(albaEventBase *event)
Process events coming from input device.
vtkPolyDataMapper2D * m_PadLineMapper
albaDeviceButtonsPadMouse * m_Mouse
albaInteractorSlider(albaView *view, int orientation=HORIZONTAL, double value=0.0, double minValue=-1.0, double maxValue=1.0)
void OnTimer(wxTimerEvent &event)
void SetRendererByView(albaView *view)
virtual void OnMove(albaEventInteraction *e)
vtkRenderWindow * m_RenderWindow
vtkPolyDataMapper2D * m_IncreaseLineMapper
void ShowSlider(bool show)
vtkActor2D * m_EditLineActor
virtual ~albaInteractorSlider()
vtkTextActor * m_TextMinActor
vtkPolyDataMapper2D * m_DescreaseLineMapper
void SetValue(double value)
vtkLineSource * m_PadLineSource
vtkActor2D * m_IncreaseLineActor
vtkTextActor * m_TextMaxActor
bool IsInBound(double *pos)
vtkCoordinate * m_Coordinate
virtual void OnLeftButtonDown(albaEventInteraction *e)
vtkTextMapper * m_TextValueMapper
albaInteractorSlider(albaView *view, int orientation, double value, double minValue, double maxValue, int x, int y, int lenght)
vtkLineSource * m_DescreaseLineSource
vtkTextActor * m_TextValueActor
vtkActor2D * m_PadLineActor
albaTypeMacro(albaInteractorSlider, albaInteractorPER)
vtkPolyDataMapper2D * m_EditLineMapper
double ValueToPosition(double value)
void SetRange(double min, double max)
vtkLineSource * m_IncreaseLineSource
vtkLineSource * m_EditLineSource
virtual void OnLeftButtonUp(albaEventInteraction *e)
void UpdatePadPosition(double pos)
albaView is the base class for Views in alba.