VTK
vtkUnstructuredGridBaseAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridBaseAlgorithm.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 =========================================================================*/
30 #ifndef vtkUnstructuredGridBaseAlgorithm_h
31 #define vtkUnstructuredGridBaseAlgorithm_h
32 
33 #include "vtkCommonExecutionModelModule.h" // For export macro
34 #include "vtkAlgorithm.h"
35 
36 class vtkDataSet;
38 
39 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUnstructuredGridBaseAlgorithm
40  : public vtkAlgorithm
41 {
42 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
51  vtkUnstructuredGridBase* GetOutput();
52  vtkUnstructuredGridBase* GetOutput(int);
53  virtual void SetOutput(vtkDataObject* d);
55 
59  int ProcessRequest(vtkInformation*,
61  vtkInformationVector*) override;
62 
64 
69  void SetInputData(vtkDataObject *);
70  void SetInputData(int, vtkDataObject*);
72 
74 
79  void AddInputData(vtkDataObject *);
80  void AddInputData(int, vtkDataObject*);
82 
83 protected:
85  ~vtkUnstructuredGridBaseAlgorithm() override;
86 
87  // convenience method
88  virtual int RequestInformation(vtkInformation* request,
89  vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
96  virtual int RequestData(vtkInformation* request,
97  vtkInformationVector** inputVector,
98  vtkInformationVector* outputVector);
99 
104  virtual int RequestDataObject(vtkInformation* request,
105  vtkInformationVector** inputVector,
106  vtkInformationVector* outputVector);
107 
112  virtual int RequestUpdateExtent(vtkInformation*,
113  vtkInformationVector**,
114  vtkInformationVector*);
115 
116  // see algorithm for more info
117  int FillOutputPortInformation(int port, vtkInformation* info) override;
118  int FillInputPortInformation(int port, vtkInformation* info) override;
119 
120 private:
121  vtkUnstructuredGridBaseAlgorithm(const vtkUnstructuredGridBaseAlgorithm&) = delete;
122  void operator=(const vtkUnstructuredGridBaseAlgorithm&) = delete;
123 };
124 
125 #endif
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
a simple class to control print indentation
Definition: vtkIndent.h:39
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
general representation of visualization data
Definition: vtkDataObject.h:64
dataset represents arbitrary combinations of all possible cell types.