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:
67 
68  int FillInputPortInformation(int, vtkInformation *) override;
69  int FillOutputPortInformation(int, vtkInformation *) override;
70 
72  vtkInformationVector*) override;
73  virtual int RequestData(vtkInformation *, vtkInformationVector **,
75 
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
vtkmExternalFaces::CompactPoints
bool CompactPoints
Definition: vtkmExternalFaces.h:76
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkmExternalFaces
generate External Faces of a DataSet
Definition: vtkmExternalFaces.h:36
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:87
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.