28#ifndef vtkColorTransferControlPointsItem_h
29#define vtkColorTransferControlPointsItem_h
31#include "vtkChartsCoreModule.h"
85 using Superclass::RemovePoint;
100 vtkSetMacro(ColorFill,
bool);
101 vtkGetMacro(ColorFill,
bool);
108 void emitEvent(
unsigned long event,
void* params)
override;
122 bool ColorFill =
false;
Control points for vtkColorTransferFunction.
void SetControlPoint(vtkIdType index, double *point) override
Sets the x and y coordinates as well as the midpoint and sharpness of the control point corresponding...
static vtkColorTransferControlPointsItem * New()
Creates a piecewise control points object.
void DrawPoint(vtkContext2D *painter, vtkIdType index) override
Internal function that paints a collection of points and optionally excludes some.
vtkColorTransferControlPointsItem()=default
void GetControlPoint(vtkIdType index, double *point) const override
Returns the x and y coordinates as well as the midpoint and sharpness of the control point correspond...
vtkIdType GetNumberOfPoints() const override
Return the number of points in the color transfer function.
~vtkColorTransferControlPointsItem() 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.
void ComputeBounds(double *bounds) override
Compute the bounds for this item.
void EditPoint(float tX, float tY) override
void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the piecewise function to draw its points.
void emitEvent(unsigned long event, void *params) override
vtkIdType RemovePoint(double *pos) override
Remove a point of the function.
vtkMTimeType GetControlPointsMTime() override
Must be reimplemented by subclasses to calculate the points to draw.
Defines a transfer function for mapping a property to an RGB color value.
Class for drawing 2D primitives to a graphical context.
Abstract class for control points items.
a simple class to control print indentation
vtkTypeUInt32 vtkMTimeType