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 
49  vtkUnstructuredGridBase* GetOutput(int);
50  virtual void SetOutput(vtkDataObject* d);
52 
54 
55  virtual int ProcessRequest(vtkInformation*,
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:
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*,
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:
115  void operator=(const vtkUnstructuredGridBaseAlgorithm&); // Not implemented.
116 };
117 
118 #endif
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
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
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkCommonExecutionModelModule.h
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:39
vtkUnstructuredGridBaseAlgorithm
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
Definition: vtkUnstructuredGridBaseAlgorithm.h:40
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65