33 #ifndef vtkCompositeControlPointsItem_h
34 #define vtkCompositeControlPointsItem_h
36 #include "vtkChartsCoreModule.h"
68 ColorPointsFunction = 1,
69 OpacityPointsFunction = 2,
70 ColorAndOpacityPointsFunction = 3
86 vtkGetMacro(PointsFunction,
int);
112 vtkGetMacro(UseOpacityPointHandles,
bool);
134 virtual void emitEvent(
unsigned long event,
void* params);
142 virtual void EditPoint(
float tX,
float tY);
143 virtual void EditPointCurve(
vtkIdType idx);
145 void MergeTransferFunctions();
146 void SilentMergeTransferFunctions();
static vtkColorTransferControlPointsItem * New()
Creates a piecewise control points object.
bool UseOpacityPointHandles
Defines a 1D piecewise function.
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
virtual void EditPoint(float tX, float tY)
vtkTypeUInt64 vtkMTimeType
virtual vtkIdType GetNumberOfPoints() const
Return the number of points in the color transfer function.
Class for drawing 2D primitives to a graphical context.
a vtkContextItem that draws handles around a point of a piecewise function
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
data structure to represent mouse events.
a simple class to control print indentation
Control points for vtkCompositeFunction.
vtkPiecewiseFunction * OpacityFunction
virtual void SetControlPoint(vtkIdType index, double *point)
Sets the x and y coordinates as well as the midpoint and sharpness of the control point corresponding...
vtkPiecewisePointHandleItem * OpacityPointHandle
virtual vtkIdType AddPoint(double *newPos)
Add a point to the function.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Control points for vtkColorTransferFunction.
void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the piecewise function to draw its points.
virtual void emitEvent(unsigned long event, void *params)
virtual void GetControlPoint(vtkIdType index, double *point) const
Returns the x and y coordinates as well as the midpoint and sharpness of the control point correspond...
Defines a transfer function for mapping a property to an RGB color value.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
virtual bool UsingLogScale()
Returns true if control points are to be rendered in log-space.
virtual vtkMTimeType GetControlPointsMTime()
Must be reimplemented by subclasses to calculate the points to draw.
virtual vtkIdType RemovePoint(double *pos)
Remove a point of the function.
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
Internal function that paints a collection of points and optionally excludes some.