VTK  9.5.20251019
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 "vtkmAlgorithm.h" // For vtkmAlgorithm
21#include "vtkmlib/vtkmInitializer.h" // Need for initializing viskores
22
23#ifndef __VTK_WRAP__
24#define vtkUnstructuredGridAlgorithm vtkmAlgorithm<vtkUnstructuredGridAlgorithm>
25#endif
26
27VTK_ABI_NAMESPACE_BEGIN
28class vtkDataSet;
30
31class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmCleanGrid : public vtkUnstructuredGridAlgorithm
32{
33public:
35#ifndef __VTK_WRAP__
36#undef vtkUnstructuredGridAlgorithm
37#endif
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39 static vtkmCleanGrid* New();
40
42
47 vtkSetMacro(CompactPoints, bool);
48 vtkGetMacro(CompactPoints, bool);
49 vtkBooleanMacro(CompactPoints, bool);
51
52protected:
54 ~vtkmCleanGrid() override;
55
58
60
61private:
62 vtkmCleanGrid(const vtkmCleanGrid&) = delete;
63 void operator=(const vtkmCleanGrid&) = delete;
64 vtkmInitializer Initializer;
65};
66
67VTK_ABI_NAMESPACE_END
68#endif // vtkmCleanGrid_h
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
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
~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.