VTK
|
a vtkContextItem that draws handles around a point of a piecewise function More...
#include <vtkPiecewisePointHandleItem.h>
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.
Reimplemented from vtkContextItem.
Definition at line 41 of file vtkPiecewisePointHandleItem.h.
vtkPiecewisePointHandleItem::vtkPiecewisePointHandleItem | ( | ) | [protected] |
vtkPiecewisePointHandleItem::~vtkPiecewisePointHandleItem | ( | ) | [protected] |
static int vtkPiecewisePointHandleItem::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkContextItem.
virtual int vtkPiecewisePointHandleItem::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkContextItem.
static vtkPiecewisePointHandleItem* vtkPiecewisePointHandleItem::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkContextItem.
virtual vtkObjectBase* vtkPiecewisePointHandleItem::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkContextItem.
Reimplemented from vtkContextItem.
virtual void vtkPiecewisePointHandleItem::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkContextItem.
static vtkPiecewisePointHandleItem* vtkPiecewisePointHandleItem::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkObject.
static void vtkPiecewisePointHandleItem::CallRedraw | ( | vtkObject * | sender, |
unsigned long | event, | ||
void * | receiver, | ||
void * | params | ||
) | [static] |
virtual void vtkPiecewisePointHandleItem::SetParent | ( | vtkAbstractContextItem * | parent | ) | [virtual] |
Set the parent item, which should be a vtkControlPointItem
Reimplemented from vtkAbstractContextItem.
virtual bool vtkPiecewisePointHandleItem::Paint | ( | vtkContext2D * | painter | ) | [virtual] |
Paint event for the item.
Reimplemented from vtkAbstractContextItem.
virtual void vtkPiecewisePointHandleItem::SetCurrentPointIndex | ( | vtkIdType | ) | [virtual] |
The current point id in the piecewise function being handled.
virtual vtkIdType vtkPiecewisePointHandleItem::GetCurrentPointIndex | ( | ) | [virtual] |
The current point id in the piecewise function being handled.
virtual void vtkPiecewisePointHandleItem::SetPiecewiseFunction | ( | vtkPiecewiseFunction * | piecewiseFunc | ) | [virtual] |
Set the PieceWiseFunction the handles will manipulate
Set the PieceWiseFunction the handles will manipulate
Returns the index of the handle if pos is over any of the handles, otherwise return -1;
virtual bool vtkPiecewisePointHandleItem::Hit | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Returns true if the supplied x, y coordinate is inside the item.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkPiecewisePointHandleItem::MouseMoveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkPiecewisePointHandleItem::MouseButtonPressEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button down event.
Reimplemented from vtkAbstractContextItem.
virtual bool vtkPiecewisePointHandleItem::MouseButtonReleaseEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse button release event.
Reimplemented from vtkAbstractContextItem.
virtual void vtkPiecewisePointHandleItem::Redraw | ( | ) | [protected, virtual] |
Redraw all the handles
int vtkPiecewisePointHandleItem::MouseOverHandleIndex [protected] |
Definition at line 89 of file vtkPiecewisePointHandleItem.h.
Definition at line 90 of file vtkPiecewisePointHandleItem.h.
float vtkPiecewisePointHandleItem::HandleRadius [protected] |
Definition at line 91 of file vtkPiecewisePointHandleItem.h.
Definition at line 93 of file vtkPiecewisePointHandleItem.h.
vtkCallbackCommand* vtkPiecewisePointHandleItem::Callback [protected] |
Definition at line 94 of file vtkPiecewisePointHandleItem.h.