30 #ifndef vtkCompositeControlPointsItem_h
31 #define vtkCompositeControlPointsItem_h
33 #include "vtkChartsCoreModule.h"
65 ColorPointsFunction = 1,
66 OpacityPointsFunction = 2,
67 ColorAndOpacityPointsFunction = 3
82 vtkSetMacro(PointsFunction,
int);
83 vtkGetMacro(PointsFunction,
int);
108 vtkSetMacro(UseOpacityPointHandles,
bool);
109 vtkGetMacro(UseOpacityPointHandles,
bool);
125 void emitEvent(
unsigned long event,
void* params)
override;
Control points for vtkColorTransferFunction.
Defines a transfer function for mapping a property to an RGB color value.
Control points for vtkCompositeFunction.
vtkMTimeType GetControlPointsMTime() override
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.
vtkPiecewiseFunction * OpacityFunction
void EditPoint(float tX, float tY) override
vtkPiecewisePointHandleItem * OpacityPointHandle
void SetOpacityFunction(vtkPiecewiseFunction *opacity)
Utility function that calls SetPiecewiseFunction()
bool UseOpacityPointHandles
void emitEvent(unsigned long event, void *params) override
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event Return true if the item holds the event, false if the event can be propagated...
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 corresponding...
vtkIdType GetNumberOfPoints() const override
Return the number of points in the color transfer function.
bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse) override
Mouse button double click event.
vtkCompositeControlPointsItem()
void SilentMergeTransferFunctions()
void MergeTransferFunctions()
void DrawPoint(vtkContext2D *painter, vtkIdType index) override
void GetControlPoint(vtkIdType index, double *pos) 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