VTK  9.1.0
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
27class vtkIdList;
28class vtkIntArray;
29
30class VTKFILTERSPARALLEL_EXPORT vtkExtractUnstructuredGridPiece
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
42 vtkSetMacro(CreateGhostCells, vtkTypeBool);
43 vtkGetMacro(CreateGhostCells, vtkTypeBool);
44 vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
46
47protected:
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
64private:
65 void AddFirstGhostLevel(
66 vtkUnstructuredGrid* input, vtkIntArray* cellTags, int piece, int numPieces);
67
69 void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
70};
71
72#endif
Return specified piece, including specified number of ghost levels.
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkUnstructuredGrid *input)
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel)
~vtkExtractUnstructuredGridPiece() override=default
static vtkExtractUnstructuredGridPiece * New()
list of point or cell ids
Definition: vtkIdList.h:140
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:149
Superclass for algorithms that produce only unstructured grid as output.
dataset represents arbitrary combinations of all possible cell types
int vtkTypeBool
Definition: vtkABI.h:69