VTK  9.4.20241222
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
17VTK_ABI_NAMESPACE_BEGIN
18class vtkDataObject;
19
20class VTKFILTERSPARALLEL_EXPORT vtkPieceRequestFilter : public vtkAlgorithm
21{
22public:
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
65protected:
67 ~vtkPieceRequestFilter() override = default;
68
69 virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
70 vtkInformationVector* outputVector);
71
73
75
76 int FillOutputPortInformation(int port, vtkInformation* info) override;
77 int FillInputPortInformation(int port, vtkInformation* info) override;
78
80 int Piece;
81
82private:
84 void operator=(const vtkPieceRequestFilter&) = delete;
85};
86
87VTK_ABI_NAMESPACE_END
88#endif
Superclass for all sources, filters, and sinks in VTK.
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.
vtkDataObject * GetOutput()
Get the output data object for a port on this algorithm.
static vtkPieceRequestFilter * New()
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
void SetInputData(vtkDataObject *)
Set an input of this algorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDataObject * GetOutput(int)
Get the output data object for a port on this algorithm.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_INT_MAX
Definition vtkType.h:144