VTK: Common/ExecutionModel/vtkUniformGridAMRAlgorithm.h Source File

| VTK 9.3.1

vtkUniformGridAMRAlgorithm.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
12 #ifndef vtkUniformGridAMRAlgorithm_h
13 #define vtkUniformGridAMRAlgorithm_h
14
15 #include "vtkAlgorithm.h"
16 #include "vtkCommonExecutionModelModule.h" // For export macro
17
18 VTK_ABI_NAMESPACE_BEGIN
19 class vtkUniformGridAMR;
20 class vtkInformation;
21 class vtkInformationVector;
22 class vtkExecutive;
23
24 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkUniformGridAMRAlgorithm : public vtkAlgorithm
25 {
26 public:
27 static vtkUniformGridAMRAlgorithm* New();
28 vtkTypeMacro(vtkUniformGridAMRAlgorithm, vtkAlgorithm);
29 void PrintSelf(ostream& os, vtkIndent indent) override;
30
32
35 vtkUniformGridAMR* GetOutput();
36 vtkUniformGridAMR* GetOutput(int);
38
40
43 void SetInputData(vtkDataObject*);
44 void SetInputData(int, vtkDataObject*);
46
50 vtkTypeBool ProcessRequest(vtkInformation* request, vtkInformationVector** inputVector,
51 vtkInformationVector* outputVector) override;
52
53 protected:
54 vtkUniformGridAMRAlgorithm();
55 ~vtkUniformGridAMRAlgorithm() override;
56
61 virtual int RequestDataObject(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
62 {
63 return 1;
64 }
65
70 virtual int RequestInformation(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
71 {
72 return 1;
73 }
74
79 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
80 {
81 return 1;
82 }
83
88 virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*)
89 {
90 return 1;
91 }
92
96 vtkExecutive* CreateDefaultExecutive() override;
97
99
102 int FillOutputPortInformation(int port, vtkInformation* info) override;
103 int FillInputPortInformation(int port, vtkInformation* info) override;
105
106 vtkDataObject* GetInput(int port);
107
108 private:
109 vtkUniformGridAMRAlgorithm(const vtkUniformGridAMRAlgorithm&) = delete;
110 void operator=(const vtkUniformGridAMRAlgorithm&) = delete;
111 };
112
113 VTK_ABI_NAMESPACE_END
114 #endif /* VTKUNIFORMGRIDAMRALGORITHM_H_ */
vtkAlgorithm
Superclass for all sources, filters, and sinks in VTK.
Definition: vtkAlgorithm.h:61
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkExecutive
Superclass for all pipeline executives in VTK.
Definition: vtkExecutive.h:48
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
vtkUniformGridAMRAlgorithm
vtkUniformGridAMR as output.
Definition: vtkUniformGridAMRAlgorithm.h:25
vtkUniformGridAMRAlgorithm::ProcessRequest
vtkTypeBool ProcessRequest(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
See vtkAlgorithm for details.
vtkUniformGridAMRAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkUniformGridAMRAlgorithm.h:79
vtkUniformGridAMRAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkUniformGridAMRAlgorithm::GetOutput
vtkUniformGridAMR * GetOutput()
Get the output data object for a port on this algorithm.
vtkUniformGridAMRAlgorithm::SetInputData
void SetInputData(int, vtkDataObject *)
Set an input of this algorithm.
vtkUniformGridAMRAlgorithm::CreateDefaultExecutive
vtkExecutive * CreateDefaultExecutive() override
Create a default executive.
vtkUniformGridAMRAlgorithm::GetOutput
vtkUniformGridAMR * GetOutput(int)
Get the output data object for a port on this algorithm.
vtkUniformGridAMRAlgorithm::RequestUpdateExtent
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkUniformGridAMRAlgorithm.h:88
vtkUniformGridAMRAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
See algorithm for more info.
vtkUniformGridAMRAlgorithm::vtkUniformGridAMRAlgorithm
vtkUniformGridAMRAlgorithm()
vtkUniformGridAMRAlgorithm::~vtkUniformGridAMRAlgorithm
~vtkUniformGridAMRAlgorithm() override
vtkUniformGridAMRAlgorithm::New
static vtkUniformGridAMRAlgorithm * New()
vtkUniformGridAMRAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkUniformGridAMRAlgorithm.h:70
vtkUniformGridAMRAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
See algorithm for more info.
vtkUniformGridAMRAlgorithm::GetInput
vtkDataObject * GetInput(int port)
vtkUniformGridAMRAlgorithm::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkUniformGridAMRAlgorithm.h:61
vtkUniformGridAMRAlgorithm::SetInputData
void SetInputData(vtkDataObject *)
Set an input of this algorithm.
vtkUniformGridAMR
a concrete implementation of vtkCompositeDataSet
Definition: vtkUniformGridAMR.h:27
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:64
vtkAlgorithm.h