VTK
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 =========================================================================*/
46 #ifndef vtkProgrammableFilter_h
47 #define vtkProgrammableFilter_h
48 
49 #include "vtkFiltersProgrammableModule.h" // For export macro
51 
52 class vtkGraph;
53 class vtkTable;
54 
55 class VTKFILTERSPROGRAMMABLE_EXPORT vtkProgrammableFilter : public vtkPassInputTypeAlgorithm
56 {
57 public:
60  void PrintSelf(ostream& os, vtkIndent indent);
61 
71  typedef void (*ProgrammableMethodCallbackType)(void *arg);
72 
77  void SetExecuteMethod(void (*f)(void *), void *arg);
78 
82  void SetExecuteMethodArgDelete(void (*f)(void *));
83 
91 
96 
101 
106 
111 
116 
117 
122 
124 
128  vtkSetMacro(CopyArrays, bool);
129  vtkGetMacro(CopyArrays, bool);
130  vtkBooleanMacro(CopyArrays, bool);
132 
133 protected:
136 
139 
140  ProgrammableMethodCallbackType ExecuteMethod; //function to invoke
141  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
143 
145 
146 private:
147  vtkProgrammableFilter(const vtkProgrammableFilter&) VTK_DELETE_FUNCTION;
148  void operator=(const vtkProgrammableFilter&) VTK_DELETE_FUNCTION;
149 };
150 
151 #endif
152 
153 // VTK-HeaderTest-Exclude: vtkProgrammableFilter.h
vtkProgrammableFilter::GetStructuredPointsInput
vtkStructuredPoints * GetStructuredPointsInput()
Get the input as a concrete type.
vtkStructuredPoints
A subclass of ImageData.
Definition: vtkStructuredPoints.h:40
vtkProgrammableFilter::GetPolyDataInput
vtkPolyData * GetPolyDataInput()
Get the input as a concrete type.
vtkProgrammableFilter
a user-programmable filter
Definition: vtkProgrammableFilter.h:56
vtkPassInputTypeAlgorithm.h
vtkProgrammableFilter::vtkProgrammableFilter
vtkProgrammableFilter()
vtkProgrammableFilter::ExecuteMethodArgDelete
ProgrammableMethodCallbackType ExecuteMethodArgDelete
Definition: vtkProgrammableFilter.h:141
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:57
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
vtkProgrammableFilter::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
Fill the input port information objects for this algorithm.
vtkProgrammableFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:64
vtkProgrammableFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
vtkProgrammableFilter::SetExecuteMethod
void SetExecuteMethod(void(*f)(void *), void *arg)
Specify the function to use to operate on the point attribute data.
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkProgrammableFilter::GetUnstructuredGridInput
vtkUnstructuredGrid * GetUnstructuredGridInput()
Get the input as a concrete type.
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkProgrammableFilter::New
static vtkProgrammableFilter * New()
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkProgrammableFilter::~vtkProgrammableFilter
~vtkProgrammableFilter()
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkProgrammableFilter::CopyArrays
bool CopyArrays
Definition: vtkProgrammableFilter.h:144
vtkProgrammableFilter::GetTableInput
vtkTable * GetTableInput()
Get the input as a concrete type.
vtkProgrammableFilter::GetRectilinearGridInput
vtkRectilinearGrid * GetRectilinearGridInput()
Get the input as a concrete type.
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:83
vtkGraph
Base class for graph data types.
Definition: vtkGraph.h:288
vtkProgrammableFilter::SetExecuteMethodArgDelete
void SetExecuteMethodArgDelete(void(*f)(void *))
Set the arg delete method.
vtkProgrammableFilter::ExecuteMethodArg
void * ExecuteMethodArg
Definition: vtkProgrammableFilter.h:142
vtkPassInputTypeAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPassInputTypeAlgorithm.h:51
vtkProgrammableFilter::GetGraphInput
vtkGraph * GetGraphInput()
Get the input as a concrete type.
vtkProgrammableFilter::GetStructuredGridInput
vtkStructuredGrid * GetStructuredGridInput()
Get the input as a concrete type.
vtkProgrammableFilter::ExecuteMethod
ProgrammableMethodCallbackType ExecuteMethod
Definition: vtkProgrammableFilter.h:140