VTK  9.3.1
vtkPieceRequestFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
11 #ifndef vtkPieceRequestFilter_h
12 #define vtkPieceRequestFilter_h
13 
14 #include "vtkAlgorithm.h"
15 #include "vtkFiltersParallelModule.h" // For export macro
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkDataObject;
19 
20 class VTKFILTERSPARALLEL_EXPORT vtkPieceRequestFilter : public vtkAlgorithm
21 {
22 public:
23  static vtkPieceRequestFilter* New();
25  void PrintSelf(ostream& os, vtkIndent indent) override;
26 
28 
31  vtkSetClampMacro(NumberOfPieces, int, 0, VTK_INT_MAX);
32  vtkGetMacro(NumberOfPieces, int);
34 
36 
39  vtkSetClampMacro(Piece, int, 0, VTK_INT_MAX);
40  vtkGetMacro(Piece, int);
42 
44 
47  vtkDataObject* GetOutput();
48  vtkDataObject* GetOutput(int);
50 
52 
55  void SetInputData(vtkDataObject*);
56  void SetInputData(int, vtkDataObject*);
58 
63  vtkInformationVector* outputVector) override;
64 
65 protected:
67  ~vtkPieceRequestFilter() override = default;
68 
69  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
70  vtkInformationVector* outputVector);
71 
72  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
73 
74  virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
75 
78 
80  int Piece;
81 
82 private:
84  void operator=(const vtkPieceRequestFilter&) = delete;
85 };
86 
87 VTK_ABI_NAMESPACE_END
88 #endif
Store vtkAlgorithm input/output information.
#define VTK_INT_MAX
Definition: vtkType.h:144
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
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:51
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:28
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:43
Sets the piece request for upstream filters.
general representation of visualization data
Definition: vtkDataObject.h:54