VTK  9.4.20241117
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
26VTK_ABI_NAMESPACE_BEGIN
27class VTKFILTERSCORE_EXPORT vtkStreamerBase : public vtkAlgorithm
28{
29public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
38
39protected:
41 ~vtkStreamerBase() override;
42
44 {
45 return 1;
46 }
47
54
55 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
56 vtkInformationVector* outputVector);
57
58 // This method is called during each execution pass. Subclasses
59 // should implement this to do actual work.
60 virtual int ExecutePass(
61 vtkInformationVector** inputVector, vtkInformationVector* outputVector) = 0;
62
63 // This method is called after streaming is completed. Subclasses
64 // can override this method to perform cleanup.
66
67 unsigned int NumberOfPasses;
68 unsigned int CurrentIndex;
69
70private:
71 vtkStreamerBase(const vtkStreamerBase&) = delete;
72 void operator=(const vtkStreamerBase&) = delete;
73};
74
75VTK_ABI_NAMESPACE_END
76#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