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
vtkStreamerBase::NumberOfPasses
unsigned int NumberOfPasses
Definition: vtkStreamerBase.h:88
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkStreamerBase::PostExecute
virtual int PostExecute(vtkInformationVector **, vtkInformationVector *)
Definition: vtkStreamerBase.h:82
vtkAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkStreamerBase
Superclass for filters that stream input pipeline.
Definition: vtkStreamerBase.h:39
vtkStreamerBase::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition: vtkStreamerBase.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Upstream/Downstream requests form the generalized interface through which executives invoke a algorit...
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStreamerBase::CurrentIndex
unsigned int CurrentIndex
Definition: vtkStreamerBase.h:89