#include <vtkDecimatePolylineFilter.h>
vtkDecimatePolylineFilter is a filter to reduce the number of lines in a polyline. The algorithm functions by evaluating an error metric for each vertex (i.e., the distance of the vertex to a line defined from the two vertices on either side of the vertex). Then, these vertices are placed into a priority queue, and those with larger errors are deleted first. The decimation continues until the target reduction is reached.
Definition at line 51 of file vtkDecimatePolylineFilter.h.
typedef vtkPolyDataAlgorithm | Superclass |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
static int | IsTypeOf (const char *type) |
static vtkDecimatePolylineFilter * | SafeDownCast (vtkObject *o) |
Public Member Functions | |
virtual void | SetTargetReduction (double) |
virtual double | GetTargetReduction () |
Static Public Member Functions | |
static vtkDecimatePolylineFilter * | New () |
Protected Member Functions | |
vtkDecimatePolylineFilter () | |
~vtkDecimatePolylineFilter () | |
int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
double | ComputeError (vtkPolyData *input, int prev, int id, int next) |
void | UpdateError (vtkPolyData *input, int iId) |
int | GetPrev (int iId) |
int | GetNext (int iId) |
Protected Attributes | |
vtkDecimatePolylineVertexErrorSTLMap * | ErrorMap |
vtkSmartPointer< vtkPriorityQueue > | PriorityQueue |
bool | Closed |
double | TargetReduction |
Standard methods for type information and printing.
Reimplemented from vtkPolyDataAlgorithm.
Definition at line 56 of file vtkDecimatePolylineFilter.h.
vtkDecimatePolylineFilter::vtkDecimatePolylineFilter | ( | ) | [protected] |
vtkDecimatePolylineFilter::~vtkDecimatePolylineFilter | ( | ) | [protected] |
virtual const char* vtkDecimatePolylineFilter::GetClassName | ( | ) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkPolyDataAlgorithm.
static int vtkDecimatePolylineFilter::IsTypeOf | ( | const char * | type | ) | [static] |
Standard methods for type information and printing.
Reimplemented from vtkPolyDataAlgorithm.
virtual int vtkDecimatePolylineFilter::IsA | ( | const char * | type | ) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkPolyDataAlgorithm.
static vtkDecimatePolylineFilter* vtkDecimatePolylineFilter::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Standard methods for type information and printing.
Reimplemented from vtkPolyDataAlgorithm.
void vtkDecimatePolylineFilter::PrintSelf | ( | ostream & | os, | |
vtkIndent | indent | |||
) | [virtual] |
Standard methods for type information and printing.
Reimplemented from vtkPolyDataAlgorithm.
static vtkDecimatePolylineFilter* vtkDecimatePolylineFilter::New | ( | ) | [static] |
Instantiate this object with a target reduction of 0.90.
Reimplemented from vtkPolyDataAlgorithm.
virtual void vtkDecimatePolylineFilter::SetTargetReduction | ( | double | ) | [virtual] |
Specify the desired reduction in the total number of polygons (e.g., if TargetReduction is set to 0.9, this filter will try to reduce the data set to 10% of its original size).
virtual double vtkDecimatePolylineFilter::GetTargetReduction | ( | ) | [virtual] |
Specify the desired reduction in the total number of polygons (e.g., if TargetReduction is set to 0.9, this filter will try to reduce the data set to 10% of its original size).
int vtkDecimatePolylineFilter::RequestData | ( | vtkInformation * | request, | |
vtkInformationVector ** | inputVector, | |||
vtkInformationVector * | outputVector | |||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkPolyDataAlgorithm.
double vtkDecimatePolylineFilter::ComputeError | ( | vtkPolyData * | input, | |
int | prev, | |||
int | id, | |||
int | next | |||
) | [protected] |
void vtkDecimatePolylineFilter::UpdateError | ( | vtkPolyData * | input, | |
int | iId | |||
) | [protected] |
int vtkDecimatePolylineFilter::GetPrev | ( | int | iId | ) | [protected] |
int vtkDecimatePolylineFilter::GetNext | ( | int | iId | ) | [protected] |
vtkDecimatePolylineVertexErrorSTLMap* vtkDecimatePolylineFilter::ErrorMap [protected] |
Definition at line 83 of file vtkDecimatePolylineFilter.h.
Definition at line 86 of file vtkDecimatePolylineFilter.h.
bool vtkDecimatePolylineFilter::Closed [protected] |
Definition at line 87 of file vtkDecimatePolylineFilter.h.
double vtkDecimatePolylineFilter::TargetReduction [protected] |
Definition at line 88 of file vtkDecimatePolylineFilter.h.