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;
60  vtkInformationVector *) override;
61 
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:41
vtkmCleanGrid::CompactPoints
bool CompactPoints
Definition: vtkmCleanGrid.h:62
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkmCleanGrid
removes redundant or unused cells and/or points
Definition: vtkmCleanGrid.h:35
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:87