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 =========================================================================*/
45 #ifndef vtkProgrammableFilter_h
46 #define vtkProgrammableFilter_h
47 
48 #include "vtkFiltersProgrammableModule.h" // For export macro
50 
51 class vtkGraph;
52 class vtkTable;
53 
55 {
56 public:
57  static vtkProgrammableFilter *New();
59  void PrintSelf(ostream& os, vtkIndent indent);
60 
68  typedef void (*ProgrammableMethodCallbackType)(void *arg);
69 
72  void SetExecuteMethod(void (*f)(void *), void *arg);
73 
75  void SetExecuteMethodArgDelete(void (*f)(void *));
76 
81  vtkPolyData *GetPolyDataInput();
82 
84  vtkStructuredPoints *GetStructuredPointsInput();
85 
87  vtkStructuredGrid *GetStructuredGridInput();
88 
90  vtkUnstructuredGrid *GetUnstructuredGridInput();
91 
93  vtkRectilinearGrid *GetRectilinearGridInput();
94 
96  vtkGraph *GetGraphInput();
97 
98 
100  vtkTable *GetTableInput();
101 
103 
105  vtkSetMacro(CopyArrays, bool);
106  vtkGetMacro(CopyArrays, bool);
107  vtkBooleanMacro(CopyArrays, bool);
109 
110 protected:
113 
116 
117  ProgrammableMethodCallbackType ExecuteMethod; //function to invoke
118  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
120 
122 
123 private:
124  vtkProgrammableFilter(const vtkProgrammableFilter&); // Not implemented.
125  void operator=(const vtkProgrammableFilter&); // Not implemented.
126 };
127 
128 #endif
129 
130 // VTK-HeaderTest-Exclude: vtkProgrammableFilter.h
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Superclass for algorithms that produce output of the same type as input.
Store vtkAlgorithm input/output information.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
Base class for graph data types.
Definition: vtkGraph.h:288
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:38
dataset represents arbitrary combinations of all possible cell types
#define VTKFILTERSPROGRAMMABLE_EXPORT
void PrintSelf(ostream &os, vtkIndent indent)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
A subclass of ImageData.
topologically regular array of data
Store zero or more vtkInformation instances.
ProgrammableMethodCallbackType ExecuteMethodArgDelete
ProgrammableMethodCallbackType ExecuteMethod
a user-programmable filter
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
static vtkPassInputTypeAlgorithm * New()