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 "vtkFiltersParallelModule.h" // For export macro
26 #include "vtkAlgorithm.h"
27 
28 class vtkDataObject;
29 
31 {
32 public:
33  static vtkPieceRequestFilter *New();
35  void PrintSelf(ostream& os, vtkIndent indent);
36 
38 
39  vtkSetClampMacro(NumberOfPieces, int, 0, VTK_INT_MAX);
40  vtkGetMacro(NumberOfPieces, int);
42 
44 
45  vtkSetClampMacro(Piece, int, 0, VTK_INT_MAX);
46  vtkGetMacro(Piece, int);
48 
50 
51  vtkDataObject* GetOutput();
52  vtkDataObject* GetOutput(int);
54 
56 
57  void SetInputData(vtkDataObject*);
58  void SetInputData(int, vtkDataObject*);
60 
62 
63  virtual int ProcessRequest(vtkInformation* request,
64  vtkInformationVector** inputVector,
65  vtkInformationVector* outputVector);
67 
68 protected:
71 
72  virtual int RequestDataObject(vtkInformation* request,
73  vtkInformationVector** inputVector,
74  vtkInformationVector* outputVector);
75 
76  virtual int RequestData(vtkInformation*,
79 
80  virtual int RequestUpdateExtent(vtkInformation*,
83 
86 
88  int Piece;
89 
90 private:
91  vtkPieceRequestFilter(const vtkPieceRequestFilter&); // Not implemented.
92  void operator=(const vtkPieceRequestFilter&); // Not implemented.
93 };
94 
95 #endif
96 
97 
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:132
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
#define VTKFILTERSPARALLEL_EXPORT
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
Sets the piece request for upstream filters.
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)