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 
46 #include "vtkPolyDataAlgorithm.h"
47 
48 class vtkPriorityQueue;
49 
50 
51 class VTKFILTERSCORE_EXPORT vtkDecimatePolylineFilter : public vtkPolyDataAlgorithm
52 {
53 public:
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 
87 protected:
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 
102 private:
103  vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
104  void operator=(const vtkDecimatePolylineFilter&) VTK_DELETE_FUNCTION;
105 };
106 
107 #endif
108 
109 
vtkDecimatePolylineFilter::vtkDecimatePolylineFilter
vtkDecimatePolylineFilter()
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkPriorityQueue
a list of ids arranged in priority order
Definition: vtkPriorityQueue.h:47
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition: vtkSmartPointer.h:36
vtkDecimatePolylineFilter::New
static vtkDecimatePolylineFilter * New()
Instantiate this object with a target reduction of 0.90.
vtkDecimatePolylineFilter
reduce the number of lines in a polyline
Definition: vtkDecimatePolylineFilter.h:52
vtkPolyDataAlgorithm.h
vtkDecimatePolylineFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkSmartPointer.h
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkDecimatePolylineFilter::~vtkDecimatePolylineFilter
~vtkDecimatePolylineFilter() override
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:45