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) VTK_OVERRIDE;
44 
50  vtkInformationVector*) VTK_OVERRIDE;
51 
52 protected:
54  ~vtkStreamerBase() VTK_OVERRIDE;
55 
56  virtual int RequestInformation(vtkInformation*,
59  {
60  return 1;
61  }
62 
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 &) VTK_DELETE_FUNCTION;
93  void operator=(const vtkStreamerBase &) VTK_DELETE_FUNCTION;
94 
95 };
96 
97 #endif //_vtkStreamerBase_h
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
a simple class to control print indentation
Definition: vtkIndent.h:40
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.
int 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
~vtkStreamerBase() override
unsigned int NumberOfPasses