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 =========================================================================*/
30 #ifndef vtkUnstructuredGridAlgorithm_h
31 #define vtkUnstructuredGridAlgorithm_h
32 
33 #include "vtkCommonExecutionModelModule.h" // For export macro
34 #include "vtkAlgorithm.h"
35 
36 class vtkDataSet;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
47 
48  vtkUnstructuredGrid* GetOutput();
49  vtkUnstructuredGrid* GetOutput(int);
50  virtual void SetOutput(vtkDataObject* d);
52 
54 
55  virtual int ProcessRequest(vtkInformation*,
59 
60  // this method is not recommended for use, but lots of old style filters
61  // use it
62  vtkDataObject *GetInput(int port);
63  vtkDataObject *GetInput() { return this->GetInput(0); };
64  vtkUnstructuredGrid *GetUnstructuredGridInput(int port);
65 
67 
70  void SetInputData(vtkDataObject *);
71  void SetInputData(int, vtkDataObject*);
73 
75 
78  void AddInputData(vtkDataObject *);
79  void AddInputData(int, vtkDataObject*);
81 
82 protected:
85 
86  // convenience method
87  virtual int RequestInformation(vtkInformation* request,
88  vtkInformationVector** inputVector,
89  vtkInformationVector* outputVector);
90 
92 
94  virtual int RequestData(vtkInformation* request,
95  vtkInformationVector** inputVector,
96  vtkInformationVector* outputVector);
98 
100 
102  virtual int RequestUpdateExtent(vtkInformation*,
106 
107  // see algorithm for more info
110 
111 private:
113  void operator=(const vtkUnstructuredGridAlgorithm&); // Not implemented.
114 };
115 
116 #endif
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:61
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
virtual int FillOutputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
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()
general representation of visualization data
Definition: vtkDataObject.h:64
void PrintSelf(ostream &os, vtkIndent indent)