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=========================================================================*/
53#ifndef vtkDecimatePolylineFilter_h
54#define vtkDecimatePolylineFilter_h
55
56#include "vtkFiltersCoreModule.h" // For export macro
57#include "vtkSmartPointer.h" // Needed for SP ivars
58
60
62
63class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
64{
65public:
67
71 void PrintSelf(ostream& os, vtkIndent indent) override;
73
78
80
85 vtkSetClampMacro(TargetReduction, double, 0.0, 1.0);
86 vtkGetMacro(TargetReduction, double);
88
90
96 vtkSetClampMacro(MaximumError, double, 0.0, VTK_DOUBLE_MAX);
97 vtkGetMacro(MaximumError, double);
99
101
106 vtkSetMacro(OutputPointsPrecision, int);
107 vtkGetMacro(OutputPointsPrecision, int);
109
110protected:
113
115
116 class Polyline;
117 double ComputeError(vtkPolyData* input, Polyline* polyline, vtkIdType id);
118
123
124private:
126 void operator=(const vtkDecimatePolylineFilter&) = delete;
127};
128
129#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:43
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:95
a list of ids arranged in priority order
int vtkIdType
Definition: vtkType.h:332
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165