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 "vtkFiltersSourcesModule.h" // For export macro
45 #include "vtkDataObjectAlgorithm.h"
46 
48 {
49 public:
52  void PrintSelf(ostream& os, vtkIndent indent);
53 
61  typedef void (*ProgrammableMethodCallbackType)(void *arg);
62 
65  void SetExecuteMethod(void (*f)(void *), void *arg);
66 
68  void SetExecuteMethodArgDelete(void (*f)(void *));
69 
70 protected:
73 
76 
77  ProgrammableMethodCallbackType ExecuteMethod; //function to invoke
78  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
80 private:
82  void operator=(const vtkProgrammableDataObjectSource&); // Not implemented.
83 };
84 
85 #endif
vtkProgrammableDataObjectSource
generate source data object via a user-specified function
Definition: vtkProgrammableDataObjectSource.h:48
vtkProgrammableDataObjectSource::~vtkProgrammableDataObjectSource
~vtkProgrammableDataObjectSource()
vtkProgrammableDataObjectSource::vtkProgrammableDataObjectSource
vtkProgrammableDataObjectSource()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkDataObjectAlgorithm
Superclass for algorithms that produce only data object as output.
Definition: vtkDataObjectAlgorithm.h:43
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkProgrammableDataObjectSource::SetExecuteMethod
void SetExecuteMethod(void(*f)(void *), void *arg)
vtkFiltersSourcesModule.h
vtkProgrammableDataObjectSource::ExecuteMethod
ProgrammableMethodCallbackType ExecuteMethod
Definition: vtkProgrammableDataObjectSource.h:77
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkProgrammableDataObjectSource::ExecuteMethodArgDelete
ProgrammableMethodCallbackType ExecuteMethodArgDelete
Definition: vtkProgrammableDataObjectSource.h:78
vtkProgrammableDataObjectSource::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkProgrammableDataObjectSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkgl::f
GLclampf f
Definition: vtkgl.h:14181
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkProgrammableDataObjectSource::SetExecuteMethodArgDelete
void SetExecuteMethodArgDelete(void(*f)(void *))
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
vtkDataObjectAlgorithm.h
vtkProgrammableDataObjectSource::ExecuteMethodArg
void * ExecuteMethodArg
Definition: vtkProgrammableDataObjectSource.h:79
vtkProgrammableDataObjectSource::New
static vtkProgrammableDataObjectSource * New()