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 
50  virtual void SetOutput(vtkDataObject* d);
52 
54 
59 
60  // this method is not recommended for use, but lots of old style filters
61  // use it
63  vtkDataObject *GetInput() { return this->GetInput(0); };
65 
67 
73 
75 
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 
106 
107  // see algorithm for more info
110 
111 private:
113  void operator=(const vtkUnstructuredGridAlgorithm&); // Not implemented.
114 };
115 
116 #endif
vtkUnstructuredGridAlgorithm::ProcessRequest
virtual int ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
VTKCOMMONEXECUTIONMODEL_EXPORT
#define VTKCOMMONEXECUTIONMODEL_EXPORT
Definition: vtkCommonExecutionModelModule.h:15
vtkUnstructuredGridAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
vtkUnstructuredGridAlgorithm::SetOutput
virtual void SetOutput(vtkDataObject *d)
vtkUnstructuredGridAlgorithm::AddInputData
void AddInputData(int, vtkDataObject *)
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:62
vtkUnstructuredGridAlgorithm::FillOutputPortInformation
virtual int FillOutputPortInformation(int port, vtkInformation *info)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkUnstructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkUnstructuredGridAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkCommonExecutionModelModule.h
vtkUnstructuredGridAlgorithm::GetInput
vtkDataObject * GetInput()
Definition: vtkUnstructuredGridAlgorithm.h:63
vtkUnstructuredGridAlgorithm::vtkUnstructuredGridAlgorithm
vtkUnstructuredGridAlgorithm()
vtkAlgorithm.h
vtkUnstructuredGridAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkUnstructuredGridAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkUnstructuredGridAlgorithm::GetOutput
vtkUnstructuredGrid * GetOutput()
vtkUnstructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkUnstructuredGridAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkUnstructuredGridAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
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
vtkUnstructuredGridAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
vtkUnstructuredGridAlgorithm::GetOutput
vtkUnstructuredGrid * GetOutput(int)
vtkUnstructuredGridAlgorithm::New
static vtkUnstructuredGridAlgorithm * New()
vtkUnstructuredGridAlgorithm
Superclass for algorithms that produce only unstructured grid as output.
Definition: vtkUnstructuredGridAlgorithm.h:40
vtkUnstructuredGridAlgorithm::GetUnstructuredGridInput
vtkUnstructuredGrid * GetUnstructuredGridInput(int port)
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkUnstructuredGridAlgorithm::~vtkUnstructuredGridAlgorithm
~vtkUnstructuredGridAlgorithm()