|  | VTK
    9.0.1
    | 
 
 
 
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
 
   82   vtkSetMacro(PointsFunction, 
int);
 
   83   vtkGetMacro(PointsFunction, 
int);
 
  108   vtkSetMacro(UseOpacityPointHandles, 
bool);
 
  109   vtkGetMacro(UseOpacityPointHandles, 
bool);
 
  125   void emitEvent(
unsigned long event, 
void* params) 
override;
 
  133   void EditPoint(
float tX, 
float tY) 
override;
 
  134   virtual void EditPointCurve(
vtkIdType idx);
 
  136   void MergeTransferFunctions();
 
  137   void SilentMergeTransferFunctions();
 
  
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse and key events.
void emitEvent(unsigned long event, void *params) override
data structure to represent mouse events.
void GetControlPoint(vtkIdType index, double *point) const override
Returns the x and y coordinates as well as the midpoint and sharpness of the control point correspond...
void SetColorTransferFunction(vtkColorTransferFunction *function)
Set the piecewise function to draw its points.
bool MouseDoubleClickEvent(const vtkContextMouseEvent &mouse) override
Mouse button double click event.
void EditPoint(float tX, float tY) override
Class for drawing 2D primitives to a graphical context.
vtkIdType AddPoint(double *newPos) override
Add a point to 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.
vtkIdType GetNumberOfPoints() const override
Return the number of points in the color transfer function.
vtkPiecewiseFunction * OpacityFunction
Control points for vtkColorTransferFunction.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkColorTransferControlPointsItem * New()
Creates a piecewise control points object.
a simple class to control print indentation
void DrawPoint(vtkContext2D *painter, vtkIdType index) override
vtkIdType RemovePoint(double *pos) override
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 corresponding...
vtkPiecewisePointHandleItem * OpacityPointHandle
Defines a 1D piecewise function.
vtkMTimeType GetControlPointsMTime() override
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
bool UseOpacityPointHandles
Control points for vtkCompositeFunction.
vtkTypeUInt32 vtkMTimeType