VTK
|
a vtkContextItem that draws handles around a point of a piecewise function More...
#include <vtkPiecewisePointHandleItem.h>
Inherits vtkContextItem.
Public Types | |
typedef vtkContextItem | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPiecewisePointHandleItem * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetParent (vtkAbstractContextItem *parent) |
virtual bool | Paint (vtkContext2D *painter) |
int | IsOverHandle (float *pos) |
virtual bool | Hit (const vtkContextMouseEvent &mouse) |
virtual bool | MouseMoveEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonPressEvent (const vtkContextMouseEvent &mouse) |
virtual bool | MouseButtonReleaseEvent (const vtkContextMouseEvent &mouse) |
virtual void | SetCurrentPointIndex (vtkIdType) |
virtual vtkIdType | GetCurrentPointIndex () |
virtual void | SetPiecewiseFunction (vtkPiecewiseFunction *piecewiseFunc) |
vtkWeakPointer < vtkPiecewiseFunction > | GetPiecewiseFunction () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPiecewisePointHandleItem * | SafeDownCast (vtkObjectBase *o) |
static vtkPiecewisePointHandleItem * | New () |
static void | CallRedraw (vtkObject *sender, unsigned long event, void *receiver, void *params) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPiecewisePointHandleItem () | |
~vtkPiecewisePointHandleItem () | |
virtual void | Redraw () |
Protected Attributes | |
int | MouseOverHandleIndex |
vtkIdType | CurrentPointIndex |
float | HandleRadius |
vtkWeakPointer < vtkPiecewiseFunction > | PiecewiseFunction |
vtkCallbackCommand * | Callback |
a vtkContextItem that draws handles around a point of a piecewise function
This is a vtkContextItem that can be placed into a vtkContextScene. It draws handles around a given point of a piecewise function so that the curve can be adjusted using these handles.
Definition at line 38 of file vtkPiecewisePointHandleItem.h.
typedef vtkContextItem vtkPiecewisePointHandleItem::Superclass |
Definition at line 41 of file vtkPiecewisePointHandleItem.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkPiecewisePointHandleItem* vtkPiecewisePointHandleItem::NewInstance | ( | ) | const |
|
virtual |
|
static |
|
static |
|
virtual |
Set the parent item, which should be a vtkControlPointItem
|
virtual |
Paint event for the item.
|
virtual |
The current point id in the piecewise function being handled.
|
virtual |
The current point id in the piecewise function being handled.
|
virtual |
Set the PieceWiseFunction the handles will manipulate
vtkWeakPointer<vtkPiecewiseFunction> vtkPiecewisePointHandleItem::GetPiecewiseFunction | ( | ) |
Set the PieceWiseFunction the handles will manipulate
int vtkPiecewisePointHandleItem::IsOverHandle | ( | float * | pos | ) |
Returns the index of the handle if pos is over any of the handles, otherwise return -1;
|
virtual |
Returns true if the supplied x, y coordinate is inside the item.
|
virtual |
Mouse move event.
|
virtual |
Mouse button down event.
|
virtual |
Mouse button release event.
|
protectedvirtual |
Redraw all the handles
|
protected |
Definition at line 89 of file vtkPiecewisePointHandleItem.h.
|
protected |
Definition at line 90 of file vtkPiecewisePointHandleItem.h.
|
protected |
Definition at line 91 of file vtkPiecewisePointHandleItem.h.
|
protected |
Definition at line 93 of file vtkPiecewisePointHandleItem.h.
|
protected |
Definition at line 94 of file vtkPiecewisePointHandleItem.h.