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  virtual void SetPiecewiseFunction(vtkPiecewiseFunction* function);
52 
53  vtkGetObjectMacro(PiecewiseFunction, vtkPiecewiseFunction);
55 
59  virtual vtkIdType AddPoint(double* newPos);
60 
64  virtual vtkIdType RemovePoint(double* pos);
65 
67 
69  vtkSetMacro(StrokeMode, bool);
71 
72 protected:
75 
76  virtual void emitEvent(unsigned long event, void* params = 0);
77 
78  virtual unsigned long int GetControlPointsMTime();
79 
80  virtual vtkIdType GetNumberOfPoints()const;
81  virtual void GetControlPoint(vtkIdType index, double *point)const;
82  virtual void SetControlPoint(vtkIdType index, double *point);
83  virtual void EditPoint(float tX, float tY);
84 
86 
87 private:
89  void operator=(const vtkPiecewiseControlPointsItem &); // Not implemented.
90 };
91 
92 #endif