VTK
vtkExtractSurface.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractSurface.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See LICENSE file 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 =========================================================================*/
89 #ifndef vtkExtractSurface_h
90 #define vtkExtractSurface_h
91 
92 #include "vtkFiltersPointsModule.h" // For export macro
93 #include "vtkPolyDataAlgorithm.h"
94 #include "vtkContourValues.h" // Passes calls through
95 
96 class vtkImageData;
97 
98 class VTKFILTERSPOINTS_EXPORT vtkExtractSurface : public vtkPolyDataAlgorithm
99 {
100 public:
102 
106  static vtkExtractSurface *New();
108  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
110 
112 
118  vtkSetClampMacro(Radius,double,0.0,VTK_FLOAT_MAX);
119  vtkGetMacro(Radius,double);
121 
123 
127  vtkSetMacro(HoleFilling,bool);
128  vtkGetMacro(HoleFilling,bool);
129  vtkBooleanMacro(HoleFilling,bool);
131 
133 
139  vtkSetMacro(ComputeNormals,int);
140  vtkGetMacro(ComputeNormals,int);
141  vtkBooleanMacro(ComputeNormals,int);
143 
145 
153  vtkSetMacro(ComputeGradients,int);
154  vtkGetMacro(ComputeGradients,int);
155  vtkBooleanMacro(ComputeGradients,int);
157 
158 protected:
160  ~vtkExtractSurface() VTK_OVERRIDE;
161 
162  double Radius;
163  bool HoleFilling;
164  int ComputeNormals;
165  int ComputeGradients;
166 
167  int RequestData(vtkInformation *, vtkInformationVector **,
168  vtkInformationVector *) VTK_OVERRIDE;
169  int RequestUpdateExtent(vtkInformation *, vtkInformationVector **,
170  vtkInformationVector *) VTK_OVERRIDE;
171  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
172 
173 private:
174  vtkExtractSurface(const vtkExtractSurface&) VTK_DELETE_FUNCTION;
175  void operator=(const vtkExtractSurface&) VTK_DELETE_FUNCTION;
176 };
177 
178 #endif
Store vtkAlgorithm input/output information.
static vtkPolyDataAlgorithm * New()
#define VTK_FLOAT_MAX
Definition: vtkType.h:165
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:33
topologically and geometrically regular array of data
Definition: vtkImageData.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
generate zero-crossing isosurface from truncated signed distance volume