VTK
|
Control points for vtkColorTransferFunction. More...
#include <vtkColorTransferControlPointsItem.h>
Control points for vtkColorTransferFunction.
vtkColorTransferControlPointsItem draws the control points of a vtkColorTransferFunction.
Definition at line 38 of file vtkColorTransferControlPointsItem.h.
Reimplemented from vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
Definition at line 41 of file vtkColorTransferControlPointsItem.h.
virtual vtkColorTransferControlPointsItem::~vtkColorTransferControlPointsItem | ( | ) | [protected, 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 | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
virtual vtkObjectBase* vtkColorTransferControlPointsItem::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
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.
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.
Implements 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.
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 bool vtkColorTransferControlPointsItem::UsingLogScale | ( | ) | [protected, virtual] |
Returns true if control points are to be rendered in log-space. This is true when vtkScalarsToColors is using log-scale, for example. Default implementation always return false.
Reimplemented from vtkControlPointsItem.
Reimplemented in vtkCompositeControlPointsItem.
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.
virtual void vtkColorTransferControlPointsItem::ComputeBounds | ( | double * | bounds | ) | [protected, virtual] |
Compute the bounds for this item. Overridden to use the vtkColorTransferFunction range.
Reimplemented from vtkControlPointsItem.
Definition at line 104 of file vtkColorTransferControlPointsItem.h.
bool vtkColorTransferControlPointsItem::ColorFill [protected] |
Definition at line 106 of file vtkColorTransferControlPointsItem.h.