VTK  9.3.20240221
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 
15 VTK_ABI_NAMESPACE_BEGIN
16 class vtkDataSet;
18 
19 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkExplicitStructuredGridAlgorithm : public vtkAlgorithm
20 {
21 public:
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 
67 protected:
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
93 
94 private:
96  void operator=(const vtkExplicitStructuredGridAlgorithm&) = delete;
97 };
98 
99 VTK_ABI_NAMESPACE_END
100 #endif
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:161
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
vtkExplicitStructuredGrid * GetOutput()
Get the output data object for a port on this algorithm.
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.
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.
vtkExplicitStructuredGrid * GetExplicitStructuredGridInput(int port)
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.
vtkExplicitStructuredGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~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()
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
int vtkTypeBool
Definition: vtkABI.h:64