VTK  9.1.0
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
40#include "vtkFiltersSourcesModule.h" // For export macro
41
42class VTKFILTERSSOURCES_EXPORT vtkProgrammableDataObjectSource : public vtkDataObjectAlgorithm
43{
44public:
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
71protected:
74
76
77 ProgrammableMethodCallbackType ExecuteMethod; // function to invoke
78 ProgrammableMethodCallbackType ExecuteMethodArgDelete;
80
81private:
83 void operator=(const vtkProgrammableDataObjectSource&) = delete;
84};
85
86#endif
Superclass for algorithms that produce only data object as output.
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
generate source data object via a user-specified function
ProgrammableMethodCallbackType ExecuteMethod
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
void SetExecuteMethod(void(*f)(void *), void *arg)
Specify the function to use to generate the output data object.
static vtkProgrammableDataObjectSource * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetExecuteMethodArgDelete(void(*f)(void *))
Set the arg delete method.
ProgrammableMethodCallbackType ExecuteMethodArgDelete