30 #ifndef vtkCompositeControlPointsItem_h 31 #define vtkCompositeControlPointsItem_h 33 #include "vtkChartsCoreModule.h" 65 ColorPointsFunction = 1,
66 OpacityPointsFunction = 2,
67 ColorAndOpacityPointsFunction = 3
83 vtkGetMacro(PointsFunction,
int);
109 vtkGetMacro(UseOpacityPointHandles,
bool);
129 bool UsingLogScale() VTK_OVERRIDE;
131 void emitEvent(
unsigned long event,
void* params) VTK_OVERRIDE;
135 vtkIdType GetNumberOfPoints()const VTK_OVERRIDE;
137 void GetControlPoint(
vtkIdType index,
double* pos)const VTK_OVERRIDE;
138 void SetControlPoint(
vtkIdType index,
double *
point) VTK_OVERRIDE;
139 void EditPoint(
float tX,
float tY) VTK_OVERRIDE;
140 virtual
void EditPointCurve(
vtkIdType idx);
142 void MergeTransferFunctions();
143 void SilentMergeTransferFunctions();
148 bool UseOpacityPointHandles;
static vtkColorTransferControlPointsItem * New()
Creates a piecewise control points object.
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event.
Defines a 1D piecewise function.
vtkTypeUInt32 vtkMTimeType
Class for drawing 2D primitives to a graphical context.
a vtkContextItem that draws handles around a point of a piecewise function
bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event.
data structure to represent mouse events.
a simple class to control print indentation
Control points for vtkCompositeFunction.
vtkIdType AddPoint(double *newPos) override
Add a point to the function.
vtkIdType RemovePoint(double *pos) override
Remove a point of the function.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Control points for vtkColorTransferFunction.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the piecewise function to draw its points.
Defines a transfer function for mapping a property to an RGB color value.
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.