#include <vtkColorTransferControlPointsItem.h>
vtkColorTransferControlPointsItem draws the control points of a vtkColorTransferFunction.
Definition at line 37 of file vtkColorTransferControlPointsItem.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) |
void | SetColorTransferFunction (vtkColorTransferFunction *function) |
virtual vtkColorTransferFunction * | GetColorTransferFunction () |
virtual void | SetColorFill (bool) |
virtual bool | GetColorFill () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkColorTransferControlPointsItem * | SafeDownCast (vtkObject *o) |
static vtkColorTransferControlPointsItem * | New () |
Protected Member Functions | |
vtkColorTransferControlPointsItem () | |
virtual | ~vtkColorTransferControlPointsItem () |
virtual unsigned long int | GetControlPointsMTime () |
virtual void | DrawPoint (vtkContext2D *painter, vtkIdType index) |
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 | |
vtkColorTransferFunction * | ColorTransferFunction |
bool | ColorFill |
Reimplemented from vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
Definition at line 40 of file vtkColorTransferControlPointsItem.h.
vtkColorTransferControlPointsItem::vtkColorTransferControlPointsItem | ( | ) | [protected] |
virtual vtkColorTransferControlPointsItem::~vtkColorTransferControlPointsItem | ( | ) | [protected, virtual] |
virtual const char* vtkColorTransferControlPointsItem::GetClassName | ( | ) | [virtual] |
static int vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
virtual int vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
static vtkColorTransferControlPointsItem* vtkColorTransferControlPointsItem::SafeDownCast | ( | vtkObject * | o | ) | [static] |
virtual void vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
static vtkColorTransferControlPointsItem* vtkColorTransferControlPointsItem::New | ( | ) | [static] |
Creates a piecewise control points object
Reimplemented from vtkObject.
Reimplemented in vtkCompositeControlPointsItem.
void vtkColorTransferControlPointsItem::SetColorTransferFunction | ( | vtkColorTransferFunction * | function | ) |
Set the piecewise function to draw its points
Reimplemented in vtkCompositeControlPointsItem.
virtual vtkColorTransferFunction* vtkColorTransferControlPointsItem::GetColorTransferFunction | ( | ) | [virtual] |
Set the piecewise function to draw its points
virtual vtkIdType vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
virtual vtkIdType vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
virtual void vtkColorTransferControlPointsItem::SetColorFill | ( | bool | ) | [virtual] |
If ColorFill is true, the control point brush color is set with the matching color in the color transfer function. False by default.
virtual bool vtkColorTransferControlPointsItem::GetColorFill | ( | ) | [virtual] |
If ColorFill is true, the control point brush color is set with the matching color in the color transfer function. False by default.
virtual unsigned long int vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
virtual void vtkColorTransferControlPointsItem::DrawPoint | ( | vtkContext2D * | painter, | |
vtkIdType | index | |||
) | [protected, virtual] |
Internal function that paints a collection of points and optionally excludes some.
Reimplemented from vtkControlPointsItem.
virtual int vtkColorTransferControlPointsItem::GetNumberOfPoints | ( | ) | const [protected, virtual] |
Returns the total number of points
Implements vtkControlPointsItem.
virtual void vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
virtual void vtkColorTransferControlPointsItem::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.
Reimplemented in vtkCompositeControlPointsItem.
virtual void vtkColorTransferControlPointsItem::EditPoint | ( | float | tX, | |
float | tY | |||
) | [protected, virtual] |
Reimplemented in vtkCompositeControlPointsItem.
Definition at line 83 of file vtkColorTransferControlPointsItem.h.
bool vtkColorTransferControlPointsItem::ColorFill [protected] |
Definition at line 85 of file vtkColorTransferControlPointsItem.h.