VTK  9.2.6
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 =========================================================================*/
24 #ifndef vtkExtractUnstructuredGridPiece_h
25 #define vtkExtractUnstructuredGridPiece_h
26 
27 #include "vtkFiltersParallelModule.h" // For export macro
29 
30 class vtkIdList;
31 class vtkIntArray;
32 
33 class VTKFILTERSPARALLEL_EXPORT vtkExtractUnstructuredGridPiece
35 {
36 public:
39  void PrintSelf(ostream& os, vtkIndent indent) override;
40 
42 
45  vtkSetMacro(CreateGhostCells, vtkTypeBool);
46  vtkGetMacro(CreateGhostCells, vtkTypeBool);
47  vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
49 
50 protected:
52  ~vtkExtractUnstructuredGridPiece() override = default;
53 
54  // Usual data generation method
58 
59  // A method for labeling which piece the cells belong to.
60  void ComputeCellTags(vtkIntArray* cellTags, vtkIdList* pointOwnership, int piece, int numPieces,
61  vtkUnstructuredGrid* input);
62 
63  void AddGhostLevel(vtkUnstructuredGrid* input, vtkIntArray* cellTags, int ghostLevel);
64 
66 
67 private:
68  void AddFirstGhostLevel(
69  vtkUnstructuredGrid* input, vtkIntArray* cellTags, int piece, int numPieces);
70 
72  void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
73 };
74 
75 #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:45
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:39
list of point or cell ids
Definition: vtkIdList.h:33
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.