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 
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
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:59
vtkAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkUnstructuredGridBase
dataset represents arbitrary combinations of all possible cell types. May be mapped onto a non-standa...
Definition: vtkUnstructuredGridBase.h:37
vtkAlgorithm.h
vtkX3D::port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridBaseAlgorithm
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Definition: vtkUnstructuredGridBaseAlgorithm.h:39
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
Definition: vtkX3D.h:376
vtkAlgorithm::New
static vtkAlgorithm * New()
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.
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.