30#ifndef vtkCompositeControlPointsItem_h
31#define vtkCompositeControlPointsItem_h
33#include "vtkChartsCoreModule.h"
65 ColorPointsFunction = 1,
66 OpacityPointsFunction = 2,
67 ColorAndOpacityPointsFunction = 3
83 vtkSetMacro(PointsFunction,
int);
84 vtkGetMacro(PointsFunction,
int);
94 using Superclass::RemovePoint;
110 vtkSetMacro(UseOpacityPointHandles,
bool);
111 vtkGetMacro(UseOpacityPointHandles,
bool);
150 void emitEvent(
unsigned long event,
void* params)
override;
164 bool UseOpacityPointHandles =
false;
Control points for vtkColorTransferFunction.
Defines a transfer function for mapping a property to an RGB color value.
Control points for vtkCompositeFunction.
vtkMTimeType GetControlPointsMTime() override
Must be reimplemented by subclasses to calculate the points to draw.
vtkIdType RemovePoint(double *pos) override
Remove a point of the function.
~vtkCompositeControlPointsItem() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIdType AddPoint(double *newPos) override
Add a point to the function.
virtual void EditPointCurve(vtkIdType idx)
static vtkCompositeControlPointsItem * New()
Creates a piecewise control points object.
virtual void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the color transfer function to draw its points.
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
@ ColorAndOpacityPointsFunction
void EditPoint(float tX, float tY) override
void SetOpacityFunction(vtkPiecewiseFunction *opacity)
Utility function that calls SetPiecewiseFunction()
void emitEvent(unsigned long event, void *params) override
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
void SetControlPoint(vtkIdType index, double *point) override
Sets the x and y coordinates as well as the midpoint and sharpness, of the control point correspondin...
vtkIdType GetNumberOfPoints() const override
Returns the total number of points, either from using the superclass implementation or the opacity fu...
bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
vtkCompositeControlPointsItem()
void SilentMergeTransferFunctions()
void MergeTransferFunctions()
void DrawPoint(vtkContext2D *painter, vtkIdType index) override
Internal function that paints a collection of points and optionally excludes some.
void GetControlPoint(vtkIdType index, double point[4]) const override
Returns the x and y coordinates as well as the midpoint and sharpness of the control point correspond...
Class for drawing 2D primitives to a graphical context.
data structure to represent mouse events.
a simple class to control print indentation
Defines a 1D piecewise function.
a vtkContextItem that draws handles around a point of a piecewise function
vtkTypeUInt32 vtkMTimeType