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