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
86 vtkGetMacro(PointsFunction,
int);
112 vtkGetMacro(UseOpacityPointHandles,
bool);
134 virtual void emitEvent(
unsigned long event,
void* params);
142 virtual void EditPoint(
float tX,
float tY);
143 virtual void EditPointCurve(
vtkIdType idx);
145 void MergeTransferFunctions();
146 void SilentMergeTransferFunctions();
data structure to represent mouse events.
void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the piecewise function to draw its points.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse)
Mouse button double click event.
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
Class for drawing 2D primitives to a graphical context.
virtual bool UsingLogScale()
Returns true if control points are to be rendered in log-space.
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.
vtkPiecewiseFunction * OpacityFunction
vtkTypeUInt64 vtkMTimeType
virtual void EditPoint(float tX, float tY)
virtual vtkIdType RemovePoint(double *pos)
Remove a point of the function.
Control points for vtkColorTransferFunction.
virtual void DrawPoint(vtkContext2D *painter, vtkIdType index)
virtual void SetControlPoint(vtkIdType index, double *point)
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.
a simple class to control print indentation
virtual vtkIdType AddPoint(double *newPos)
Add a point to the function.
virtual void GetControlPoint(vtkIdType index, double *point) const
Returns the x and y coordinates as well as the midpoint and sharpness of the control point correspond...
vtkPiecewisePointHandleItem * OpacityPointHandle
Defines a 1D piecewise function.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
virtual vtkMTimeType GetControlPointsMTime()
bool UseOpacityPointHandles
Control points for vtkCompositeFunction.
virtual vtkIdType GetNumberOfPoints() const
Return the number of points in the color transfer function.
virtual void emitEvent(unsigned long event, void *params)