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
36class vtkDataSet;
38
39class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUnstructuredGridBaseAlgorithm
40 : public vtkAlgorithm
41{
42public:
45 void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46
48
52 vtkUnstructuredGridBase* GetOutput(int);
53 virtual void SetOutput(vtkDataObject* d);
55
59 int ProcessRequest(vtkInformation*,
61 vtkInformationVector*) VTK_OVERRIDE;
62
64
69 void SetInputData(vtkDataObject *);
70 void SetInputData(int, vtkDataObject*);
72
74
79 void AddInputData(vtkDataObject *);
80 void AddInputData(int, vtkDataObject*);
82
83protected:
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
117 int FillOutputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
118 int FillInputPortInformation(int port, vtkInformation* info) VTK_OVERRIDE;
119
120private:
122 void operator=(const vtkUnstructuredGridBaseAlgorithm&) VTK_DELETE_FUNCTION;
123};
124
125#endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
general representation of visualization data
Definition: vtkDataObject.h:65
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only vtkUnstructureGridBase subclasses as output.
static vtkUnstructuredGridBaseAlgorithm * New()
dataset represents arbitrary combinations of all possible cell types.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447