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 =========================================================================*/
29 #ifndef vtkUnstructuredGridBaseAlgorithm_h
30 #define vtkUnstructuredGridBaseAlgorithm_h
31 
32 #include "vtkCommonExecutionModelModule.h" // For export macro
33 #include "vtkAlgorithm.h"
34 
35 class vtkDataSet;
37 
39  : public vtkAlgorithm
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkUnstructuredGridBase* GetOutput();
49  vtkUnstructuredGridBase* GetOutput(int);
50  virtual void SetOutput(vtkDataObject* d);
52 
54 
55  virtual int ProcessRequest(vtkInformation*,
57  vtkInformationVector*);
59 
61 
64  void SetInputData(vtkDataObject *);
65  void SetInputData(int, vtkDataObject*);
67 
69 
72  void AddInputData(vtkDataObject *);
73  void AddInputData(int, vtkDataObject*);
75 
76 protected:
78  ~vtkUnstructuredGridBaseAlgorithm();
79 
80  // convenience method
81  virtual int RequestInformation(vtkInformation* request,
82  vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
86 
88  virtual int RequestData(vtkInformation* request,
89  vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
92 
94 
96  virtual int RequestDataObject(vtkInformation* request,
97  vtkInformationVector** inputVector,
98  vtkInformationVector* outputVector);
100 
102 
104  virtual int RequestUpdateExtent(vtkInformation*,
105  vtkInformationVector**,
106  vtkInformationVector*);
108 
109  // see algorithm for more info
110  virtual int FillOutputPortInformation(int port, vtkInformation* info);
111  virtual int FillInputPortInformation(int port, vtkInformation* info);
112 
113 private:
114  vtkUnstructuredGridBaseAlgorithm(const vtkUnstructuredGridBaseAlgorithm&); // Not implemented.
115  void operator=(const vtkUnstructuredGridBaseAlgorithm&); // Not implemented.
116 };
117 
118 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
a simple class to control print indentation
Definition: vtkIndent.h:38
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. May be mapped onto a non-standa...