26 #ifndef __vtkPiecewisePointHandleItem_h
27 #define __vtkPiecewisePointHandleItem_h
29 #include "vtkChartsCoreModule.h"
30 #include "vtkContextItem.h"
34 class vtkPiecewiseFunction;
36 class vtkAbstractContextItem;
42 virtual void PrintSelf(ostream &os,
vtkIndent indent);
45 static void CallRedraw(
vtkObject* sender,
unsigned long event,
void* receiver,
void* params);
48 virtual void SetParent(vtkAbstractContextItem *parent);
51 virtual bool Paint(vtkContext2D *painter);
55 vtkSetMacro(CurrentPointIndex,
vtkIdType);
56 vtkGetMacro(CurrentPointIndex,
vtkIdType);
61 virtual void SetPiecewiseFunction(vtkPiecewiseFunction* piecewiseFunc);
67 int IsOverHandle(
float* pos);
70 virtual bool Hit(
const vtkContextMouseEvent &mouse);
73 virtual bool MouseMoveEvent(
const vtkContextMouseEvent &mouse);
76 virtual bool MouseButtonPressEvent(
const vtkContextMouseEvent &mouse);
79 virtual bool MouseButtonReleaseEvent(
const vtkContextMouseEvent &mouse);
87 virtual void Redraw();
100 class InternalPiecewisePointHandleInfo;
101 InternalPiecewisePointHandleInfo* Internal;
105 #endif //__vtkPiecewisePointHandleItem_h
abstract base class for most VTK objects
vtkWeakPointer< vtkPiecewiseFunction > PiecewiseFunction
vtkCallbackCommand * Callback
supports function callbacks
a vtkContextItem that draws handles around a point of a piecewise function
a simple class to control print indentation
vtkIdType CurrentPointIndex