VTK  9.2.5
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
30class vtkIdList;
31class vtkIntArray;
32
33class VTKFILTERSPARALLEL_EXPORT vtkExtractUnstructuredGridPiece
35{
36public:
39 void PrintSelf(ostream& os, vtkIndent indent) override;
40
42
45 vtkSetMacro(CreateGhostCells, vtkTypeBool);
46 vtkGetMacro(CreateGhostCells, vtkTypeBool);
47 vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
49
50protected:
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
67private:
68 void AddFirstGhostLevel(
69 vtkUnstructuredGrid* input, vtkIntArray* cellTags, int piece, int numPieces);
70
72 void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
73};
74
75#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:34
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:46
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