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 =========================================================================*/
39 #ifndef vtkDecimatePolylineFilter_h
40 #define vtkDecimatePolylineFilter_h
41 
42 #include "vtkFiltersCoreModule.h" // For export macro
43 #include "vtkSmartPointer.h" // Needed for SP ivars
44 
45 #include "vtkPolyDataAlgorithm.h"
46 
47 class vtkPriorityQueue;
48 
49 
51 {
52 public:
54 
56  void PrintSelf(ostream& os, vtkIndent indent);
58 
61 
63 
66  vtkSetClampMacro(TargetReduction,double,0.0,1.0);
67  vtkGetMacro(TargetReduction,double);
69 
71 
74  vtkSetMacro(OutputPointsPrecision,int);
75  vtkGetMacro(OutputPointsPrecision,int);
77 
78 protected:
81 
83 
84  class Polyline;
85  double ComputeError( vtkPolyData* input,
86  Polyline* polyline,
87  vtkIdType id );
88 
92 
93 private:
94  vtkDecimatePolylineFilter(const vtkDecimatePolylineFilter&); // Not implemented.
95  void operator=(const vtkDecimatePolylineFilter&); // Not implemented.
96 };
97 
98 #endif
99 
100 
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTKFILTERSCORE_EXPORT
int vtkIdType
Definition: vtkType.h:247
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
reduce the number of lines in a polyline
a list of ids arranged in priority order
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkSmartPointer< vtkPriorityQueue > PriorityQueue
Store zero or more vtkInformation instances.