VTK
vtkUnstructuredGridAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkUnstructuredGridAlgorithm.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 =========================================================================*/
36 #ifndef __vtkUnstructuredGridAlgorithm_h
37 #define __vtkUnstructuredGridAlgorithm_h
38 
39 #include "vtkAlgorithm.h"
40 
41 class vtkDataSet;
43 
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  vtkUnstructuredGrid* GetOutput();
54  vtkUnstructuredGrid* GetOutput(int);
55  virtual void SetOutput(vtkDataObject* d);
57 
59 
60  virtual int ProcessRequest(vtkInformation*,
64 
65  // this method is not recommended for use, but lots of old style filters
66  // use it
67  vtkDataObject *GetInput(int port);
68  vtkDataObject *GetInput() { return this->GetInput(0); };
69  vtkUnstructuredGrid *GetUnstructuredGridInput(int port);
70 
72 
79  void SetInput(vtkDataObject *);
80  void SetInput(int, vtkDataObject*);
82 
84 
88  void AddInput(vtkDataObject *);
89  void AddInput(int, vtkDataObject*);
91 
92 protected:
95 
96  // convenience method
97  virtual int RequestInformation(vtkInformation* request,
98  vtkInformationVector** inputVector,
99  vtkInformationVector* outputVector);
100 
102 
104  virtual int RequestData(vtkInformation* request,
105  vtkInformationVector** inputVector,
106  vtkInformationVector* outputVector);
108 
110 
112  virtual int RequestUpdateExtent(vtkInformation*,
116 
118 
119  virtual void ExecuteData(vtkDataObject *output);
120  virtual void Execute();
122 
123  // see algorithm for more info
124  virtual int FillOutputPortInformation(int port, vtkInformation* info);
125  virtual int FillInputPortInformation(int port, vtkInformation* info);
126 
127 private:
129  void operator=(const vtkUnstructuredGridAlgorithm&); // Not implemented.
130 };
131 
132 #endif
Store vtkAlgorithm input/output information.
#define VTK_FILTERING_EXPORT
abstract class to specify dataset behavior
Definition: vtkDataSet.h:58
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:59
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that produce only unstructured grid as output.
virtual int FillInputPortInformation(int port, vtkInformation *info)
Store zero or more vtkInformation instances.
static vtkAlgorithm * New()
helper class to get VTK data object types as string and instantiate them
void PrintSelf(ostream &os, vtkIndent indent)