VTK
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 "vtkFiltersParallelModule.h" // For export macro
27#include "vtkAlgorithm.h"
28
29class vtkDataObject;
30
31class VTKFILTERSPARALLEL_EXPORT vtkPieceRequestFilter : public vtkAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent);
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
73 virtual int ProcessRequest(vtkInformation* request,
74 vtkInformationVector** inputVector,
75 vtkInformationVector* outputVector);
76
77protected:
80
81 virtual int RequestDataObject(vtkInformation* request,
82 vtkInformationVector** inputVector,
83 vtkInformationVector* outputVector);
84
88
92
95
97 int Piece;
98
99private:
100 vtkPieceRequestFilter(const vtkPieceRequestFilter&) VTK_DELETE_FUNCTION;
101 void operator=(const vtkPieceRequestFilter&) VTK_DELETE_FUNCTION;
102};
103
104#endif
105
106
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
general representation of visualization data
Definition: vtkDataObject.h:65
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Sets the piece request for upstream filters.
void SetInputData(int, vtkDataObject *)
vtkDataObject * GetOutput()
Get the output data object for a port on this algorithm.
static vtkPieceRequestFilter * New()
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
see vtkAlgorithm for details
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
void SetInputData(vtkDataObject *)
Set an input of this algorithm.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDataObject * GetOutput(int)
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
#define VTK_INT_MAX
Definition: vtkType.h:153