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 =========================================================================*/
66 #ifndef vtkDecimatePolylineFilter_h
67 #define vtkDecimatePolylineFilter_h
68 
69 #include "vtkFiltersCoreModule.h" // For export macro
70 #include "vtkSmartPointer.h" // Needed for SP ivars
71 
72 #include "vtkPolyDataAlgorithm.h"
73 
74 class vtkPriorityQueue;
75 
76 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
77 {
78 public:
80 
84  void PrintSelf(ostream& os, vtkIndent indent) override;
86 
91 
93 
98  vtkSetClampMacro(TargetReduction, double, 0.0, 1.0);
99  vtkGetMacro(TargetReduction, double);
101 
103 
109  vtkSetClampMacro(MaximumError, double, 0.0, VTK_DOUBLE_MAX);
110  vtkGetMacro(MaximumError, double);
112 
114 
119  vtkSetMacro(OutputPointsPrecision, int);
120  vtkGetMacro(OutputPointsPrecision, int);
122 
123 protected:
126 
128 
129  class Polyline;
130  double ComputeError(vtkPolyData* input, Polyline* polyline, vtkIdType id);
131 
134  double MaximumError;
136 
137 private:
139  void operator=(const vtkDecimatePolylineFilter&) = delete;
140 };
141 
142 #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:119
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:200
a list of ids arranged in priority order
int vtkIdType
Definition: vtkType.h:332
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165