VTK  9.0.1
vtkExtractUnstructuredGridPiece.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractUnstructuredGridPiece.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
21 #ifndef vtkExtractUnstructuredGridPiece_h
22 #define vtkExtractUnstructuredGridPiece_h
23 
24 #include "vtkFiltersParallelModule.h" // For export macro
26 
27 class vtkIdList;
28 class vtkIntArray;
29 
30 class VTKFILTERSPARALLEL_EXPORT vtkExtractUnstructuredGridPiece
32 {
33 public:
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkSetMacro(CreateGhostCells, vtkTypeBool);
43  vtkGetMacro(CreateGhostCells, vtkTypeBool);
44  vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
46 
47 protected:
50 
51  // Usual data generation method
55 
56  // A method for labeling which piece the cells belong to.
57  void ComputeCellTags(vtkIntArray* cellTags, vtkIdList* pointOwnership, int piece, int numPieces,
58  vtkUnstructuredGrid* input);
59 
60  void AddGhostLevel(vtkUnstructuredGrid* input, vtkIntArray* cellTags, int ghostLevel);
61 
63 
64 private:
65  void AddFirstGhostLevel(
66  vtkUnstructuredGrid* input, vtkIntArray* cellTags, int piece, int numPieces);
67 
69  void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
70 };
71 
72 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Return specified piece, including specified number of ghost levels.
Store vtkAlgorithm input/output information.
static vtkUnstructuredGridAlgorithm * New()
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int vtkTypeBool
Definition: vtkABI.h:69
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
list of point or cell ids
Definition: vtkIdList.h:30
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.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.