VTK
vtkDataSetAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkDataSetAlgorithm.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 =========================================================================*/
34 #ifndef vtkDataSetAlgorithm_h
35 #define vtkDataSetAlgorithm_h
36 
37 #include "vtkCommonExecutionModelModule.h" // For export macro
38 #include "vtkAlgorithm.h"
39 
40 class vtkDataSet;
41 class vtkImageData;
42 class vtkPolyData;
44 class vtkStructuredGrid;
46 class vtkRectilinearGrid;
47 
48 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkDataSetAlgorithm : public vtkAlgorithm
49 {
50 public:
53  void PrintSelf(ostream& os, vtkIndent indent) override;
54 
56 
62 
68 
73 
78 
83 
88 
93 
98 
100 
110 
112 
122 
127  vtkInformationVector** inputVector,
128  vtkInformationVector* outputVector) override;
129 
130 protected:
132  ~vtkDataSetAlgorithm() override {}
133 
143  vtkInformationVector*) {return 1;};
144 
146 
155  {
156  return 1;
157  };
159 
160 
170  virtual int RequestDataObject(vtkInformation* request,
171  vtkInformationVector** inputVector,
172  vtkInformationVector* outputVector);
173 
182  vtkInformationVector*) {return 1;};
183 
184 
185  // see algorithm for more info
188 
190 
191 private:
192  vtkDataSetAlgorithm(const vtkDataSetAlgorithm&) = delete;
193  void operator=(const vtkDataSetAlgorithm&) = delete;
194 };
195 
196 #endif
197 
198 
vtkStructuredPoints
A subclass of ImageData.
Definition: vtkStructuredPoints.h:40
vtkDataSetAlgorithm::GetRectilinearGridOutput
vtkRectilinearGrid * GetRectilinearGridOutput()
Get the output as vtkRectilinearGrid.
vtkDataSetAlgorithm::ProcessRequest
int ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
see vtkAlgorithm for details
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:60
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:57
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkDataSetAlgorithm::GetStructuredPointsOutput
vtkStructuredPoints * GetStructuredPointsOutput()
Get the output as vtkStructuredPoints.
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:64
vtkDataSetAlgorithm::vtkDataSetAlgorithm
vtkDataSetAlgorithm()
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:180
vtkDataSetAlgorithm::GetOutput
vtkDataSet * GetOutput(int)
vtkDataSetAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
vtkDataSetAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called within ProcessRequest to when a request asks the algorithm to create empty output data...
vtkDataSetAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkDataSetAlgorithm::GetStructuredGridOutput
vtkStructuredGrid * GetStructuredGridOutput()
Get the output as vtkStructuredGrid.
vtkDataSetAlgorithm::GetOutput
vtkDataSet * GetOutput()
Get the output data object for a port on this algorithm.
vtkAlgorithm.h
vtkDataSetAlgorithm::GetUnstructuredGridOutput
vtkUnstructuredGrid * GetUnstructuredGridOutput()
Get the output as vtkUnstructuredGrid.
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:49
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkDataSetAlgorithm::SetInputData
void SetInputData(int, vtkDataSet *)
vtkDataSetAlgorithm::AddInputData
void AddInputData(int, vtkDataSet *)
vtkDataSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkDataSetAlgorithm::GetPolyDataOutput
vtkPolyData * GetPolyDataOutput()
Get the output as vtkPolyData.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkDataSetAlgorithm::AddInputData
void AddInputData(int, vtkDataObject *)
vtkDataSetAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:63
vtkDataSetAlgorithm::GetImageDataOutput
vtkImageData * GetImageDataOutput()
Get the output as vtkStructuredPoints.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkDataSetAlgorithm::AddInputData
void AddInputData(vtkDataSet *)
vtkDataSetAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when each filter in the pipeline decides what portion of its inp...
Definition: vtkDataSetAlgorithm.h:152
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:89
vtkDataSetAlgorithm::SetInputData
void SetInputData(vtkDataSet *)
vtkDataSetAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:65
vtkDataSetAlgorithm::~vtkDataSetAlgorithm
~vtkDataSetAlgorithm() override
Definition: vtkDataSetAlgorithm.h:132
vtkDataSetAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkDataSetAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks for Information.
Definition: vtkDataSetAlgorithm.h:141
vtkDataSetAlgorithm::GetInput
vtkDataObject * GetInput()
Get the input data object.