VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
Sources
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 "vtkFiltersSourcesModule.h"
// For export macro
47
#include "
vtkDataSetAlgorithm.h
"
48
49
class
vtkPolyData
;
50
class
vtkStructuredPoints
;
51
class
vtkStructuredGrid
;
52
class
vtkUnstructuredGrid
;
53
class
vtkRectilinearGrid
;
54
55
class
VTKFILTERSSOURCES_EXPORT
vtkProgrammableSource
:
public
vtkDataSetAlgorithm
56
{
57
public
:
58
static
vtkProgrammableSource
*
New
();
59
vtkTypeMacro(
vtkProgrammableSource
,
vtkDataSetAlgorithm
);
60
68
typedef
void (*ProgrammableMethodCallbackType)(
void
*arg);
69
72
void
SetExecuteMethod(
void
(*f)(
void
*),
void
*arg);
73
75
void
SetExecuteMethodArgDelete(
void
(*f)(
void
*));
76
79
void
SetRequestInformationMethod(
void
(*f)(
void
*));
80
85
vtkPolyData
*
GetPolyDataOutput
();
86
88
vtkStructuredPoints
*
GetStructuredPointsOutput
();
89
91
vtkStructuredGrid
*
GetStructuredGridOutput
();
92
94
vtkUnstructuredGrid
*
GetUnstructuredGridOutput
();
95
97
vtkRectilinearGrid
*
GetRectilinearGridOutput
();
98
99
protected
:
100
vtkProgrammableSource
();
101
~
vtkProgrammableSource
();
102
103
virtual
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
104
virtual
int
RequestDataObject
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
105
virtual
int
RequestInformation
(
vtkInformation
*,
vtkInformationVector
**,
vtkInformationVector
*);
106
107
ProgrammableMethodCallbackType
ExecuteMethod
;
//function to invoke
108
ProgrammableMethodCallbackType
ExecuteMethodArgDelete
;
109
void
*
ExecuteMethodArg
;
110
ProgrammableMethodCallbackType
RequestInformationMethod
;
// function to invoke
111
112
vtkTimeStamp
ExecuteTime
;
113
int
RequestedDataType
;
114
115
private
:
116
vtkProgrammableSource
(
const
vtkProgrammableSource
&);
// Not implemented.
117
void
operator=(
const
vtkProgrammableSource
&);
// Not implemented.
118
};
119
120
#endif
121
122
// VTK-HeaderTest-Exclude: vtkProgrammableSource.h
Generated on Thu May 24 2012 22:22:23 for VTK by
1.8.1