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;
data structure to represent mouse events.
vtkCompositeControlPointsItem()
vtkMTimeType GetControlPointsMTime() override
void MergeTransferFunctions()
void SilentMergeTransferFunctions()
void EditPoint(float tX, float tY) override
virtual void EditPointCurve(vtkIdType idx)
Class for drawing 2D primitives to a graphical context.
a vtkContextItem that draws handles around a point of a piecewise function
~vtkCompositeControlPointsItem() override
Defines a transfer function for mapping a property to an RGB color value.
vtkIdType AddPoint(double *newPos) override
Add a point to the function.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPiecewiseFunction * OpacityFunction
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...
a simple class to control print indentation
void SetOpacityFunction(vtkPiecewiseFunction *opacity)
Utility function that calls SetPiecewiseFunction()
vtkPiecewisePointHandleItem * OpacityPointHandle
Defines a 1D piecewise function.
vtkIdType GetNumberOfPoints() const override
Return the number of points in the color transfer function.
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
vtkIdType RemovePoint(double *pos) override
Remove a point of the function.
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...
void emitEvent(unsigned long event, void *params) override
bool UseOpacityPointHandles
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.
Control points for vtkCompositeFunction.
virtual void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the color transfer function to draw its points.
bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse) override
Mouse button double click event.
vtkTypeUInt32 vtkMTimeType