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 
49 
50 class vtkGraph;
51 class vtkTable;
52 
54 {
55 public:
56  static vtkProgrammableFilter *New();
58  void PrintSelf(ostream& os, vtkIndent indent);
59 
67  typedef void (*ProgrammableMethodCallbackType)(void *arg);
68 
71  void SetExecuteMethod(void (*f)(void *), void *arg);
72 
74  void SetExecuteMethodArgDelete(void (*f)(void *));
75 
80  vtkPolyData *GetPolyDataInput();
81 
83  vtkStructuredPoints *GetStructuredPointsInput();
84 
86  vtkStructuredGrid *GetStructuredGridInput();
87 
89  vtkUnstructuredGrid *GetUnstructuredGridInput();
90 
92  vtkRectilinearGrid *GetRectilinearGridInput();
93 
95  vtkGraph *GetGraphInput();
96 
97 
99  vtkTable *GetTableInput();
100 
102 
104  vtkSetMacro(CopyArrays, bool);
105  vtkGetMacro(CopyArrays, bool);
106  vtkBooleanMacro(CopyArrays, bool);
108 
109 protected:
112 
115 
116  ProgrammableMethodCallbackType ExecuteMethod; //function to invoke
117  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
119 
121 
122 private:
123  vtkProgrammableFilter(const vtkProgrammableFilter&); // Not implemented.
124  void operator=(const vtkProgrammableFilter&); // Not implemented.
125 };
126 
127 #endif
128