VTK
|
Control points for vtkColorTransferFunction. More...
#include <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) |
void | SetColorTransferFunction (vtkColorTransferFunction *function) |
virtual vtkIdType | GetNumberOfPoints () const |
virtual void | GetControlPoint (vtkIdType index, double *point) const |
virtual void | SetControlPoint (vtkIdType index, double *point) |
virtual vtkIdType | AddPoint (double *newPos) |
virtual vtkIdType | RemovePoint (double *pos) |
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 void | emitEvent (unsigned long event, void *params) |
virtual unsigned long int | GetControlPointsMTime () |
virtual void | DrawPoint (vtkContext2D *painter, vtkIdType index) |
virtual void | EditPoint (float tX, float tY) |
Protected Attributes | |
vtkColorTransferFunction * | ColorTransferFunction |
bool | ColorFill |
Control points for vtkColorTransferFunction.
vtkColorTransferControlPointsItem draws the control points of a vtkColorTransferFunction.
Definition at line 37 of file vtkColorTransferControlPointsItem.h.
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] |
Reimplemented from vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
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] |
Reimplemented from vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
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] |
Get the piecewise function
virtual vtkIdType vtkColorTransferControlPointsItem::GetNumberOfPoints | ( | ) | const [virtual] |
Return the number of points in the color transfer function.
Implements vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
virtual void vtkColorTransferControlPointsItem::GetControlPoint | ( | vtkIdType | index, |
double * | point | ||
) | const [virtual] |
Returns the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index. Note: The y (point[1]) is always 0.5
Implements vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
virtual void vtkColorTransferControlPointsItem::SetControlPoint | ( | vtkIdType | index, |
double * | point | ||
) | [virtual] |
Sets the x and y coordinates as well as the midpoint and sharpness of the control point corresponding to the index. Changing the y has no effect, it will always be 0.5
Implements vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
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.
Reimplemented in vtkCompositeControlPointsItem.
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.
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 void vtkColorTransferControlPointsItem::emitEvent | ( | unsigned long | event, |
void * | params | ||
) | [protected, virtual] |
Implements vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
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.
Reimplemented in vtkCompositeControlPointsItem.
virtual void vtkColorTransferControlPointsItem::EditPoint | ( | float | tX, |
float | tY | ||
) | [protected, virtual] |
Reimplemented in vtkCompositeControlPointsItem.
Definition at line 94 of file vtkColorTransferControlPointsItem.h.
bool vtkColorTransferControlPointsItem::ColorFill [protected] |
Definition at line 96 of file vtkColorTransferControlPointsItem.h.