VTK
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 
28 #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);
44 
45 protected:
48 
49  virtual int RequestDataObject(vtkInformation* request,
50  vtkInformationVector** inputVector,
51  vtkInformationVector* outputVector);
52 
59 
60  void ExtractImageData(vtkImageData *imageData,
61  vtkCompositeDataSet *output,
62  int piece, int numberOfPieces, int ghostLevel,
64  void ExtractPolyData(vtkPolyData *polyData,
65  vtkCompositeDataSet *output,
66  int piece, int numberOfPieces, int ghostLevel,
69  vtkCompositeDataSet *output,
70  int piece, int numberOfPieces, int ghostLevel,
73  vtkCompositeDataSet *output,
74  int piece, int numberOfPieces, int ghostLevel,
77  vtkCompositeDataSet *output,
78  int piece, int numberOfPieces, int ghostLevel,
80 private:
81  vtkExtractPiece(const vtkExtractPiece&) VTK_DELETE_FUNCTION;
82  void operator=(const vtkExtractPiece&) VTK_DELETE_FUNCTION;
83 };
84 
85 #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.
static vtkExtractPiece * New()
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void ExtractRectilinearGrid(vtkRectilinearGrid *rGrid, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
void ExtractStructuredGrid(vtkStructuredGrid *sGrid, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void ExtractPolyData(vtkPolyData *polyData, vtkCompositeDataSet *output, int piece, int numberOfPieces, int ghostLevel, vtkCompositeDataIterator *iter)
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
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
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