21 #ifndef vtkCompositeControlPointsItem_h
22 #define vtkCompositeControlPointsItem_h
24 #include "vtkChartsCoreModule.h"
27 VTK_ABI_NAMESPACE_BEGIN
57 ColorPointsFunction = 1,
58 OpacityPointsFunction = 2,
59 ColorAndOpacityPointsFunction = 3
75 vtkSetMacro(PointsFunction,
int);
76 vtkGetMacro(PointsFunction,
int);
102 vtkSetMacro(UseOpacityPointHandles,
bool);
103 vtkGetMacro(UseOpacityPointHandles,
bool);
142 void emitEvent(
unsigned long event,
void* params)
override;
156 bool UseOpacityPointHandles =
false;
163 VTK_ABI_NAMESPACE_END
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)
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.
static vtkCompositeControlPointsItem * New()
Creates a piecewise control points object.
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.
virtual vtkIdType RemovePoint(double *pos)=0
Remove a point of the function.
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