VTK  9.1.0
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=========================================================================*/
63#ifndef vtkDecimatePolylineFilter_h
64#define vtkDecimatePolylineFilter_h
65
66#include "vtkFiltersCoreModule.h" // For export macro
67#include "vtkSmartPointer.h" // Needed for SP ivars
68
70
72
73class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
74{
75public:
77
81 void PrintSelf(ostream& os, vtkIndent indent) override;
83
88
90
95 vtkSetClampMacro(TargetReduction, double, 0.0, 1.0);
96 vtkGetMacro(TargetReduction, double);
98
100
106 vtkSetClampMacro(MaximumError, double, 0.0, VTK_DOUBLE_MAX);
107 vtkGetMacro(MaximumError, double);
109
111
116 vtkSetMacro(OutputPointsPrecision, int);
117 vtkGetMacro(OutputPointsPrecision, int);
119
120protected:
123
125
126 class Polyline;
127 double ComputeError(vtkPolyData* input, Polyline* polyline, vtkIdType id);
128
133
134private:
136 void operator=(const vtkDecimatePolylineFilter&) = delete;
137};
138
139#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:113
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:195
a list of ids arranged in priority order
int vtkIdType
Definition: vtkType.h:332
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165