VTK  9.2.6
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 =========================================================================*/
56 #ifndef vtkDecimatePolylineFilter_h
57 #define vtkDecimatePolylineFilter_h
58 
59 #include "vtkFiltersCoreModule.h" // For export macro
60 #include "vtkSmartPointer.h" // Needed for SP ivars
61 
62 #include "vtkPolyDataAlgorithm.h"
63 
64 class vtkPriorityQueue;
65 
66 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
67 {
68 public:
70 
74  void PrintSelf(ostream& os, vtkIndent indent) override;
76 
81 
83 
88  vtkSetClampMacro(TargetReduction, double, 0.0, 1.0);
89  vtkGetMacro(TargetReduction, double);
91 
93 
99  vtkSetClampMacro(MaximumError, double, 0.0, VTK_DOUBLE_MAX);
100  vtkGetMacro(MaximumError, double);
102 
104 
109  vtkSetMacro(OutputPointsPrecision, int);
110  vtkGetMacro(OutputPointsPrecision, int);
112 
113 protected:
116 
118 
119  class Polyline;
120  double ComputeError(vtkPolyData* input, Polyline* polyline, vtkIdType id);
121 
124  double MaximumError;
126 
127 private:
129  void operator=(const vtkDecimatePolylineFilter&) = delete;
130 };
131 
132 #endif
reduce the number of lines in a polyline
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
~vtkDecimatePolylineFilter() override
static vtkDecimatePolylineFilter * New()
Instantiate this object with a target reduction of 0.90.
double ComputeError(vtkPolyData *input, Polyline *polyline, vtkIdType id)
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for type information and printing.
a simple class to control print indentation
Definition: vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:100
a list of ids arranged in priority order
int vtkIdType
Definition: vtkType.h:332
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165