VTK
vtkProgrammableDataObjectSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProgrammableDataObjectSource.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 =========================================================================*/
41 #ifndef __vtkProgrammableDataObjectSource_h
42 #define __vtkProgrammableDataObjectSource_h
43 
44 #include "vtkDataObjectAlgorithm.h"
45 
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
60  typedef void (*ProgrammableMethodCallbackType)(void *arg);
61 
64  void SetExecuteMethod(void (*f)(void *), void *arg);
65 
67  void SetExecuteMethodArgDelete(void (*f)(void *));
68 
69 protected:
72 
75 
76  ProgrammableMethodCallbackType ExecuteMethod; //function to invoke
77  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
79 private:
81  void operator=(const vtkProgrammableDataObjectSource&); // Not implemented.
82 };
83 
84 #endif
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_GRAPHICS_EXPORT
ProgrammableMethodCallbackType ExecuteMethod
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
Definition: vtkIndent.h:37
ProgrammableMethodCallbackType ExecuteMethodArgDelete
Superclass for algorithms that produce only data object as output.
generate source data object via a user-specified function
Store zero or more vtkInformation instances.