VTK  9.0.20200923
vtkTrivialConsumer.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTrivialConsumer.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkTrivialConsumer_h
26 #define vtkTrivialConsumer_h
27 
28 #include "vtkAlgorithm.h"
29 #include "vtkCommonExecutionModelModule.h" // For export macro
30 
31 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkTrivialConsumer : public vtkAlgorithm
32 {
33 public:
34  static vtkTrivialConsumer* New();
36  void PrintSelf(ostream& os, vtkIndent indent) override;
37 
38 protected:
40  ~vtkTrivialConsumer() override;
41 
42  int FillInputPortInformation(int, vtkInformation*) override;
43  int FillOutputPortInformation(int, vtkInformation*) override;
44 
45 private:
46  vtkTrivialConsumer(const vtkTrivialConsumer&) = delete;
47  void operator=(const vtkTrivialConsumer&) = delete;
48 };
49 
50 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:63
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkAlgorithm.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkAlgorithm::New
static vtkAlgorithm * New()
vtkTrivialConsumer
Consumer to consume data off of a pipeline.
Definition: vtkTrivialConsumer.h:31
vtkAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.