VTK  9.3.20240424
vtkExplicitStructuredGridAlgorithm.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
9#ifndef vtkExplicitStructuredGridAlgorithm_h
10#define vtkExplicitStructuredGridAlgorithm_h
11
12#include "vtkAlgorithm.h"
13#include "vtkCommonExecutionModelModule.h" // For export macro
14
15VTK_ABI_NAMESPACE_BEGIN
16class vtkDataSet;
18
19class VTKCOMMONEXECUTIONMODEL_EXPORT vtkExplicitStructuredGridAlgorithm : public vtkAlgorithm
20{
21public:
24 void PrintSelf(ostream& os, vtkIndent indent) override;
25
27
32 virtual void SetOutput(vtkDataObject* d);
34
40
41 // this method is not recommended for use, but lots of old style filters
42 // use it
46
48
56
58
66
67protected:
70
71 // convenience method
72 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
73 vtkInformationVector* outputVector);
74
79 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
80 vtkInformationVector* outputVector);
81
87
89
90 // see algorithm for more info
91 int FillOutputPortInformation(int port, vtkInformation* info) override;
92 int FillInputPortInformation(int port, vtkInformation* info) override;
93
94private:
96 void operator=(const vtkExplicitStructuredGridAlgorithm&) = delete;
97};
98
99VTK_ABI_NAMESPACE_END
100#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:166
Superclass for algorithms that produce only explicit structured grid as output.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkExplicitStructuredGrid * GetExplicitStructuredGridInput(int port)
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
void SetInputData(vtkDataObject *)
Assign a data object as input.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
vtkExplicitStructuredGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExplicitStructuredGrid * GetOutput()
Get the output data object for a port on this algorithm.
static vtkExplicitStructuredGridAlgorithm * New()
~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.
structured grid with explicit topology and geometry
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64