VTK  9.5.20250928
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
15
16VTK_ABI_NAMESPACE_BEGIN
17class vtkDataSet;
19
20class VTKCOMMONEXECUTIONMODEL_EXPORT VTK_MARSHALAUTO vtkExplicitStructuredGridAlgorithm
21 : public vtkAlgorithm
22{
23public:
26 void PrintSelf(ostream& os, vtkIndent indent) override;
27
29
34 virtual void SetOutput(vtkDataObject* d);
36
42
43 // this method is not recommended for use, but lots of old style filters
44 // use it
48
50
58
60
68
69protected:
72
73 // convenience method
74 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
75 vtkInformationVector* outputVector);
76
81 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
82 vtkInformationVector* outputVector);
83
89
91
92 // see algorithm for more info
93 int FillOutputPortInformation(int port, vtkInformation* info) override;
94 int FillInputPortInformation(int port, vtkInformation* info) override;
95
96private:
98 void operator=(const vtkExplicitStructuredGridAlgorithm&) = delete;
99};
100
101VTK_ABI_NAMESPACE_END
102#endif
Superclass for all sources, filters, and sinks in VTK.
general representation of visualization data
abstract class to specify dataset behavior
Definition vtkDataSet.h:165
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
#define VTK_MARSHALAUTO