VTK  9.3.20240713
vtkStructuredGridAlgorithm.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
19#ifndef vtkStructuredGridAlgorithm_h
20#define vtkStructuredGridAlgorithm_h
21
22#include "vtkAlgorithm.h"
23#include "vtkCommonExecutionModelModule.h" // For export macro
24#include "vtkStructuredGrid.h" // makes things a bit easier
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkDataSet;
29
30class VTKCOMMONEXECUTIONMODEL_EXPORT vtkStructuredGridAlgorithm : public vtkAlgorithm
31{
32public:
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
43 virtual void SetOutput(vtkDataObject* d);
45
51
52 // this method is not recommended for use, but lots of old style filters
53 // use it
57
59
67
69
77
78protected:
81
82 // convenience method
83 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
84 vtkInformationVector* outputVector);
85
90 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
91 vtkInformationVector* outputVector);
92
94
99 {
100 return 1;
101 }
103
105 {
106 return 1;
107 }
108
109 // see algorithm for more info
110 int FillOutputPortInformation(int port, vtkInformation* info) override;
111 int FillInputPortInformation(int port, vtkInformation* info) override;
112
113private:
115 void operator=(const vtkStructuredGridAlgorithm&) = delete;
116};
117
118VTK_ABI_NAMESPACE_END
119#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
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only structured grid as output.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkStructuredGridAlgorithm() override
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkDataObject * GetInput()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkStructuredGrid * GetStructuredGridInput(int port)
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkDataObject * GetInput(int port)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output 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.
vtkStructuredGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
vtkStructuredGrid * GetOutput()
Get the output data object for a port on this algorithm.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
static vtkStructuredGridAlgorithm * New()
topologically regular array of data
int vtkTypeBool
Definition vtkABI.h:64