VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
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
=========================================================================*/
41
#ifndef __vtkDecimatePolylineFilter_h
42
#define __vtkDecimatePolylineFilter_h
43
44
#include "
vtkSmartPointer.h
"
// Needed for SP ivars
45
46
#include "
vtkPolyDataAlgorithm.h
"
47
48
class
vtkPriorityQueue
;
49
50
51
class
VTK_GRAPHICS_EXPORT
vtkDecimatePolylineFilter
:
public
vtkPolyDataAlgorithm
52
{
53
public
:
55
56
vtkTypeMacro(
vtkDecimatePolylineFilter
,
vtkPolyDataAlgorithm
);
57
void
PrintSelf
(ostream& os,
vtkIndent
indent);
59
61
static
vtkDecimatePolylineFilter
*
New
();
62
64
67
vtkSetClampMacro(TargetReduction,
double
,0.0,1.0);
68
vtkGetMacro(TargetReduction,
double
);
70
71
protected
:
72
vtkDecimatePolylineFilter
();
73
~
vtkDecimatePolylineFilter
();
74
75
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
76
77
double
ComputeError(
vtkPolyData
* input,
int
prev,
int
id
,
int
next
);
78
void
UpdateError(
vtkPolyData
* input,
int
iId );
79
80
int
GetPrev(
int
iId );
81
int
GetNext(
int
iId );
82
83
struct
vtkDecimatePolylineVertexErrorSTLMap;
84
vtkDecimatePolylineVertexErrorSTLMap*
ErrorMap
;
85
86
vtkSmartPointer< vtkPriorityQueue >
PriorityQueue
;
87
bool
Closed
;
88
double
TargetReduction
;
89
90
private
:
91
vtkDecimatePolylineFilter
(
const
vtkDecimatePolylineFilter
&);
// Not implemented.
92
void
operator=(
const
vtkDecimatePolylineFilter
&);
// Not implemented.
93
};
94
95
#endif
96
97
Generated on Fri Aug 2 2013 12:19:49 for VTK by
1.8.4