VTK  9.0.1
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 "vtkAlgorithm.h"
27 #include "vtkFiltersParallelModule.h" // For export macro
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 
74  vtkInformationVector* outputVector) override;
75 
76 protected:
78  ~vtkPieceRequestFilter() override {}
79 
80  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector);
82 
83  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
84 
85  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
86 
89 
91  int Piece;
92 
93 private:
95  void operator=(const vtkPieceRequestFilter&) = delete;
96 };
97 
98 #endif
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:155
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:69
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
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:33
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()
std::map< DataSetType, DataSet > Piece
Definition: VTXTypes.h:54
Sets the piece request for upstream filters.
general representation of visualization data
Definition: vtkDataObject.h:59