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 
32 #ifndef _vtkStreamerBase_h
33 #define _vtkStreamerBase_h
34 
35 #include "vtkFiltersCoreModule.h" // For export macro
36 #include "vtkAlgorithm.h"
37 
39 {
40 public:
41  vtkTypeMacro(vtkStreamerBase, vtkAlgorithm);
42  virtual void PrintSelf(ostream &os, vtkIndent indent);
43 
45 
46  virtual int ProcessRequest(vtkInformation*,
50 
51 protected:
53  ~vtkStreamerBase();
54 
58  {
59  return 1;
60  }
61 
63 
65  virtual int RequestUpdateExtent(vtkInformation*,
69 
70  virtual int RequestData(vtkInformation *request,
71  vtkInformationVector **inputVector,
72  vtkInformationVector *outputVector);
73 
74  // This method is called during each execution pass. Subclasses
75  // should implement this to do actual work.
76  virtual int ExecutePass(vtkInformationVector **inputVector,
77  vtkInformationVector *outputVector) = 0;
78 
79  // This method is called after streaming is completed. Subclasses
80  // can override this method to perform cleanup.
83  {
84  return 1;
85  }
86 
87  unsigned int NumberOfPasses;
88  unsigned int CurrentIndex;
89 
90 private:
91  vtkStreamerBase(const vtkStreamerBase &); // Not implemented.
92  void operator=(const vtkStreamerBase &); // Not implemented.
93 
94 };
95 
96 #endif //_vtkStreamerBase_h
Store vtkAlgorithm input/output information.
unsigned int CurrentIndex
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
#define VTKFILTERSCORE_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for filters that stream input pipeline.
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int PostExecute(vtkInformationVector **, vtkInformationVector *)
unsigned int NumberOfPasses
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent)