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 =========================================================================*/
23 #ifndef vtkPieceRequestFilter_h
24 #define vtkPieceRequestFilter_h
25 
26 #include "vtkFiltersParallelModule.h" // For export macro
27 #include "vtkAlgorithm.h"
28 
29 class vtkDataObject;
30 
31 class VTKFILTERSPARALLEL_EXPORT vtkPieceRequestFilter : public vtkAlgorithm
32 {
33 public:
34  static vtkPieceRequestFilter *New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
39 
42  vtkSetClampMacro(NumberOfPieces, int, 0, VTK_INT_MAX);
43  vtkGetMacro(NumberOfPieces, int);
45 
47 
50  vtkSetClampMacro(Piece, int, 0, VTK_INT_MAX);
51  vtkGetMacro(Piece, int);
53 
55 
58  vtkDataObject* GetOutput();
59  vtkDataObject* GetOutput(int);
61 
63 
66  void SetInputData(vtkDataObject*);
67  void SetInputData(int, vtkDataObject*);
69 
73  int ProcessRequest(vtkInformation* request,
74  vtkInformationVector** inputVector,
75  vtkInformationVector* outputVector) override;
76 
77 protected:
79  ~vtkPieceRequestFilter() override {}
80 
81  virtual int RequestDataObject(vtkInformation* request,
82  vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
85  virtual int RequestData(vtkInformation*,
88 
89  virtual int RequestUpdateExtent(vtkInformation*,
92 
94  int FillInputPortInformation(int port, vtkInformation* info) override;
95 
97  int Piece;
98 
99 private:
101  void operator=(const vtkPieceRequestFilter&) = delete;
102 };
103 
104 #endif
105 
106 
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:159
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
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