Go to the documentation of this file.
27 #ifndef vtkPiecewisePointHandleItem_h
28 #define vtkPiecewisePointHandleItem_h
30 #include "vtkChartsCoreModule.h"
120 class InternalPiecewisePointHandleInfo;
121 InternalPiecewisePointHandleInfo* Internal;
125 #endif //vtkPiecewisePointHandleItem_h
data structure to represent mouse events.
~vtkPiecewisePointHandleItem()
virtual bool Hit(const vtkContextMouseEvent &mouse)
Returns true if the supplied x, y coordinate is inside the item.
vtkWeakPointer< vtkPiecewiseFunction > PiecewiseFunction
base class for items that are part of a vtkContextScene.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
vtkPiecewisePointHandleItem()
abstract base class for most VTK objects
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
Class for drawing 2D primitives to a graphical context.
a vtkContextItem that draws handles around a point of a piecewise function
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
vtkIdType CurrentPointIndex
virtual void SetParent(vtkAbstractContextItem *parent)
Set the parent item, which should be a vtkControlPointItem.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
virtual void SetPiecewiseFunction(vtkPiecewiseFunction *piecewiseFunc)
Set the PieceWiseFunction the handles will manipulate.
vtkWeakPointer< vtkPiecewiseFunction > GetPiecewiseFunction()
Defines a 1D piecewise function.
virtual void Redraw()
Redraw all the handles.
base class for items that are part of a vtkContextScene.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
static vtkPiecewisePointHandleItem * New()
supports function callbacks
vtkCallbackCommand * Callback
virtual bool Paint(vtkContext2D *painter)
Paint event for the item.
static void CallRedraw(vtkObject *sender, unsigned long event, void *receiver, void *params)
int IsOverHandle(float *pos)
Returns the index of the handle if pos is over any of the handles, otherwise return -1;.