VTK  9.2.6
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 =========================================================================*/
39 #ifndef vtkProgrammableDataObjectSource_h
40 #define vtkProgrammableDataObjectSource_h
41 
42 #include "vtkDataObjectAlgorithm.h"
43 #include "vtkFiltersSourcesModule.h" // For export macro
44 
45 class VTKFILTERSSOURCES_EXPORT vtkProgrammableDataObjectSource : public vtkDataObjectAlgorithm
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
61  typedef void (*ProgrammableMethodCallbackType)(void* arg);
62 
67  void SetExecuteMethod(void (*f)(void*), void* arg);
68 
72  void SetExecuteMethodArgDelete(void (*f)(void*));
73 
74 protected:
77 
79 
80  ProgrammableMethodCallbackType ExecuteMethod; // function to invoke
81  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
83 
84 private:
86  void operator=(const vtkProgrammableDataObjectSource&) = delete;
87 };
88 
89 #endif
ProgrammableMethodCallbackType ExecuteMethod
Store vtkAlgorithm input/output information.
static vtkDataObjectAlgorithm * New()
a simple class to control print indentation
Definition: vtkIndent.h:39
ProgrammableMethodCallbackType ExecuteMethodArgDelete
Superclass for algorithms that produce only data object as output.
generate source data object via a user-specified function
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.