VTK  9.0.1
vtkExtractPiece.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExtractPiece.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 =========================================================================*/
25 #ifndef vtkExtractPiece_h
26 #define vtkExtractPiece_h
27 
29 #include "vtkFiltersParallelImagingModule.h" // For export macro
30 
31 class vtkImageData;
32 class vtkPolyData;
33 class vtkRectilinearGrid;
34 class vtkStructuredGrid;
37 
38 class VTKFILTERSPARALLELIMAGING_EXPORT vtkExtractPiece : public vtkCompositeDataSetAlgorithm
39 {
40 public:
41  static vtkExtractPiece* New();
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
45 protected:
47  ~vtkExtractPiece() override {}
48 
49  int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
50  vtkInformationVector* outputVector) override;
51 
54 
55  void ExtractImageData(vtkImageData* imageData, vtkCompositeDataSet* output, int piece,
56  int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
57  void ExtractPolyData(vtkPolyData* polyData, vtkCompositeDataSet* output, int piece,
58  int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
59  void ExtractRectilinearGrid(vtkRectilinearGrid* rGrid, vtkCompositeDataSet* output, int piece,
60  int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
61  void ExtractStructuredGrid(vtkStructuredGrid* sGrid, vtkCompositeDataSet* output, int piece,
62  int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
63  void ExtractUnstructuredGrid(vtkUnstructuredGrid* uGrid, vtkCompositeDataSet* output, int piece,
64  int numberOfPieces, int ghostLevel, vtkCompositeDataIterator* iter);
65 
66 private:
67  vtkExtractPiece(const vtkExtractPiece&) = delete;
68  void operator=(const vtkExtractPiece&) = delete;
69 };
70 
71 #endif
vtkCompositeDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkCompositeDataSetAlgorithm.h:89
vtkExtractPiece
Definition: vtkExtractPiece.h:38
vtkExtractPiece::vtkExtractPiece
vtkExtractPiece()
Definition: vtkExtractPiece.h:46
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:51
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:57
vtkExtractPiece::~vtkExtractPiece
~vtkExtractPiece() override
Definition: vtkExtractPiece.h:47
vtkCompositeDataSet
abstract superclass for composite (multi-block or AMR) datasets
Definition: vtkCompositeDataSet.h:45
vtkCompositeDataSetAlgorithm::New
static vtkCompositeDataSetAlgorithm * New()
vtkCompositeDataSetAlgorithm.h
vtkCompositeDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCompositeDataSetAlgorithm
Superclass for algorithms that produce only vtkCompositeDataSet as output.
Definition: vtkCompositeDataSetAlgorithm.h:32
vtkCompositeDataSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkCompositeDataSetAlgorithm.h:71
vtkCompositeDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkCompositeDataSetAlgorithm.h:99
vtkCompositeDataIterator
superclass for composite data iterators
Definition: vtkCompositeDataIterator.h:35
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:41
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:92