VTK
dox
Filters
Parallel
vtkExtractPolyDataPiece.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkExtractPolyDataPiece.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 vtkExtractPolyDataPiece_h
25
#define vtkExtractPolyDataPiece_h
26
27
#include "vtkFiltersParallelModule.h"
// For export macro
28
#include "
vtkPolyDataAlgorithm.h
"
29
30
class
vtkIdList
;
31
class
vtkIntArray
;
32
33
class
VTKFILTERSPARALLEL_EXPORT
vtkExtractPolyDataPiece
:
public
vtkPolyDataAlgorithm
34
{
35
public
:
36
static
vtkExtractPolyDataPiece
*
New
();
37
vtkTypeMacro(
vtkExtractPolyDataPiece
,
vtkPolyDataAlgorithm
);
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
:
50
vtkExtractPolyDataPiece
();
51
~vtkExtractPolyDataPiece
()
override
{}
52
53
// Usual data generation method
54
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
55
int
RequestUpdateExtent
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*)
override
;
56
57
// A method for labeling which piece the cells belong to.
58
void
ComputeCellTags
(
vtkIntArray
*cellTags,
vtkIdList
*pointOwnership,
59
int
piece,
int
numPieces,
vtkPolyData
*input);
60
61
void
AddGhostLevel
(
vtkPolyData
*input,
vtkIntArray
*cellTags,
int
ghostLevel);
62
63
vtkTypeBool
CreateGhostCells
;
64
private
:
65
vtkExtractPolyDataPiece
(
const
vtkExtractPolyDataPiece
&) =
delete
;
66
void
operator=(
const
vtkExtractPolyDataPiece
&) =
delete
;
67
};
68
69
#endif
vtkExtractPolyDataPiece::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:42
vtkExtractPolyDataPiece
Return specified piece, including specified number of ghost levels.
Definition:
vtkExtractPolyDataPiece.h:34
vtkExtractPolyDataPiece::New
static vtkExtractPolyDataPiece * New()
vtkPolyDataAlgorithm.h
vtkExtractPolyDataPiece::AddGhostLevel
void AddGhostLevel(vtkPolyData *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
vtkIdList
list of point or cell ids
Definition:
vtkIdList.h:37
vtkExtractPolyDataPiece::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExtractPolyDataPiece::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:87
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition:
vtkPolyData.h:86
vtkExtractPolyDataPiece::ComputeCellTags
void ComputeCellTags(vtkIntArray *cellTags, vtkIdList *pointOwnership, int piece, int numPieces, vtkPolyData *input)
vtkExtractPolyDataPiece::CreateGhostCells
vtkTypeBool CreateGhostCells
Definition:
vtkExtractPolyDataPiece.h:63
vtkExtractPolyDataPiece::~vtkExtractPolyDataPiece
~vtkExtractPolyDataPiece() override
Definition:
vtkExtractPolyDataPiece.h:51
vtkExtractPolyDataPiece::vtkExtractPolyDataPiece
vtkExtractPolyDataPiece()
vtkTypeBool
int vtkTypeBool
Definition:
vtkABI.h:69
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition:
vtkPolyDataAlgorithm.h:45
Generated by
1.8.20