VTK  9.3.20240425
vtkExtractPiece.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
13#ifndef vtkExtractPiece_h
14#define vtkExtractPiece_h
15
17#include "vtkFiltersParallelImagingModule.h" // For export macro
18
19VTK_ABI_NAMESPACE_BEGIN
20class vtkImageData;
21class vtkPolyData;
26
27class VTKFILTERSPARALLELIMAGING_EXPORT vtkExtractPiece : public vtkCompositeDataSetAlgorithm
28{
29public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
34protected:
35 vtkExtractPiece() = default;
36 ~vtkExtractPiece() override = default;
37
39 vtkInformationVector* outputVector) override;
40
43
44 void ExtractImageData(vtkImageData* imageData, vtkCompositeDataSet* output, int piece,
45 int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
46 void ExtractPolyData(vtkPolyData* polyData, vtkCompositeDataSet* output, int piece,
47 int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
49 int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
51 int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
53 int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
54
55private:
56 vtkExtractPiece(const vtkExtractPiece&) = delete;
57 void operator=(const vtkExtractPiece&) = delete;
58};
59
60VTK_ABI_NAMESPACE_END
61#endif
superclass for composite data iterators
Superclass for algorithms that produce only vtkCompositeDataSet as output.
abstract superclass for composite (multi-block or AMR) datasets
vtkExtractPiece returns the appropriate piece of each sub-dataset in the vtkCompositeDataSet.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void ExtractRectilinearGrid(vtkRectilinearGrid *rGrid, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
~vtkExtractPiece() override=default
void ExtractStructuredGrid(vtkStructuredGrid *sGrid, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkExtractPiece * New()
vtkExtractPiece()=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void ExtractPolyData(vtkPolyData *polyData, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
This is called by the superclass.
void ExtractUnstructuredGrid(vtkUnstructuredGrid *uGrid, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
void ExtractImageData(vtkImageData *imageData, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
topologically and geometrically regular array of data
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
a dataset that is topologically regular with variable spacing in the three coordinate directions
topologically regular array of data
dataset represents arbitrary combinations of all possible cell types