VTK
|
Control points for vtkPiecewiseFunction. More...
#include <vtkPiecewiseControlPointsItem.h>
Public Types | |
typedef vtkControlPointsItem | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkPiecewiseControlPointsItem * | NewInstance () const |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetPiecewiseFunction (vtkPiecewiseFunction *function) |
virtual vtkIdType | AddPoint (double *newPos) |
virtual vtkIdType | RemovePoint (double *pos) |
virtual vtkPiecewiseFunction * | GetPiecewiseFunction () |
virtual void | SetStrokeMode (bool) |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPiecewiseControlPointsItem * | SafeDownCast (vtkObjectBase *o) |
static vtkPiecewiseControlPointsItem * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkPiecewiseControlPointsItem () | |
virtual | ~vtkPiecewiseControlPointsItem () |
virtual void | emitEvent (unsigned long event, void *params=0) |
virtual unsigned long int | GetControlPointsMTime () |
virtual vtkIdType | GetNumberOfPoints () const |
virtual void | GetControlPoint (vtkIdType index, double *point) const |
virtual void | SetControlPoint (vtkIdType index, double *point) |
virtual void | EditPoint (float tX, float tY) |
Protected Attributes | |
vtkPiecewiseFunction * | PiecewiseFunction |
Control points for vtkPiecewiseFunction.
vtkPiecewiseControlPointsItem draws the control points of a vtkPiecewiseFunction.
Definition at line 41 of file vtkPiecewiseControlPointsItem.h.
Reimplemented from vtkControlPointsItem.
Definition at line 44 of file vtkPiecewiseControlPointsItem.h.
vtkPiecewiseControlPointsItem::vtkPiecewiseControlPointsItem | ( | ) | [protected] |
virtual vtkPiecewiseControlPointsItem::~vtkPiecewiseControlPointsItem | ( | ) | [protected, virtual] |
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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkControlPointsItem.
virtual vtkObjectBase* vtkPiecewiseControlPointsItem::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkControlPointsItem.
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] |
Get the piecewise function
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.
Implements 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.
Implements 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 void vtkPiecewiseControlPointsItem::emitEvent | ( | unsigned long | event, |
void * | params = 0 |
||
) | [protected, virtual] |
Implements vtkControlPointsItem.
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 vtkIdType vtkPiecewiseControlPointsItem::GetNumberOfPoints | ( | ) | const [protected, virtual] |
Returns the total number of points
Implements vtkControlPointsItem.
virtual void vtkPiecewiseControlPointsItem::GetControlPoint | ( | vtkIdType | index, |
double * | point | ||
) | const [protected, virtual] |
Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index. point must be a double array of size 4.
Implements vtkControlPointsItem.
virtual void vtkPiecewiseControlPointsItem::SetControlPoint | ( | vtkIdType | index, |
double * | point | ||
) | [protected, virtual] |
Sets 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 86 of file vtkPiecewiseControlPointsItem.h.