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
30class vtkIdList;
31class vtkIntArray;
32
33class VTKFILTERSPARALLEL_EXPORT vtkExtractUnstructuredGridPiece : public vtkUnstructuredGridAlgorithm
34{
35public:
38 void PrintSelf(ostream& os, vtkIndent indent);
39
41
44 vtkSetMacro(CreateGhostCells, int);
45 vtkGetMacro(CreateGhostCells, int);
46 vtkBooleanMacro(CreateGhostCells, int);
48
49protected:
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
65private:
66 void AddFirstGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags,
67 int piece, int numPieces);
68
70 void operator=(const vtkExtractUnstructuredGridPiece&) VTK_DELETE_FUNCTION;
71};
72
73#endif
Return specified piece, including specified number of ghost levels.
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkUnstructuredGrid *input)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel)
static vtkExtractUnstructuredGridPiece * New()
list of point or cell ids
Definition: vtkIdList.h:37
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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.