VTK
vtkmExternalFaces.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 //=============================================================================
28 #ifndef vtkmExternalFaces_h
29 #define vtkmExternalFaces_h
30 
31 #include "vtkAlgorithm.h"
32 #include "vtkAcceleratorsVTKmModule.h" //required for correct implementation
33 
35 
36 class VTKACCELERATORSVTKM_EXPORT vtkmExternalFaces : public vtkAlgorithm
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41  static vtkmExternalFaces* New();
42 
46  void SetInputData(vtkUnstructuredGrid *ds);
47 
51  vtkUnstructuredGrid* GetOutput();
52 
54 
59  vtkSetMacro(CompactPoints, bool);
60  vtkGetMacro(CompactPoints, bool);
61  vtkBooleanMacro(CompactPoints, bool);
63 
64 protected:
66  ~vtkmExternalFaces();
67 
68  int FillInputPortInformation(int, vtkInformation *) override;
69  int FillOutputPortInformation(int, vtkInformation *) override;
70 
71  int ProcessRequest(vtkInformation*, vtkInformationVector**,
72  vtkInformationVector*) override;
73  virtual int RequestData(vtkInformation *, vtkInformationVector **,
74  vtkInformationVector *);
75 
76  bool CompactPoints;
77 
78 private:
79  vtkmExternalFaces(const vtkmExternalFaces&) = delete;
80  void operator=(const vtkmExternalFaces&) = delete;
81 };
82 
83 #endif // vtkmExternalFaces_h
84 // VTK-HeaderTest-Exclude: vtkmExternalFaces.h
generate External Faces of a DataSet
Store vtkAlgorithm input/output information.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
dataset represents arbitrary combinations of all possible cell types
Store zero or more vtkInformation instances.