VTK
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 
34 #ifndef vtkPiecewiseControlPointsItem_h
35 #define vtkPiecewiseControlPointsItem_h
36 
37 #include "vtkChartsCoreModule.h" // For export macro
38 #include "vtkControlPointsItem.h"
39 
41 
42 class VTKCHARTSCORE_EXPORT vtkPiecewiseControlPointsItem: public vtkControlPointsItem
43 {
44 public:
46  virtual void PrintSelf(ostream &os, vtkIndent indent);
47 
52 
56  virtual void SetPiecewiseFunction(vtkPiecewiseFunction* function);
58 
61  vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction);
63 
69  virtual vtkIdType AddPoint(double* newPos);
70 
76  virtual vtkIdType RemovePoint(double* pos);
77 
79 
84  vtkSetMacro(StrokeMode, bool);
86 
87 protected:
90 
91  virtual void emitEvent(unsigned long event, void* params = 0);
92 
94 
95  virtual vtkIdType GetNumberOfPoints()const;
96  virtual void GetControlPoint(vtkIdType index, double *point)const;
97  virtual void SetControlPoint(vtkIdType index, double *point);
98  virtual void EditPoint(float tX, float tY);
99 
101 
102 private:
104  void operator=(const vtkPiecewiseControlPointsItem &) VTK_DELETE_FUNCTION;
105 };
106 
107 #endif
Abstract class for control points items.
a simple class to control print indentation
Definition: vtkIndent.h:40
Control points for vtkPiecewiseFunction.
virtual vtkIdType RemovePoint(double *pos)
Remove a point of the function.
virtual void SetPiecewiseFunction(vtkPiecewiseFunction *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.
static vtkPiecewiseControlPointsItem * New()
Creates a piecewise control points object.
virtual void EditPoint(float tX, float tY)
virtual vtkMTimeType GetControlPointsMTime()
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 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...
virtual void emitEvent(unsigned long event, void *params=0)
virtual vtkIdType GetNumberOfPoints() const
Returns the total number of points.
Defines a 1D piecewise function.
@ point
Definition: vtkX3D.h:236
@ index
Definition: vtkX3D.h:246
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248