• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Graphics/vtkProgrammableDataObjectSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkProgrammableDataObjectSource.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 =========================================================================*/
00038 #ifndef __vtkProgrammableDataObjectSource_h
00039 #define __vtkProgrammableDataObjectSource_h
00040 
00041 #include "vtkDataObjectAlgorithm.h"
00042 
00043 class VTK_GRAPHICS_EXPORT vtkProgrammableDataObjectSource : public vtkDataObjectAlgorithm
00044 {
00045 public:
00046   static vtkProgrammableDataObjectSource *New();
00047   vtkTypeRevisionMacro(vtkProgrammableDataObjectSource,vtkDataObjectAlgorithm);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00052   void SetExecuteMethod(void (*f)(void *), void *arg);
00053 
00055   void SetExecuteMethodArgDelete(void (*f)(void *));
00056 
00057 protected:
00058   vtkProgrammableDataObjectSource();
00059   ~vtkProgrammableDataObjectSource();
00060 
00061   virtual int RequestData(vtkInformation *, vtkInformationVector **,
00062                           vtkInformationVector *);
00063 
00064   void (*ExecuteMethod)(void *); //function to invoke
00065   void (*ExecuteMethodArgDelete)(void *);
00066   void *ExecuteMethodArg;
00067 private:
00068   vtkProgrammableDataObjectSource(const vtkProgrammableDataObjectSource&);  // Not implemented.
00069   void operator=(const vtkProgrammableDataObjectSource&);  // Not implemented.
00070 };
00071 
00072 #endif

Generated by  doxygen 1.7.1