VTK
vtkmCleanGrid.h
Go to the documentation of this file.
1 //=============================================================================
2 //
3 // Copyright (c) Kitware, Inc.
4 // All rights reserved.
5 // See LICENSE.txt for details.
6 //
7 // This software is distributed WITHOUT ANY WARRANTY; without even
8 // the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9 // PURPOSE. See the above copyright notice for more information.
10 //
11 // Copyright 2012 Sandia Corporation.
12 // Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
13 // the U.S. Government retains certain rights in this software.
14 //
15 //=============================================================================
26 #ifndef vtkmCleanGrid_h
27 #define vtkmCleanGrid_h
28 
30 #include "vtkAcceleratorsVTKmModule.h" //required for correct implementation
31 
32 class vtkDataSet;
34 
35 class VTKACCELERATORSVTKM_EXPORT vtkmCleanGrid : public vtkUnstructuredGridAlgorithm
36 {
37 public:
39 
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41  static vtkmCleanGrid* New();
42 
44 
49  vtkSetMacro(CompactPoints, bool);
50  vtkGetMacro(CompactPoints, bool);
51  vtkBooleanMacro(CompactPoints, bool);
53 
54 protected:
57 
58  int FillInputPortInformation(int, vtkInformation *) override;
59  int RequestData(vtkInformation *, vtkInformationVector **,
60  vtkInformationVector *) override;
61 
62  bool CompactPoints;
63 
64 private:
65  vtkmCleanGrid(const vtkmCleanGrid&) = delete;
66  void operator=(const vtkmCleanGrid&) = delete;
67 };
68 
69 #endif // vtkmCleanGrid_h
70 // VTK-HeaderTest-Exclude: vtkmCleanGrid.h
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkmCleanGrid
removes redundant or unused cells and/or points
Definition: vtkmCleanGrid.h:36
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:41
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:89