VTK  9.3.20240328
vtkmCleanGrid.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright (c) Kitware, Inc.
3 // SPDX-FileCopyrightText: Copyright 2012 Sandia Corporation.
4 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
15 #ifndef vtkmCleanGrid_h
16 #define vtkmCleanGrid_h
17 
18 #include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
20 #include "vtkmlib/vtkmInitializer.h" // Need for initializing vtk-m
21 
22 VTK_ABI_NAMESPACE_BEGIN
23 class vtkDataSet;
25 
26 class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmCleanGrid : public vtkUnstructuredGridAlgorithm
27 {
28 public:
30 
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32  static vtkmCleanGrid* New();
33 
35 
40  vtkSetMacro(CompactPoints, bool);
41  vtkGetMacro(CompactPoints, bool);
42  vtkBooleanMacro(CompactPoints, bool);
44 
45 protected:
47  ~vtkmCleanGrid() override;
48 
51 
53 
54 private:
55  vtkmCleanGrid(const vtkmCleanGrid&) = delete;
56  void operator=(const vtkmCleanGrid&) = delete;
57  vtkmInitializer Initializer;
58 };
59 
60 VTK_ABI_NAMESPACE_END
61 #endif // vtkmCleanGrid_h
abstract class to specify dataset behavior
Definition: vtkDataSet.h:165
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 unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
removes redundant or unused cells and/or points
Definition: vtkmCleanGrid.h:27
~vtkmCleanGrid() override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkmCleanGrid * New()
int FillInputPortInformation(int, vtkInformation *) override
Fill the input port information objects for this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.