VTK  9.4.20241108
vtkCellGridAlgorithm.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 vtkCellGridAlgorithm_h
20#define vtkCellGridAlgorithm_h
21
22#include "vtkAlgorithm.h"
23#include "vtkCellGrid.h" // makes things a bit easier
24#include "vtkCommonExecutionModelModule.h" // For export macro
25
26VTK_ABI_NAMESPACE_BEGIN
27class vtkDataSet;
29class vtkCellGrid;
30
31class VTKCOMMONEXECUTIONMODEL_EXPORT vtkCellGridAlgorithm : public vtkAlgorithm
32{
33public:
36 void PrintSelf(ostream& os, vtkIndent indent) override;
37
39
44 virtual void SetOutput(vtkDataObject* d);
46
52
53 // this method is not recommended for use, but lots of old style filters
54 // use it
58
60
68
70
78
79 // clang-format off
81
95 virtual void SetInputAttributeToProcess(int idx, int port, int connection, const char* name);
96
107 vtkCellAttribute* GetInputCellAttributeToProcess(int idx, int connection, vtkInformationVector** inputVector, int& association);
111 // clang-format on
112
113protected:
116
117 // convenience method
118 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
119 vtkInformationVector* outputVector);
120
125 virtual int RequestData(vtkInformation* request, vtkInformationVector** inputVector,
126 vtkInformationVector* outputVector);
127
133
135
136 // see algorithm for more info
137 int FillOutputPortInformation(int port, vtkInformation* info) override;
138 int FillInputPortInformation(int port, vtkInformation* info) override;
139
140private:
142 void operator=(const vtkCellGridAlgorithm&) = delete;
143};
144
145VTK_ABI_NAMESPACE_END
146#endif
Superclass for all sources, filters, and sinks in VTK.
A function defined over the physical domain of a vtkCellGrid.
Superclass for algorithms that produce only polydata as output.
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkCellGridAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int RequestUpdateTime(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkDataObject * GetInput()
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
~vtkCellGridAlgorithm() override
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkCellAttribute * GetInputCellAttributeToProcess(int idx, vtkCellGrid *input)
Set an input cell-attribute that this algorithm will process.
void SetInputData(int, vtkDataObject *)
Assign a data object as input.
vtkCellAttribute * GetInputCellAttributeToProcess(int idx, vtkCellGrid *input, int &association)
Set an input cell-attribute that this algorithm will process.
void AddInputData(vtkDataObject *)
Assign a data object as input.
vtkTypeBool ProcessRequest(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
see vtkAlgorithm for details
vtkCellGrid * GetOutput()
Get the output data object for a port on this algorithm.
vtkCellAttribute * GetInputCellAttributeToProcess(int idx, int connection, vtkInformationVector **inputVector)
Fetch a vtkCellAttribute that matches a cell-centered array specified by calling SetInputAttributeToP...
virtual void SetInputAttributeToProcess(int idx, int port, int connection, const char *name)
Set an input cell-attribute that this algorithm will process.
virtual void SetOutput(vtkDataObject *d)
Get the output data object for a port on this algorithm.
void SetInputData(vtkDataObject *)
Assign a data object as input.
vtkCellAttribute * GetInputCellAttributeToProcess(int idx, int connection, vtkInformationVector **inputVector, int &association)
Set an input cell-attribute that this algorithm will process.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkCellGrid * GetOutput(int)
Get the output data object for a port on this algorithm.
vtkCellGrid * GetPolyDataInput(int port)
void AddInputData(int, vtkDataObject *)
Assign a data object as input.
vtkDataObject * GetInput(int port)
Visualization data composed of cells of arbitrary type.
Definition vtkCellGrid.h:49
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.
int vtkTypeBool
Definition vtkABI.h:64