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:
55  vtkmCleanGrid();
56  ~vtkmCleanGrid();
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
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
a simple class to control print indentation
Definition: vtkIndent.h:39
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:35