VTK
dox
Filters
Sources
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
=========================================================================*/
36
#ifndef vtkProgrammableDataObjectSource_h
37
#define vtkProgrammableDataObjectSource_h
38
39
#include "vtkFiltersSourcesModule.h"
// For export macro
40
#include "
vtkDataObjectAlgorithm.h
"
41
42
class
VTKFILTERSSOURCES_EXPORT
vtkProgrammableDataObjectSource
:
public
vtkDataObjectAlgorithm
43
{
44
public
:
45
static
vtkProgrammableDataObjectSource
*
New
();
46
vtkTypeMacro(
vtkProgrammableDataObjectSource
,
vtkDataObjectAlgorithm
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
48
58
typedef
void (*ProgrammableMethodCallbackType)(
void
*arg);
59
64
void
SetExecuteMethod(
void
(*f)(
void
*),
void
*arg);
65
69
void
SetExecuteMethodArgDelete(
void
(*f)(
void
*));
70
71
protected
:
72
vtkProgrammableDataObjectSource
();
73
~
vtkProgrammableDataObjectSource
()
override
;
74
75
int
RequestData
(
vtkInformation
*,
vtkInformationVector
**,
76
vtkInformationVector
*)
override
;
77
78
ProgrammableMethodCallbackType
ExecuteMethod
;
//function to invoke
79
ProgrammableMethodCallbackType
ExecuteMethodArgDelete
;
80
void
*
ExecuteMethodArg
;
81
private
:
82
vtkProgrammableDataObjectSource
(
const
vtkProgrammableDataObjectSource
&) =
delete
;
83
void
operator=(
const
vtkProgrammableDataObjectSource
&) =
delete
;
84
};
85
86
#endif
vtkProgrammableDataObjectSource
generate source data object via a user-specified function
Definition:
vtkProgrammableDataObjectSource.h:42
vtkDataObjectAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInformationVector
Store zero or more vtkInformation instances.
Definition:
vtkInformationVector.h:35
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition:
vtkDataObjectAlgorithm.h:43
vtkProgrammableDataObjectSource::ExecuteMethod
ProgrammableMethodCallbackType ExecuteMethod
Definition:
vtkProgrammableDataObjectSource.h:78
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkProgrammableDataObjectSource::ExecuteMethodArgDelete
ProgrammableMethodCallbackType ExecuteMethodArgDelete
Definition:
vtkProgrammableDataObjectSource.h:79
vtkInformation
Store vtkAlgorithm input/output information.
Definition:
vtkInformation.h:80
vtkDataObjectAlgorithm::New
static vtkDataObjectAlgorithm * New()
vtkDataObjectAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Definition:
vtkDataObjectAlgorithm.h:122
vtkDataObjectAlgorithm.h
vtkProgrammableDataObjectSource::ExecuteMethodArg
void * ExecuteMethodArg
Definition:
vtkProgrammableDataObjectSource.h:80
Generated by
1.8.16