VTK  9.0.1
vtkExplicitStructuredGridAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkExplicitStructuredGridAlgorithm.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 =========================================================================*/
21 #ifndef vtkExplicitStructuredGridAlgorithm_h
22 #define vtkExplicitStructuredGridAlgorithm_h
23 
24 #include "vtkAlgorithm.h"
25 #include "vtkCommonExecutionModelModule.h" // For export macro
26 
27 class vtkDataSet;
29 
30 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkExplicitStructuredGridAlgorithm : public vtkAlgorithm
31 {
32 public:
35 
37 
42  virtual void SetOutput(vtkDataObject* d);
44 
50 
51  // this method is not recommended for use, but lots of old style filters
52  // use it
56 
58 
66 
68 
76 
77 protected:
80 
81  // convenience method
82  virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
83  vtkInformationVector* outputVector);
84 
89  virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
90  vtkInformationVector* outputVector);
91 
97 
98  // see algorithm for more info
99  virtual int FillOutputPortInformation(int port, vtkInformation* info) override;
100  virtual int FillInputPortInformation(int port, vtkInformation* info) override;
101 
102 private:
104  void operator=(const vtkExplicitStructuredGridAlgorithm&) = delete;
105 };
106 
107 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:63
general representation of visualization data
Definition: vtkDataObject.h:60
abstract class to specify dataset behavior
Definition: vtkDataSet.h:57
Superclass for algorithms that produce only explicit structured grid as output.
vtkExplicitStructuredGrid * GetOutput()
Get the output data object for a port on this algorithm.
virtual void SetOutput(vtkDataObject *d)
void SetInputData(int, vtkDataObject *)
virtual vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkExplicitStructuredGrid * GetExplicitStructuredGridInput(int port)
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkExplicitStructuredGrid * GetOutput(int)
void AddInputData(int, vtkDataObject *)
virtual int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkExplicitStructuredGridAlgorithm() override=default
vtkDataObject * GetInput(int port)
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
void AddInputData(vtkDataObject *)
Assign a data object as input.
static vtkExplicitStructuredGridAlgorithm * New()
virtual int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
structured grid with explicit topology and geometry
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
int vtkTypeBool
Definition: vtkABI.h:69