VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
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
46
class
VTK_GRAPHICS_EXPORT
vtkProgrammableDataObjectSource
:
public
vtkDataObjectAlgorithm
47
{
48
public
:
49
static
vtkProgrammableDataObjectSource
*
New
();
50
vtkTypeMacro(
vtkProgrammableDataObjectSource
,
vtkDataObjectAlgorithm
);
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
:
70
vtkProgrammableDataObjectSource
();
71
~
vtkProgrammableDataObjectSource
();
72
73
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
74
vtkInformationVector
*);
75
76
ProgrammableMethodCallbackType
ExecuteMethod
;
//function to invoke
77
ProgrammableMethodCallbackType
ExecuteMethodArgDelete
;
78
void
*
ExecuteMethodArg
;
79
private
:
80
vtkProgrammableDataObjectSource
(
const
vtkProgrammableDataObjectSource
&);
// Not implemented.
81
void
operator=(
const
vtkProgrammableDataObjectSource
&);
// Not implemented.
82
};
83
84
#endif
Generated on Wed May 30 2012 13:22:01 for VTK by
1.8.1