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 =========================================================================*/
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 : public vtkUnstructuredGridAlgorithm
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetMacro(CreateGhostCells, vtkTypeBool);
45  vtkGetMacro(CreateGhostCells, vtkTypeBool);
46  vtkBooleanMacro(CreateGhostCells, vtkTypeBool);
48 
49 protected:
52 
53  // Usual data generation method
57 
58  // A method for labeling which piece the cells belong to.
59  void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership,
60  int piece, int numPieces, vtkUnstructuredGrid *input);
61 
62  void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags,int ghostLevel);
63 
65 private:
66  void AddFirstGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags,
67  int piece, int numPieces);
68 
70  void operator=(const vtkExtractUnstructuredGridPiece&) = delete;
71 };
72 
73 #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:36
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.