VTK
vtkQuantizePolyDataPoints.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQuantizePolyDataPoints.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 =========================================================================*/
42 #ifndef vtkQuantizePolyDataPoints_h
43 #define vtkQuantizePolyDataPoints_h
44 
45 #include "vtkFiltersGeneralModule.h" // For export macro
46 #include "vtkCleanPolyData.h"
47 
48 class VTKFILTERSGENERAL_EXPORT vtkQuantizePolyDataPoints : public vtkCleanPolyData
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
59  vtkSetClampMacro(QFactor,double,1E-5,VTK_FLOAT_MAX);
60  vtkGetMacro(QFactor,double);
62 
66  void OperateOnPoint(double in[3], double out[3]) override;
67 
71  void OperateOnBounds(double in[6], double out[6]) override;
72 
73 protected:
76 
77  double QFactor;
78 private:
80  void operator=(const vtkQuantizePolyDataPoints&) = delete;
81 };
82 
83 #endif
84 
85 
merge duplicate points, and/or remove unused points and/or remove degenerate cells ...
virtual void OperateOnPoint(double in[3], double out[3])
Perform operation on a point.
#define VTK_FLOAT_MAX
Definition: vtkType.h:167
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual void OperateOnBounds(double in[6], double out[6])
Perform operation on bounds.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCleanPolyData * New()
quantizes x,y,z coordinates of points