VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkPiecewisePointHandleItem Class Reference

a vtkContextItem that draws handles around a point of a piecewise function More...

#include <vtkPiecewisePointHandleItem.h>

Inheritance diagram for vtkPiecewisePointHandleItem:
Inheritance graph
[legend]
Collaboration diagram for vtkPiecewisePointHandleItem:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkContextItem Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkPiecewisePointHandleItemNewInstance () 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 vtkObjectBaseNewInstanceInternal () const
 vtkPiecewisePointHandleItem ()
 ~vtkPiecewisePointHandleItem ()
virtual void Redraw ()

Protected Attributes

int MouseOverHandleIndex
vtkIdType CurrentPointIndex
float HandleRadius
vtkWeakPointer
< vtkPiecewiseFunction
PiecewiseFunction
vtkCallbackCommandCallback

Detailed Description

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.


Member Typedef Documentation

Reimplemented from vtkContextItem.

Definition at line 41 of file vtkPiecewisePointHandleItem.h.


Constructor & Destructor Documentation


Member Function Documentation

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.

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.

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.

The current point id in the piecewise function being handled.

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.

Mouse button down event.

Reimplemented from vtkAbstractContextItem.

Mouse button release event.

Reimplemented from vtkAbstractContextItem.

virtual void vtkPiecewisePointHandleItem::Redraw ( ) [protected, virtual]

Redraw all the handles


Member Data Documentation

Definition at line 89 of file vtkPiecewisePointHandleItem.h.

Definition at line 90 of file vtkPiecewisePointHandleItem.h.

Definition at line 91 of file vtkPiecewisePointHandleItem.h.

Definition at line 93 of file vtkPiecewisePointHandleItem.h.

Definition at line 94 of file vtkPiecewisePointHandleItem.h.


The documentation for this class was generated from the following file: