VTK
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=========================================================================*/
40#ifndef vtkDecimatePolylineFilter_h
41#define vtkDecimatePolylineFilter_h
42
43#include "vtkFiltersCoreModule.h" // For export macro
44#include "vtkSmartPointer.h" // Needed for SP ivars
45
47
49
50
51class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
52{
53public:
55
59 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
61
66
68
73 vtkSetClampMacro(TargetReduction,double,0.0,1.0);
74 vtkGetMacro(TargetReduction,double);
76
78
83 vtkSetMacro(OutputPointsPrecision,int);
84 vtkGetMacro(OutputPointsPrecision,int);
86
87protected:
90
91 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) VTK_OVERRIDE;
92
93 class Polyline;
94 double ComputeError( vtkPolyData* input,
95 Polyline* polyline,
96 vtkIdType id );
97
99 double TargetReduction;
100 int OutputPointsPrecision;
101
102private:
103 vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
104 void operator=(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
105};
106
107#endif
108
109
reduce the number of lines in a polyline
~vtkDecimatePolylineFilter() override
static vtkDecimatePolylineFilter * New()
Instantiate this object with a target reduction of 0.90.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:40
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:86
a list of ids arranged in priority order
Hold a reference to a vtkObjectBase instance.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287