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 const char * GetClassName ()
virtual int IsA (const char *type)
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 (vtkObject *o)
static
vtkPiecewisePointHandleItem
New ()
static void CallRedraw (vtkObject *sender, unsigned long event, void *receiver, void *params)

Protected Member Functions

 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 37 of file vtkPiecewisePointHandleItem.h.


Member Typedef Documentation

Reimplemented from vtkContextItem.

Definition at line 40 of file vtkPiecewisePointHandleItem.h.


Constructor & Destructor Documentation

vtkPiecewisePointHandleItem::vtkPiecewisePointHandleItem ( ) [protected]
vtkPiecewisePointHandleItem::~vtkPiecewisePointHandleItem ( ) [protected]

Member Function Documentation

virtual const char* vtkPiecewisePointHandleItem::GetClassName ( ) [virtual]

Reimplemented from vtkContextItem.

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 ( vtkObject o) [static]

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

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 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


Member Data Documentation

Definition at line 88 of file vtkPiecewisePointHandleItem.h.

Definition at line 89 of file vtkPiecewisePointHandleItem.h.

Definition at line 90 of file vtkPiecewisePointHandleItem.h.

Definition at line 92 of file vtkPiecewisePointHandleItem.h.

Definition at line 93 of file vtkPiecewisePointHandleItem.h.


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