VTK  9.3.20240425
vtkProgrammableFilter.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
70#ifndef vtkProgrammableFilter_h
71#define vtkProgrammableFilter_h
72
73#include "vtkFiltersProgrammableModule.h" // For export macro
75
76VTK_ABI_NAMESPACE_BEGIN
77class VTKFILTERSPROGRAMMABLE_EXPORT vtkProgrammableFilter : public vtkPassInputTypeAlgorithm
78{
79public:
82 void PrintSelf(ostream& os, vtkIndent indent) override;
83
93 typedef void (*ProgrammableMethodCallbackType)(void* arg);
94
99 void SetExecuteMethod(void (*f)(void*), void* arg);
100
104 void SetExecuteMethodArgDelete(void (*f)(void*));
105
107
123
125
129 vtkSetMacro(CopyArrays, bool);
130 vtkGetMacro(CopyArrays, bool);
131 vtkBooleanMacro(CopyArrays, bool);
133
134protected:
137
139 int FillInputPortInformation(int port, vtkInformation* info) override;
140
141 ProgrammableMethodCallbackType ExecuteMethod; // function to invoke
142 ProgrammableMethodCallbackType ExecuteMethodArgDelete;
144
146
147private:
149 void operator=(const vtkProgrammableFilter&) = delete;
150};
151
152VTK_ABI_NAMESPACE_END
153#endif
Base class for graph data types.
Definition vtkGraph.h:340
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
class describing a molecule
Definition vtkMolecule.h:84
Superclass for algorithms that produce output of the same type as input.
concrete dataset represents vertices, lines, polygons, and triangle strips
a user-programmable filter
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMolecule * GetMoleculeInput()
Get the input as a concrete type.
void SetExecuteMethodArgDelete(void(*f)(void *))
Set the arg delete method.
vtkPolyData * GetPolyDataInput()
Get the input as a concrete type.
static vtkProgrammableFilter * New()
ProgrammableMethodCallbackType ExecuteMethodArgDelete
vtkHyperTreeGrid * GetHyperTreeGridInput()
Get the input as a concrete type.
void SetExecuteMethod(void(*f)(void *), void *arg)
Specify the function to use to operate on the point attribute data.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkRectilinearGrid * GetRectilinearGridInput()
Get the input as a concrete type.
vtkStructuredPoints * GetStructuredPointsInput()
Get the input as a concrete type.
vtkGraph * GetGraphInput()
Get the input as a concrete type.
vtkUnstructuredGrid * GetUnstructuredGridInput()
Get the input as a concrete type.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
~vtkProgrammableFilter() override
ProgrammableMethodCallbackType ExecuteMethod
vtkTable * GetTableInput()
Get the input as a concrete type.
vtkStructuredGrid * GetStructuredGridInput()
Get the input as a concrete type.
a dataset that is topologically regular with variable spacing in the three coordinate directions
topologically regular array of data
A subclass of ImageData.
A table, which contains similar-typed columns of data.
Definition vtkTable.h:168
dataset represents arbitrary combinations of all possible cell types