VTK  9.3.1
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 
26 VTK_ABI_NAMESPACE_BEGIN
27 class VTKFILTERSCORE_EXPORT vtkStreamerBase : public vtkAlgorithm
28 {
29 public:
30  vtkTypeMacro(vtkStreamerBase, vtkAlgorithm);
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
38 
39 protected:
41  ~vtkStreamerBase() override;
42 
44  {
45  return 1;
46  }
47 
52  virtual int RequestUpdateExtent(
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.
65  virtual int PostExecute(vtkInformationVector**, vtkInformationVector*) { return 1; }
66 
67  unsigned int NumberOfPasses;
68  unsigned int CurrentIndex;
69 
70 private:
71  vtkStreamerBase(const vtkStreamerBase&) = delete;
72  void operator=(const vtkStreamerBase&) = delete;
73 };
74 
75 VTK_ABI_NAMESPACE_END
76 #endif //_vtkStreamerBase_h
Store vtkAlgorithm input/output information.
unsigned int CurrentIndex
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int vtkTypeBool
Definition: vtkABI.h:64
virtual vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
Superclass for filters that stream input pipeline.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:51
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int PostExecute(vtkInformationVector **, vtkInformationVector *)
unsigned int NumberOfPasses
Store zero or more vtkInformation instances.