VTK  9.3.1
vtkmExternalFaces.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
17 #ifndef vtkmExternalFaces_h
18 #define vtkmExternalFaces_h
19 
20 #include "vtkAcceleratorsVTKmFiltersModule.h" //required for correct implementation
21 #include "vtkAlgorithm.h"
22 #include "vtkmlib/vtkmInitializer.h" // Need for initializing vtk-m
23 
24 VTK_ABI_NAMESPACE_BEGIN
26 
27 class VTKACCELERATORSVTKMFILTERS_EXPORT vtkmExternalFaces : public vtkAlgorithm
28 {
29 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32  static vtkmExternalFaces* New();
33 
37  void SetInputData(vtkUnstructuredGrid* ds);
38 
42  vtkUnstructuredGrid* GetOutput();
43 
45 
50  vtkSetMacro(CompactPoints, bool);
51  vtkGetMacro(CompactPoints, bool);
52  vtkBooleanMacro(CompactPoints, bool);
54 
55 protected:
57  ~vtkmExternalFaces() override;
58 
59  int FillInputPortInformation(int, vtkInformation*) override;
60  int FillOutputPortInformation(int, vtkInformation*) override;
61 
64  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
65 
67 
68 private:
69  vtkmExternalFaces(const vtkmExternalFaces&) = delete;
70  void operator=(const vtkmExternalFaces&) = delete;
71  vtkmInitializer Initializer;
72 };
73 
74 VTK_ABI_NAMESPACE_END
75 #endif // vtkmExternalFaces_h
generate External Faces of a DataSet
Store vtkAlgorithm input/output information.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:28
dataset represents arbitrary combinations of all possible cell types
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()