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 
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:
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*,
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:
122  void operator=(const vtkUnstructuredGridBaseAlgorithm&) = delete;
123 };
124 
125 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types.
Definition: vtkUnstructuredGridBase.h:38
vtkAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkUnstructuredGridBaseAlgorithm::New
static vtkUnstructuredGridBaseAlgorithm * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkUnstructuredGridBaseAlgorithm
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Definition: vtkUnstructuredGridBaseAlgorithm.h:41
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65