VTK  9.1.0
vtkProgrammableFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkProgrammableFilter.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
49#ifndef vtkProgrammableFilter_h
50#define vtkProgrammableFilter_h
51
52#include "vtkFiltersProgrammableModule.h" // For export macro
54
55class VTKFILTERSPROGRAMMABLE_EXPORT vtkProgrammableFilter : public vtkPassInputTypeAlgorithm
56{
57public:
60 void PrintSelf(ostream& os, vtkIndent indent) override;
61
71 typedef void (*ProgrammableMethodCallbackType)(void* arg);
72
77 void SetExecuteMethod(void (*f)(void*), void* arg);
78
82 void SetExecuteMethodArgDelete(void (*f)(void*));
83
85
100
102
106 vtkSetMacro(CopyArrays, bool);
107 vtkGetMacro(CopyArrays, bool);
108 vtkBooleanMacro(CopyArrays, bool);
110
111protected:
114
117
118 ProgrammableMethodCallbackType ExecuteMethod; // function to invoke
119 ProgrammableMethodCallbackType ExecuteMethodArgDelete;
121
123
124private:
126 void operator=(const vtkProgrammableFilter&) = delete;
127};
128
129#endif
Base class for graph data types.
Definition: vtkGraph.h:299
a simple class to control print indentation
Definition: vtkIndent.h:43
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
class describing a molecule
Definition: vtkMolecule.h:92
Superclass for algorithms that produce output of the same type as input.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:95
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
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:72
dataset represents arbitrary combinations of all possible cell types
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453