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 =========================================================================*/
47 #ifndef vtkDecimatePolylineFilter_h
48 #define vtkDecimatePolylineFilter_h
49 
50 #include "vtkFiltersCoreModule.h" // For export macro
51 #include "vtkSmartPointer.h" // Needed for SP ivars
52 
53 #include "vtkPolyDataAlgorithm.h"
54 
55 class vtkPriorityQueue;
56 
57 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
58 {
59 public:
61 
65  void PrintSelf(ostream& os, vtkIndent indent) override;
67 
72 
74 
79  vtkSetClampMacro(TargetReduction, double, 0.0, 1.0);
80  vtkGetMacro(TargetReduction, double);
82 
84 
90  vtkSetClampMacro(MaximumError, double, 0.0, VTK_DOUBLE_MAX);
91  vtkGetMacro(MaximumError, double);
93 
95 
100  vtkSetMacro(OutputPointsPrecision, int);
101  vtkGetMacro(OutputPointsPrecision, int);
103 
104 protected:
106  ~vtkDecimatePolylineFilter() override;
107 
109 
110  class Polyline;
111  double ComputeError(vtkPolyData* input, Polyline* polyline, vtkIdType id);
112 
115  double MaximumError;
117 
118 private:
120  void operator=(const vtkDecimatePolylineFilter&) = delete;
121 };
122 
123 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
Store vtkAlgorithm input/output information.
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:332
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:90
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:39
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.