VTK
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 : public vtkUnstructuredGridAlgorithm
31 {
32 public:
35  void PrintSelf(ostream& os, vtkIndent indent) override;
36 
38 
41  vtkSetMacro(CreateGhostCells, vtkTypeBool);
42  vtkGetMacro(CreateGhostCells, vtkTypeBool);
43  vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
45 
46 protected:
49 
50  // Usual data generation method
54 
55  // A method for labeling which piece the cells belong to.
56  void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership,
57  int piece, int numPieces, vtkUnstructuredGrid *input);
58 
59  void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags,int ghostLevel);
60 
62 private:
63  void AddFirstGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags,
64  int piece, int numPieces);
65 
67  void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
68 };
69 
70 #endif
vtkExtractUnstructuredGridPiece::~vtkExtractUnstructuredGridPiece
~vtkExtractUnstructuredGridPiece() override
Definition: vtkExtractUnstructuredGridPiece.h:48
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkUnstructuredGridAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkExtractUnstructuredGridPiece::CreateGhostCells
vtkTypeBool CreateGhostCells
Definition: vtkExtractUnstructuredGridPiece.h:61
vtkUnstructuredGridAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
vtkExtractUnstructuredGridPiece
Return specified piece, including specified number of ghost levels.
Definition: vtkExtractUnstructuredGridPiece.h:30
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:81
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69