VTK  9.5.20250925
vtkStreamerBase.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
3
20#ifndef vtkStreamerBase_h
21#define vtkStreamerBase_h
22
23#include "vtkAlgorithm.h"
24#include "vtkFiltersCoreModule.h" // For export macro
25#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26
27VTK_ABI_NAMESPACE_BEGIN
28class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkStreamerBase : public vtkAlgorithm
29{
30public:
32 void PrintSelf(ostream& os, vtkIndent indent) override;
33
39
40protected:
42 ~vtkStreamerBase() override;
43
45 {
46 return 1;
47 }
48
55
56 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
57 vtkInformationVector* outputVector);
58
59 // This method is called during each execution pass. Subclasses
60 // should implement this to do actual work.
61 virtual int ExecutePass(
62 vtkInformationVector** inputVector, vtkInformationVector* outputVector) = 0;
63
64 // This method is called after streaming is completed. Subclasses
65 // can override this method to perform cleanup.
67
68 unsigned int NumberOfPasses;
69 unsigned int CurrentIndex;
70
71private:
72 vtkStreamerBase(const vtkStreamerBase&) = delete;
73 void operator=(const vtkStreamerBase&) = delete;
74};
75
76VTK_ABI_NAMESPACE_END
77#endif //_vtkStreamerBase_h
Superclass for all sources, filters, and sinks in VTK.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for filters that stream input pipeline.
virtual int PostExecute(vtkInformationVector **, vtkInformationVector *)
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)=0
This is called by the superclass.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
unsigned int CurrentIndex
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int ExecutePass(vtkInformationVector **inputVector, vtkInformationVector *outputVector)=0
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
~vtkStreamerBase() override
unsigned int NumberOfPasses
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_MARSHALAUTO