VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
26 
27 VTK_ABI_NAMESPACE_BEGIN
28 class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkStreamerBase : public vtkAlgorithm
29 {
30 public:
31  vtkTypeMacro(vtkStreamerBase, vtkAlgorithm);
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
39 
40 protected:
42  ~vtkStreamerBase() override;
43 
45  {
46  return 1;
47  }
48 
53  virtual int RequestUpdateExtent(
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.
66  virtual int PostExecute(vtkInformationVector**, vtkInformationVector*) { return 1; }
67 
68  unsigned int NumberOfPasses;
69  unsigned int CurrentIndex;
70 
71 private:
72  vtkStreamerBase(const vtkStreamerBase&) = delete;
73  void operator=(const vtkStreamerBase&) = delete;
74 };
75 
76 VTK_ABI_NAMESPACE_END
77 #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:53
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.
#define VTK_MARSHALAUTO