Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

vtkProgrammableFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkProgrammableFilter.h,v $
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00045 #ifndef __vtkProgrammableFilter_h
00046 #define __vtkProgrammableFilter_h
00047 
00048 #include "vtkDataSetAlgorithm.h"
00049 
00050 class VTK_GRAPHICS_EXPORT vtkProgrammableFilter : public vtkDataSetAlgorithm
00051 {
00052 public:
00053   static vtkProgrammableFilter *New();
00054   vtkTypeRevisionMacro(vtkProgrammableFilter,vtkDataSetAlgorithm);
00055 
00058   void SetExecuteMethod(void (*f)(void *), void *arg);
00059 
00061   void SetExecuteMethodArgDelete(void (*f)(void *));
00062 
00067   vtkPolyData *GetPolyDataInput();
00068 
00070   vtkStructuredPoints *GetStructuredPointsInput();
00071 
00073   vtkStructuredGrid *GetStructuredGridInput();
00074 
00076   vtkUnstructuredGrid *GetUnstructuredGridInput();
00077 
00079   vtkRectilinearGrid *GetRectilinearGridInput();
00080 
00081 protected:
00082   vtkProgrammableFilter();
00083   ~vtkProgrammableFilter();
00084 
00085   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00086 
00087   void (*ExecuteMethod)(void *); //function to invoke
00088   void (*ExecuteMethodArgDelete)(void *);
00089   void *ExecuteMethodArg;
00090   
00091 private:
00092   vtkProgrammableFilter(const vtkProgrammableFilter&);  // Not implemented.
00093   void operator=(const vtkProgrammableFilter&);  // Not implemented.
00094 };
00095 
00096 #endif
00097 

Generated on Mon Jan 21 23:07:25 2008 for VTK by  doxygen 1.4.3-20050530