VTK  9.3.20240419
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:
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 
50 
52 
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 
73 
75 
78 
80  int Piece;
81 
82 private:
84  void operator=(const vtkPieceRequestFilter&) = delete;
85 };
86 
87 VTK_ABI_NAMESPACE_END
88 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:162
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Sets the piece request for upstream filters.
void SetInputData(int, vtkDataObject *)
Set an input of this algorithm.
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~vtkPieceRequestFilter() override=default
vtkDataObject * GetOutput()
Get the output data object for a port on this algorithm.
void SetInputData(vtkDataObject *)
Set an input of this algorithm.
vtkDataObject * GetOutput(int)
Get the output data object for a port on this algorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPieceRequestFilter * New()
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
std::map< DataSetType, DataSet > Piece
Definition: VTXTypes.h:43
int vtkTypeBool
Definition: vtkABI.h:64
#define VTK_INT_MAX
Definition: vtkType.h:144