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 =========================================================================*/
41 #ifndef vtkQuantizePolyDataPoints_h
42 #define vtkQuantizePolyDataPoints_h
43 
44 #include "vtkFiltersGeneralModule.h" // For export macro
45 #include "vtkCleanPolyData.h"
46 
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
55 
56  vtkSetClampMacro(QFactor,double,1E-5,VTK_FLOAT_MAX);
57  vtkGetMacro(QFactor,double);
59 
61  virtual void OperateOnPoint(double in[3], double out[3]);
62 
64  virtual void OperateOnBounds(double in[6], double out[6]);
65 
66 protected:
69 
70  double QFactor;
71 private:
72  vtkQuantizePolyDataPoints(const vtkQuantizePolyDataPoints&); // Not implemented.
73  void operator=(const vtkQuantizePolyDataPoints&); // Not implemented.
74 };
75 
76 #endif
77 
78 
merge duplicate points, and/or remove unused points and/or remove degenerate cells ...
virtual void OperateOnPoint(double in[3], double out[3])
#define VTK_FLOAT_MAX
Definition: vtkType.h:140
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual void OperateOnBounds(double in[6], double out[6])
#define VTKFILTERSGENERAL_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
static vtkCleanPolyData * New()
quantizes x,y,z coordinates of points