VTK
dox
Filters
Parallel
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
28
#include "
vtkUnstructuredGridAlgorithm.h
"
29
30
class
vtkIdList
;
31
class
vtkIntArray
;
32
33
class
VTKFILTERSPARALLEL_EXPORT
vtkExtractUnstructuredGridPiece
:
public
vtkUnstructuredGridAlgorithm
34
{
35
public
:
36
static
vtkExtractUnstructuredGridPiece
*
New
();
37
vtkTypeMacro(
vtkExtractUnstructuredGridPiece
,
vtkUnstructuredGridAlgorithm
);
38
void
PrintSelf
(ostream& os,
vtkIndent
indent);
39
41
44
vtkSetMacro
(CreateGhostCells,
int
);
45
vtkGetMacro(CreateGhostCells,
int
);
46
vtkBooleanMacro
(CreateGhostCells,
int
);
48
49
protected
:
50
vtkExtractUnstructuredGridPiece
();
51
~vtkExtractUnstructuredGridPiece
() {}
52
53
// Usual data generation method
54
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
55
virtual
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
56
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
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
64
int
CreateGhostCells
;
65
private
:
66
void
AddFirstGhostLevel(
vtkUnstructuredGrid
*input,
vtkIntArray
*cellTags,
67
int
piece,
int
numPieces);
68
69
vtkExtractUnstructuredGridPiece
(
const
vtkExtractUnstructuredGridPiece
&) VTK_DELETE_FUNCTION;
70
void
operator=(
const
vtkExtractUnstructuredGridPiece
&) VTK_DELETE_FUNCTION;
71
};
72
73
#endif
vtkExtractUnstructuredGridPiece::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkExtractUnstructuredGridPiece::~vtkExtractUnstructuredGridPiece
~vtkExtractUnstructuredGridPiece()
Definition:
vtkExtractUnstructuredGridPiece.h:51
vtkExtractUnstructuredGridPiece::New
static vtkExtractUnstructuredGridPiece * New()
vtkExtractUnstructuredGridPiece::AddGhostLevel
void AddGhostLevel(vtkUnstructuredGrid *input, vtkIntArray *cellTags, int ghostLevel)
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:40
vtkIntArray
dynamic, self-adjusting array of int
Definition:
vtkIntArray.h:46
vtkExtractUnstructuredGridPiece
Return specified piece, including specified number of ghost levels.
Definition:
vtkExtractUnstructuredGridPiece.h:34
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:37
vtkExtractUnstructuredGridPiece::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkExtractUnstructuredGridPiece::vtkExtractUnstructuredGridPiece
vtkExtractUnstructuredGridPiece()
vtkExtractUnstructuredGridPiece::ComputeCellTags
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkUnstructuredGrid *input)
vtkExtractUnstructuredGridPiece::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkUnstructuredGridAlgorithm.h
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition:
vtkUnstructuredGridAlgorithm.h:41
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition:
vtkUnstructuredGrid.h:83
vtkExtractUnstructuredGridPiece::CreateGhostCells
int CreateGhostCells
Definition:
vtkExtractUnstructuredGridPiece.h:64
vtkExtractUnstructuredGridPiece::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Generated by
1.8.20