#include <vtkPiecewiseControlPointsItem.h>
vtkPiecewiseControlPointsItem draws the control points of a vtkPiecewiseFunction.
Definition at line 40 of file vtkPiecewiseControlPointsItem.h.
Public Types | |
typedef vtkControlPointsItem | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual vtkIdType | AddPoint (double *newPos) |
virtual vtkIdType | RemovePoint (double *pos) |
virtual void | SetPiecewiseFunction (vtkPiecewiseFunction *function) |
virtual vtkPiecewiseFunction * | GetPiecewiseFunction () |
virtual void | SetStrokeMode (bool) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPiecewiseControlPointsItem * | SafeDownCast (vtkObject *o) |
static vtkPiecewiseControlPointsItem * | New () |
Protected Member Functions | |
vtkPiecewiseControlPointsItem () | |
virtual | ~vtkPiecewiseControlPointsItem () |
virtual unsigned long int | GetControlPointsMTime () |
virtual int | GetNumberOfPoints () const |
virtual void | GetControlPoint (vtkIdType index, double *point) |
virtual void | SetControlPoint (vtkIdType index, double *point) |
virtual void | EditPoint (float tX, float tY) |
Protected Attributes | |
vtkPiecewiseFunction * | PiecewiseFunction |
Reimplemented from vtkControlPointsItem.
Definition at line 43 of file vtkPiecewiseControlPointsItem.h.
vtkPiecewiseControlPointsItem::vtkPiecewiseControlPointsItem | ( | ) | [protected] |
virtual vtkPiecewiseControlPointsItem::~vtkPiecewiseControlPointsItem | ( | ) | [protected, virtual] |
virtual const char* vtkPiecewiseControlPointsItem::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkControlPointsItem.
static int vtkPiecewiseControlPointsItem::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 vtkControlPointsItem.
virtual int vtkPiecewiseControlPointsItem::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 vtkControlPointsItem.
static vtkPiecewiseControlPointsItem* vtkPiecewiseControlPointsItem::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkControlPointsItem.
virtual void vtkPiecewiseControlPointsItem::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 vtkControlPointsItem.
static vtkPiecewiseControlPointsItem* vtkPiecewiseControlPointsItem::New | ( | ) | [static] |
Creates a piecewise control points object
Reimplemented from vtkObject.
virtual void vtkPiecewiseControlPointsItem::SetPiecewiseFunction | ( | vtkPiecewiseFunction * | function | ) | [virtual] |
Set the piecewise function to draw its points
virtual vtkPiecewiseFunction* vtkPiecewiseControlPointsItem::GetPiecewiseFunction | ( | ) | [virtual] |
Set the piecewise function to draw its points
virtual vtkIdType vtkPiecewiseControlPointsItem::AddPoint | ( | double * | newPos | ) | [virtual] |
Add a point to the function. Returns the index of the point (0 based), or -1 on error. Subclasses should reimplement this function to do the actual work.
Reimplemented from vtkControlPointsItem.
virtual vtkIdType vtkPiecewiseControlPointsItem::RemovePoint | ( | double * | pos | ) | [virtual] |
Remove a point of the function. Returns the index of the point (0 based), or -1 on error. Subclasses should reimplement this function to do the actual work.
Reimplemented from vtkControlPointsItem.
virtual void vtkPiecewiseControlPointsItem::SetStrokeMode | ( | bool | ) | [virtual] |
Controls whether or not control points are drawn (true) or clicked and moved (false). False by default.
virtual unsigned long int vtkPiecewiseControlPointsItem::GetControlPointsMTime | ( | ) | [protected, virtual] |
Must be reimplemented by subclasses to calculate the points to draw. It's subclass responsibility to call ComputePoints() via the callback
Implements vtkControlPointsItem.
virtual int vtkPiecewiseControlPointsItem::GetNumberOfPoints | ( | ) | const [protected, virtual] |
Returns the total number of points
Implements vtkControlPointsItem.
virtual void vtkPiecewiseControlPointsItem::GetControlPoint | ( | vtkIdType | index, | |
double * | point | |||
) | [protected, virtual] |
Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index.
Implements vtkControlPointsItem.
virtual void vtkPiecewiseControlPointsItem::SetControlPoint | ( | vtkIdType | index, | |
double * | point | |||
) | [protected, virtual] |
Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index.
Implements vtkControlPointsItem.
virtual void vtkPiecewiseControlPointsItem::EditPoint | ( | float | tX, | |
float | tY | |||
) | [protected, virtual] |
Definition at line 84 of file vtkPiecewiseControlPointsItem.h.