VTK
vtkDecimatePolylineFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDecimatePolylineFilter.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 =========================================================================*/
44 #ifndef vtkDecimatePolylineFilter_h
45 #define vtkDecimatePolylineFilter_h
46 
47 #include "vtkFiltersCoreModule.h" // For export macro
48 #include "vtkSmartPointer.h" // Needed for SP ivars
49 
50 #include "vtkPolyDataAlgorithm.h"
51 
52 class vtkPriorityQueue;
53 
54 
55 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
56 {
57 public:
59 
63  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
70 
72 
77  vtkSetClampMacro(TargetReduction,double,0.0,1.0);
78  vtkGetMacro(TargetReduction,double);
80 
82 
88  vtkSetClampMacro(MaximumError,double,0.0,VTK_DOUBLE_MAX);
89  vtkGetMacro(MaximumError,double);
91 
93 
98  vtkSetMacro(OutputPointsPrecision,int);
99  vtkGetMacro(OutputPointsPrecision,int);
101 
102 protected:
104  ~vtkDecimatePolylineFilter() override;
105 
107 
108  class Polyline;
109  double ComputeError( vtkPolyData* input, Polyline* polyline, vtkIdType id );
110 
113  double MaximumError;
115 
116 private:
118  void operator=(const vtkDecimatePolylineFilter&) = delete;
119 };
120 
121 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:167
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:345
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:79
reduce the number of lines in a polyline
a list of ids arranged in priority order
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.