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 
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
#define VTK_GRAPHICS_EXPORT
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:81
Base class for graph data types.
Definition: vtkGraph.h:287
virtual int FillInputPortInformation(int port, vtkInformation *info)
a simple class to control print indentation
Definition: vtkIndent.h:37
dataset represents arbitrary combinations of all possible cell types
void PrintSelf(ostream &os, vtkIndent indent)
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:66
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()