VTK  9.3.1
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:
46  vtkmCleanGrid();
47  ~vtkmCleanGrid() override;
48 
49  int FillInputPortInformation(int, vtkInformation*) override;
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
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
static vtkUnstructuredGridAlgorithm * New()
int FillInputPortInformation(int port, vtkInformation *info) 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.
a simple class to control print indentation
Definition: vtkIndent.h:28
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that produce only unstructured grid as output.
Store zero or more vtkInformation instances.
removes redundant or unused cells and/or points
Definition: vtkmCleanGrid.h:26