VTK  9.1.0
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
29class vtkDataObject;
30
31class VTKFILTERSPARALLEL_EXPORT vtkPieceRequestFilter : public vtkAlgorithm
32{
33public:
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
61
63
69
74 vtkInformationVector* outputVector) override;
75
76protected:
78 ~vtkPieceRequestFilter() override = default;
79
80 virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
81 vtkInformationVector* outputVector);
82
84
86
87 int FillOutputPortInformation(int port, vtkInformation* info) override;
88 int FillInputPortInformation(int port, vtkInformation* info) override;
89
91 int Piece;
92
93private:
95 void operator=(const vtkPieceRequestFilter&) = delete;
96};
97
98#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:123
general representation of visualization data
a simple class to control print indentation
Definition: vtkIndent.h:113
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:69
#define VTK_INT_MAX
Definition: vtkType.h:155