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 =========================================================================*/
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 
58 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
59 {
60 public:
62 
66  void PrintSelf(ostream& os, vtkIndent indent) override;
68 
73 
75 
80  vtkSetClampMacro(TargetReduction,double,0.0,1.0);
81  vtkGetMacro(TargetReduction,double);
83 
85 
91  vtkSetClampMacro(MaximumError,double,0.0,VTK_DOUBLE_MAX);
92  vtkGetMacro(MaximumError,double);
94 
96 
101  vtkSetMacro(OutputPointsPrecision,int);
102  vtkGetMacro(OutputPointsPrecision,int);
104 
105 protected:
107  ~vtkDecimatePolylineFilter() override;
108 
110 
111  class Polyline;
112  double ComputeError( vtkPolyData* input, Polyline* polyline, vtkIdType id );
113 
116  double MaximumError;
118 
119 private:
121  void operator=(const vtkDecimatePolylineFilter&) = delete;
122 };
123 
124 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:169
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
int vtkIdType
Definition: vtkType.h:347
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
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
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
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.