VTK
|
Control points for vtkCompositeFunction. More...
#include <vtkCompositeControlPointsItem.h>
Control points for vtkCompositeFunction.
vtkCompositeControlPointsItem draws the control points of a vtkPiecewiseFunction and a vtkColorTransferFunction.
Definition at line 41 of file vtkCompositeControlPointsItem.h.
Reimplemented from vtkColorTransferControlPointsItem.
Definition at line 45 of file vtkCompositeControlPointsItem.h.
Definition at line 60 of file vtkCompositeControlPointsItem.h.
vtkCompositeControlPointsItem::vtkCompositeControlPointsItem | ( | ) | [protected] |
virtual vtkCompositeControlPointsItem::~vtkCompositeControlPointsItem | ( | ) | [protected, virtual] |
static int vtkCompositeControlPointsItem::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 vtkColorTransferControlPointsItem.
virtual int vtkCompositeControlPointsItem::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 vtkColorTransferControlPointsItem.
static vtkCompositeControlPointsItem* vtkCompositeControlPointsItem::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkColorTransferControlPointsItem.
virtual vtkObjectBase* vtkCompositeControlPointsItem::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkColorTransferControlPointsItem.
Reimplemented from vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::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 vtkColorTransferControlPointsItem.
static vtkCompositeControlPointsItem* vtkCompositeControlPointsItem::New | ( | ) | [static] |
Creates a piecewise control points object
Reimplemented from vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::SetColorTransferFunction | ( | vtkColorTransferFunction * | function | ) | [virtual] |
Set the color transfer function to draw its points
Reimplemented from vtkColorTransferControlPointsItem.
void vtkCompositeControlPointsItem::SetOpacityFunction | ( | vtkPiecewiseFunction * | opacity | ) |
Utility function that calls SetPiecewiseFunction()
virtual vtkPiecewiseFunction* vtkCompositeControlPointsItem::GetOpacityFunction | ( | ) | [virtual] |
Utility function that calls SetPiecewiseFunction()
virtual void vtkCompositeControlPointsItem::SetPointsFunction | ( | int | ) | [virtual] |
PointsFunction controls wether the points represent the ColorTransferFunction, OpacityTransferFunction or both. If ColorPointsFunction, only the points of the ColorTransfer function are used. If OpacityPointsFunction, only the points of the Opacity function are used If ColorAndOpacityPointsFunction, the points of both functions are shared by both functions. ColorAndOpacityPointsFunction by default. Note: Set the mode before the functions are set. ColorPointsFunction is not fully supported.
virtual int vtkCompositeControlPointsItem::GetPointsFunction | ( | ) | [virtual] |
PointsFunction controls wether the points represent the ColorTransferFunction, OpacityTransferFunction or both. If ColorPointsFunction, only the points of the ColorTransfer function are used. If OpacityPointsFunction, only the points of the Opacity function are used If ColorAndOpacityPointsFunction, the points of both functions are shared by both functions. ColorAndOpacityPointsFunction by default. Note: Set the mode before the functions are set. ColorPointsFunction is not fully supported.
virtual vtkIdType vtkCompositeControlPointsItem::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 vtkColorTransferControlPointsItem.
virtual vtkIdType vtkCompositeControlPointsItem::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 vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::SetUseOpacityPointHandles | ( | bool | ) | [virtual] |
If UseOpacityPointHandles is true, when the current point is double clicked, a vtkPiecewisePointHandleItem will show up so that the sharpness and mid point can be adjusted in the scene with those handles False by default.
virtual bool vtkCompositeControlPointsItem::GetUseOpacityPointHandles | ( | ) | [virtual] |
If UseOpacityPointHandles is true, when the current point is double clicked, a vtkPiecewisePointHandleItem will show up so that the sharpness and mid point can be adjusted in the scene with those handles False by default.
virtual bool vtkCompositeControlPointsItem::MouseMoveEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event. To take care of some special Key stroke
Reimplemented from vtkControlPointsItem.
virtual bool vtkCompositeControlPointsItem::MouseDoubleClickEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event. To take care of some special Key stroke
Reimplemented from vtkControlPointsItem.
virtual bool vtkCompositeControlPointsItem::MouseButtonPressEvent | ( | const vtkContextMouseEvent & | mouse | ) | [virtual] |
Mouse move event. To take care of some special Key stroke
Reimplemented from vtkControlPointsItem.
virtual void vtkCompositeControlPointsItem::emitEvent | ( | unsigned long | event, |
void * | params | ||
) | [protected, virtual] |
Reimplemented from vtkColorTransferControlPointsItem.
virtual unsigned long int vtkCompositeControlPointsItem::GetControlPointsMTime | ( | ) | [protected, virtual] |
Must be reimplemented by subclasses to calculate the points to draw. It's subclass responsibility to call ComputePoints() via the callback
Reimplemented from vtkColorTransferControlPointsItem.
virtual vtkIdType vtkCompositeControlPointsItem::GetNumberOfPoints | ( | ) | const [protected, virtual] |
Return the number of points in the color transfer function.
Reimplemented from vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::DrawPoint | ( | vtkContext2D * | painter, |
vtkIdType | index | ||
) | [protected, virtual] |
Internal function that paints a collection of points and optionally excludes some.
Reimplemented from vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::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. Note: The y (point[1]) is always 0.5
Reimplemented from vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::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. Changing the y has no effect, it will always be 0.5
Reimplemented from vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::EditPoint | ( | float | tX, |
float | tY | ||
) | [protected, virtual] |
Reimplemented from vtkColorTransferControlPointsItem.
virtual void vtkCompositeControlPointsItem::EditPointCurve | ( | vtkIdType | idx | ) | [protected, virtual] |
void vtkCompositeControlPointsItem::MergeTransferFunctions | ( | ) | [protected] |
void vtkCompositeControlPointsItem::SilentMergeTransferFunctions | ( | ) | [protected] |
int vtkCompositeControlPointsItem::PointsFunction [protected] |
Definition at line 122 of file vtkCompositeControlPointsItem.h.
Definition at line 123 of file vtkCompositeControlPointsItem.h.
Definition at line 124 of file vtkCompositeControlPointsItem.h.
bool vtkCompositeControlPointsItem::UseOpacityPointHandles [protected] |
Definition at line 125 of file vtkCompositeControlPointsItem.h.