VTK  9.0.3
vtkDensifyPolyData.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDensifyPolyData.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 =========================================================================*/
15 
33 #ifndef vtkDensifyPolyData_h
34 #define vtkDensifyPolyData_h
35 
36 #include "vtkFiltersGeneralModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 class VTKFILTERSGENERAL_EXPORT vtkDensifyPolyData : public vtkPolyDataAlgorithm
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
47 
50  vtkSetMacro(NumberOfSubdivisions, unsigned int);
51  vtkGetMacro(NumberOfSubdivisions, unsigned int);
53 
54 protected:
56  ~vtkDensifyPolyData() override;
57 
59 
60  unsigned int NumberOfSubdivisions;
61 
62 private:
63  int FillInputPortInformation(int, vtkInformation*) override;
64 
65  vtkDensifyPolyData(const vtkDensifyPolyData&) = delete;
66  void operator=(const vtkDensifyPolyData&) = delete;
67 };
68 
69 #endif
Densify the input by adding points at the centroid.
~vtkDensifyPolyData() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkDensifyPolyData * New()
unsigned int NumberOfSubdivisions
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.