 |
VTK
9.1.0
|
Go to the documentation of this file.
30 #ifndef vtkCompositeControlPointsItem_h
31 #define vtkCompositeControlPointsItem_h
33 #include "vtkChartsCoreModule.h"
65 ColorPointsFunction = 1,
66 OpacityPointsFunction = 2,
67 ColorAndOpacityPointsFunction = 3
83 vtkSetMacro(PointsFunction,
int);
84 vtkGetMacro(PointsFunction,
int);
110 vtkSetMacro(UseOpacityPointHandles,
bool);
111 vtkGetMacro(UseOpacityPointHandles,
bool);
150 void emitEvent(
unsigned long event,
void* params)
override;
164 bool UseOpacityPointHandles =
false;
data structure to represent mouse events.
vtkCompositeControlPointsItem()
vtkMTimeType GetControlPointsMTime() override
Must be reimplemented by subclasses to calculate the points to draw.
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.
Control points for vtkColorTransferFunction.
@ ColorAndOpacityPointsFunction
virtual vtkIdType RemovePoint(double *pos)=0
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 correspondin...
a simple class to control print indentation
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...
void SetOpacityFunction(vtkPiecewiseFunction *opacity)
Utility function that calls SetPiecewiseFunction()
Defines a 1D piecewise function.
vtkIdType GetNumberOfPoints() const override
Returns the total number of points, either from using the superclass implementation or the opacity fu...
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
Internal function that paints a collection of points and optionally excludes some.
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.
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 move event.
vtkTypeUInt32 vtkMTimeType