VTK  9.3.20240417
vtkDensifyPolyData.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
3 
24 #ifndef vtkDensifyPolyData_h
25 #define vtkDensifyPolyData_h
26 
27 #include "vtkFiltersGeneralModule.h" // For export macro
28 #include "vtkPolyDataAlgorithm.h"
29 
30 VTK_ABI_NAMESPACE_BEGIN
31 class VTKFILTERSGENERAL_EXPORT vtkDensifyPolyData : public vtkPolyDataAlgorithm
32 {
33 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkSetMacro(NumberOfSubdivisions, unsigned int);
43  vtkGetMacro(NumberOfSubdivisions, unsigned int);
45 
46 protected:
48  ~vtkDensifyPolyData() override;
49 
51 
52  unsigned int NumberOfSubdivisions;
53 
54 private:
55  int FillInputPortInformation(int, vtkInformation*) override;
56 
57  vtkDensifyPolyData(const vtkDensifyPolyData&) = delete;
58  void operator=(const vtkDensifyPolyData&) = delete;
59 };
60 
61 VTK_ABI_NAMESPACE_END
62 #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:108
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.