VTK: Common/ExecutionModel/vtkExplicitStructuredGridAlgorithm.h Source File

| VTK 9.3.1

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;
17 class vtkExplicitStructuredGrid;
18
19 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkExplicitStructuredGridAlgorithm : public vtkAlgorithm
20 {
21 public:
22 static vtkExplicitStructuredGridAlgorithm* New();
23 vtkTypeMacro(vtkExplicitStructuredGridAlgorithm, vtkAlgorithm);
24 void PrintSelf(ostream& os, vtkIndent indent) override;
25
27
30 vtkExplicitStructuredGrid* GetOutput();
31 vtkExplicitStructuredGrid* GetOutput(int);
32 virtual void SetOutput(vtkDataObject* d);
34
38 vtkTypeBool ProcessRequest(
39 vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
40
41 // this method is not recommended for use, but lots of old style filters
42 // use it
43 vtkDataObject* GetInput();
44 vtkDataObject* GetInput(int port);
45 vtkExplicitStructuredGrid* GetExplicitStructuredGridInput(int port);
46
48
53 void SetInputData(vtkDataObject*);
54 void SetInputData(int, vtkDataObject*);
56
58
63 void AddInputData(vtkDataObject*);
64 void AddInputData(int, vtkDataObject*);
66
67 protected:
68 vtkExplicitStructuredGridAlgorithm();
69 ~vtkExplicitStructuredGridAlgorithm() override = default;
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
86 virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
87
88 // see algorithm for more info
89 int FillOutputPortInformation(int port, vtkInformation* info) override;
90 int FillInputPortInformation(int port, vtkInformation* info) override;
91
92 private:
93 vtkExplicitStructuredGridAlgorithm(const vtkExplicitStructuredGridAlgorithm&) = delete;
94 void operator=(const vtkExplicitStructuredGridAlgorithm&) = delete;
95 };
96
97 VTK_ABI_NAMESPACE_END
98 #endif
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkExplicitStructuredGridAlgorithm
Superclass for algorithms that produce only explicit structured grid as output.
Definition: vtkExplicitStructuredGridAlgorithm.h:20
vtkExplicitStructuredGridAlgorithm::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkExplicitStructuredGridAlgorithm::GetOutput
vtkExplicitStructuredGrid * GetOutput()
Get the output data object for a port on this algorithm.
vtkExplicitStructuredGridAlgorithm::GetInput
vtkDataObject * GetInput()
vtkExplicitStructuredGridAlgorithm::SetOutput
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
vtkExplicitStructuredGridAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkExplicitStructuredGridAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
vtkExplicitStructuredGridAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkExplicitStructuredGridAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkExplicitStructuredGridAlgorithm::GetExplicitStructuredGridInput
vtkExplicitStructuredGrid * GetExplicitStructuredGridInput(int port)
vtkExplicitStructuredGridAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkExplicitStructuredGridAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkExplicitStructuredGridAlgorithm::GetOutput
vtkExplicitStructuredGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
vtkExplicitStructuredGridAlgorithm::AddInputData
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
vtkExplicitStructuredGridAlgorithm::vtkExplicitStructuredGridAlgorithm
vtkExplicitStructuredGridAlgorithm()
vtkExplicitStructuredGridAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkExplicitStructuredGridAlgorithm::~vtkExplicitStructuredGridAlgorithm
~vtkExplicitStructuredGridAlgorithm() override=default
vtkExplicitStructuredGridAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkExplicitStructuredGridAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkExplicitStructuredGridAlgorithm::AddInputData
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkExplicitStructuredGridAlgorithm::New
static vtkExplicitStructuredGridAlgorithm * New()
vtkExplicitStructuredGrid
structured grid with explicit topology and geometry
Definition: vtkExplicitStructuredGrid.h:70
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkAlgorithm.h