VTK  9.2.6
vtkPiecewiseControlPointsItem.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPiecewiseControlPointsItem.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
15
33
34#ifndef vtkPiecewiseControlPointsItem_h
35#define vtkPiecewiseControlPointsItem_h
36
37#include "vtkChartsCoreModule.h" // For export macro
39
41
42class VTKCHARTSCORE_EXPORT vtkPiecewiseControlPointsItem : public vtkControlPointsItem
43{
44public:
46 void PrintSelf(ostream& os, vtkIndent indent) override;
47
52
58
63
69 vtkIdType AddPoint(double* newPos) override;
70
76 vtkIdType RemovePoint(double* pos) override;
77
78protected:
81
82 void emitEvent(unsigned long event, void* params = nullptr) override;
83
85
86 vtkIdType GetNumberOfPoints() const override;
87 void GetControlPoint(vtkIdType index, double* point) const override;
88 void SetControlPoint(vtkIdType index, double* point) override;
89 void EditPoint(float tX, float tY) override;
90
92
93private:
95 void operator=(const vtkPiecewiseControlPointsItem&) = delete;
96};
97
98#endif
a simple class to control print indentation
Definition vtkIndent.h:40
vtkIdType RemovePoint(double *pos) override
Remove a point of the function.
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...
virtual void SetPiecewiseFunction(vtkPiecewiseFunction *function)
Set the piecewise function to draw its points.
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...
vtkIdType GetNumberOfPoints() const override
Returns the total number of points.
vtkMTimeType GetControlPointsMTime() override
Must be reimplemented by subclasses to calculate the points to draw.
~vtkPiecewiseControlPointsItem() override
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.
static vtkPiecewiseControlPointsItem * New()
Creates a piecewise control points object.
void emitEvent(unsigned long event, void *params=nullptr) override
void EditPoint(float tX, float tY) override
Defines a 1D piecewise function.
int vtkIdType
Definition vtkType.h:332
vtkTypeUInt32 vtkMTimeType
Definition vtkType.h:287