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:
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 
76 protected:
78  ~vtkPieceRequestFilter() override {}
79 
80  virtual int RequestDataObject(vtkInformation* request, vtkInformationVector** inputVector,
81  vtkInformationVector* outputVector);
82 
84 
86 
89 
91  int Piece;
92 
93 private:
95  void operator=(const vtkPieceRequestFilter&) = delete;
96 };
97 
98 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:63
general representation of visualization data
Definition: vtkDataObject.h:60
a simple class to control print indentation
Definition: vtkIndent.h:34
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Sets the piece request for upstream filters.
void SetInputData(int, vtkDataObject *)
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 *)
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)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPieceRequestFilter * New()
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
std::map< DataSetType, DataSet > Piece
Definition: VTXTypes.h:54
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_INT_MAX
Definition: vtkType.h:155