VTK
vtkStreamerBase.h
Go to the documentation of this file.
1 // -*- c++ -*-
2 /*=========================================================================
3 
4  Program: Visualization Toolkit
5  Module: vtkTemporalStatistics.h
6 
7  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
8  All rights reserved.
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
16 
33 #ifndef vtkStreamerBase_h
34 #define vtkStreamerBase_h
35 
36 #include "vtkFiltersCoreModule.h" // For export macro
37 #include "vtkAlgorithm.h"
38 
39 class VTKFILTERSCORE_EXPORT vtkStreamerBase : public vtkAlgorithm
40 {
41 public:
42  vtkTypeMacro(vtkStreamerBase, vtkAlgorithm);
43  void PrintSelf(ostream &os, vtkIndent indent) override;
44 
50  vtkInformationVector*) override;
51 
52 protected:
54  ~vtkStreamerBase() override;
55 
59  {
60  return 1;
61  }
62 
67  virtual int RequestUpdateExtent(vtkInformation*,
70 
71  virtual int RequestData(vtkInformation *request,
72  vtkInformationVector **inputVector,
73  vtkInformationVector *outputVector);
74 
75  // This method is called during each execution pass. Subclasses
76  // should implement this to do actual work.
77  virtual int ExecutePass(vtkInformationVector **inputVector,
78  vtkInformationVector *outputVector) = 0;
79 
80  // This method is called after streaming is completed. Subclasses
81  // can override this method to perform cleanup.
84  {
85  return 1;
86  }
87 
88  unsigned int NumberOfPasses;
89  unsigned int CurrentIndex;
90 
91 private:
92  vtkStreamerBase(const vtkStreamerBase &) = delete;
93  void operator=(const vtkStreamerBase &) = delete;
94 
95 };
96 
97 #endif //_vtkStreamerBase_h
Store vtkAlgorithm input/output information.
unsigned int CurrentIndex
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for filters that stream input pipeline.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int PostExecute(vtkInformationVector **, vtkInformationVector *)
unsigned int NumberOfPasses
Store zero or more vtkInformation instances.