VTK
vtkPieceRequestFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPieceRequestFilter.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 =========================================================================*/
22 #ifndef __vtkPieceRequestFilter_h
23 #define __vtkPieceRequestFilter_h
24 
25 #include "vtkAlgorithm.h"
26 
27 class vtkDataObject;
28 
30 {
31 public:
32  static vtkPieceRequestFilter *New();
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
38  vtkSetClampMacro(NumberOfPieces, int, 0, VTK_INT_MAX);
39  vtkGetMacro(NumberOfPieces, int);
41 
43 
44  vtkSetClampMacro(Piece, int, 0, VTK_INT_MAX);
45  vtkGetMacro(Piece, int);
47 
49 
50  vtkDataObject* GetOutput();
51  vtkDataObject* GetOutput(int);
53 
55 
56  void SetInput(vtkDataObject*);
57  void SetInput(int, vtkDataObject*);
59 
61 
62  virtual int ProcessRequest(vtkInformation* request,
63  vtkInformationVector** inputVector,
64  vtkInformationVector* outputVector);
66 
67 protected:
70 
71  virtual int RequestDataObject(vtkInformation* request,
72  vtkInformationVector** inputVector,
73  vtkInformationVector* outputVector);
74 
75  virtual int RequestData(vtkInformation*,
78 
79  virtual int RequestUpdateExtent(vtkInformation*,
82 
85 
87  int Piece;
88 
89 private:
90  vtkPieceRequestFilter(const vtkPieceRequestFilter&); // Not implemented.
91  void operator=(const vtkPieceRequestFilter&); // Not implemented.
92 };
93 
94 #endif
95 
96 
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:123
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTK_PARALLEL_EXPORT
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
Sets the piece request for upstream filters.
general representation of visualization data
Definition: vtkDataObject.h:70
void PrintSelf(ostream &os, vtkIndent indent)