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 =========================================================================*/
24 #ifndef __vtkExtractPiece_h
25 #define __vtkExtractPiece_h
26 
28 
29 class vtkImageData;
30 class vtkPolyData;
31 class vtkRectilinearGrid;
32 class vtkStructuredGrid;
35 
37 {
38 public:
39  static vtkExtractPiece* New();
41  void PrintSelf(ostream& os, vtkIndent indent);
42 
43 protected:
46 
47  virtual int RequestDataObject(vtkInformation* request,
48  vtkInformationVector** inputVector,
49  vtkInformationVector* outputVector);
50 
51  virtual int RequestUpdateExtent(vtkInformation*,
54  virtual int RequestData(vtkInformation*,
57 
58  void ExtractImageData(vtkImageData *imageData,
59  vtkCompositeDataSet *output,
60  int piece, int numberOfPieces, int ghostLevel,
62  void ExtractPolyData(vtkPolyData *polyData,
63  vtkCompositeDataSet *output,
64  int piece, int numberOfPieces, int ghostLevel,
66  void ExtractRectilinearGrid(vtkRectilinearGrid *rGrid,
67  vtkCompositeDataSet *output,
68  int piece, int numberOfPieces, int ghostLevel,
70  void ExtractStructuredGrid(vtkStructuredGrid *sGrid,
71  vtkCompositeDataSet *output,
72  int piece, int numberOfPieces, int ghostLevel,
74  void ExtractUnstructuredGrid(vtkUnstructuredGrid *uGrid,
75  vtkCompositeDataSet *output,
76  int piece, int numberOfPieces, int ghostLevel,
78 private:
79  vtkExtractPiece(const vtkExtractPiece&); // Not implemented.
80  void operator=(const vtkExtractPiece&); // Not implemented.
81 };
82 
83 #endif