Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Graphics/vtkProgrammableFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkProgrammableFilter.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00061 #ifndef __vtkProgrammableFilter_h
00062 #define __vtkProgrammableFilter_h
00063 
00064 #include "vtkDataSetToDataSetFilter.h"
00065 
00066 class VTK_GRAPHICS_EXPORT vtkProgrammableFilter : public vtkDataSetToDataSetFilter
00067 {
00068 public:
00069   static vtkProgrammableFilter *New();
00070   vtkTypeRevisionMacro(vtkProgrammableFilter,vtkDataSetToDataSetFilter);
00071 
00074   void SetExecuteMethod(void (*f)(void *), void *arg);
00075 
00077   void SetExecuteMethodArgDelete(void (*f)(void *));
00078 
00083   vtkPolyData *GetPolyDataInput();
00084 
00086   vtkStructuredPoints *GetStructuredPointsInput();
00087 
00089   vtkStructuredGrid *GetStructuredGridInput();
00090 
00092   vtkUnstructuredGrid *GetUnstructuredGridInput();
00093 
00095   vtkRectilinearGrid *GetRectilinearGridInput();
00096 
00097 protected:
00098   vtkProgrammableFilter();
00099   ~vtkProgrammableFilter();
00100 
00101   void Execute();
00102 
00103   void (*ExecuteMethod)(void *); //function to invoke
00104   void (*ExecuteMethodArgDelete)(void *);
00105   void *ExecuteMethodArg;
00106   
00107 private:
00108   vtkProgrammableFilter(const vtkProgrammableFilter&);  // Not implemented.
00109   void operator=(const vtkProgrammableFilter&);  // Not implemented.
00110 };
00111 
00112 #endif
00113