VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
vtkProgrammableSource.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkProgrammableSource.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
=========================================================================*/
43
#ifndef __vtkProgrammableSource_h
44
#define __vtkProgrammableSource_h
45
46
#include "
vtkDataSetAlgorithm.h
"
47
48
class
vtkPolyData
;
49
class
vtkStructuredPoints
;
50
class
vtkStructuredGrid
;
51
class
vtkUnstructuredGrid
;
52
class
vtkRectilinearGrid
;
53
54
class
VTK_GRAPHICS_EXPORT
vtkProgrammableSource
:
public
vtkDataSetAlgorithm
55
{
56
public
:
57
static
vtkProgrammableSource
*
New
();
58
vtkTypeMacro(
vtkProgrammableSource
,
vtkDataSetAlgorithm
);
59
67
typedef
void (*ProgrammableMethodCallbackType)(
void
*arg);
68
71
void
SetExecuteMethod(
void
(*f)(
void
*),
void
*arg);
72
74
void
SetExecuteMethodArgDelete(
void
(*f)(
void
*));
75
78
void
SetRequestInformationMethod(
void
(*f)(
void
*));
79
84
vtkPolyData
*
GetPolyDataOutput
();
85
87
vtkStructuredPoints
*
GetStructuredPointsOutput
();
88
90
vtkStructuredGrid
*
GetStructuredGridOutput
();
91
93
vtkUnstructuredGrid
*
GetUnstructuredGridOutput
();
94
96
vtkRectilinearGrid
*
GetRectilinearGridOutput
();
97
98
protected
:
99
vtkProgrammableSource
();
100
~
vtkProgrammableSource
();
101
102
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
103
virtual
int
RequestDataObject
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
104
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
105
106
ProgrammableMethodCallbackType
ExecuteMethod
;
//function to invoke
107
ProgrammableMethodCallbackType
ExecuteMethodArgDelete
;
108
void
*
ExecuteMethodArg
;
109
ProgrammableMethodCallbackType
RequestInformationMethod
;
// function to invoke
110
111
vtkTimeStamp
ExecuteTime
;
112
int
RequestedDataType
;
113
114
private
:
115
vtkProgrammableSource
(
const
vtkProgrammableSource
&);
// Not implemented.
116
void
operator=(
const
vtkProgrammableSource
&);
// Not implemented.
117
};
118
119
#endif
120
Generated on Fri Aug 2 2013 12:19:49 for VTK by
1.8.4