Go to the documentation of this file.
33 #ifndef vtkCompositeControlPointsItem_h
34 #define vtkCompositeControlPointsItem_h
36 #include "vtkChartsCoreModule.h"
68 ColorPointsFunction = 1,
69 OpacityPointsFunction = 2,
70 ColorAndOpacityPointsFunction = 3
85 vtkSetMacro(PointsFunction,
int);
86 vtkGetMacro(PointsFunction,
int);
111 vtkSetMacro(UseOpacityPointHandles,
bool);
112 vtkGetMacro(UseOpacityPointHandles,
bool);
128 void emitEvent(
unsigned long event,
void* params)
override;
136 void EditPoint(
float tX,
float tY)
override;
137 virtual void EditPointCurve(
vtkIdType idx);
139 void MergeTransferFunctions();
140 void SilentMergeTransferFunctions();
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event.
void emitEvent(unsigned long event, void *params) override
data structure to represent mouse events.
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...
void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the piecewise function to draw its points.
bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse) override
Mouse button double click event.
void EditPoint(float tX, float tY) override
Class for drawing 2D primitives to a graphical context.
vtkIdType AddPoint(double *newPos) override
Add a point to the function.
a vtkContextItem that draws handles around a point of a piecewise function
Defines a transfer function for mapping a property to an RGB color value.
vtkIdType GetNumberOfPoints() const override
Return the number of points in the color transfer function.
vtkPiecewiseFunction * OpacityFunction
Control points for vtkColorTransferFunction.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkColorTransferControlPointsItem * New()
Creates a piecewise control points object.
a simple class to control print indentation
void DrawPoint(vtkContext2D *painter, vtkIdType index) override
vtkIdType RemovePoint(double *pos) override
Remove a point of the function.
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...
vtkPiecewisePointHandleItem * OpacityPointHandle
Defines a 1D piecewise function.
vtkMTimeType GetControlPointsMTime() override
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
bool UseOpacityPointHandles
Control points for vtkCompositeFunction.
vtkTypeUInt32 vtkMTimeType