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 
33 #ifndef __vtkPiecewiseControlPointsItem_h
34 #define __vtkPiecewiseControlPointsItem_h
35 
36 #include "vtkControlPointsItem.h"
37 
39 
41 {
42 public:
44  virtual void PrintSelf(ostream &os, vtkIndent indent);
45 
48 
50 
51  virtual void SetPiecewiseFunction(vtkPiecewiseFunction* function);
52  // Description
53  // Get the piecewise function
54  vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction);
56 
60  virtual vtkIdType AddPoint(double* newPos);
61 
65  virtual vtkIdType RemovePoint(double* pos);
66 
68 
70  vtkSetMacro(StrokeMode, bool);
72 
73 protected:
76 
77  virtual unsigned long int GetControlPointsMTime();
78 
79  virtual int GetNumberOfPoints()const;
80  virtual void GetControlPoint(vtkIdType index, double *point);
81  virtual void SetControlPoint(vtkIdType index, double *point);
82  virtual void EditPoint(float tX, float tY);
83 
85 
86 private:
88  void operator=(const vtkPiecewiseControlPointsItem &); // Not implemented.
89 };
90 
91 #endif
#define VTK_CHARTS_EXPORT
virtual void EditPoint(float vtkNotUsed(tX), float vtkNotUsed(tY))
virtual vtkIdType RemovePoint(double *pos)
Defines a 1D piecewise function.
Abstract class for control points items.
virtual void GetControlPoint(vtkIdType index, double *point)=0
virtual vtkIdType AddPoint(double *newPos)
int vtkIdType
Definition: vtkType.h:255
a simple class to control print indentation
Definition: vtkIndent.h:37
Control points for vtkPiecewiseFunction.
virtual unsigned long int GetControlPointsMTime()=0
virtual void PrintSelf(ostream &os, vtkIndent indent)
virtual int GetNumberOfPoints() const =0
virtual void SetControlPoint(vtkIdType index, double *point)=0
static vtkObject * New()