VTK
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;
51 class vtkStructuredGrid;
53 class vtkRectilinearGrid;
54 
56 {
57 public:
58  static vtkProgrammableSource *New();
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 
86 
89 
92 
95 
98 
99 protected:
102 
106 
107  ProgrammableMethodCallbackType ExecuteMethod; //function to invoke
108  ProgrammableMethodCallbackType ExecuteMethodArgDelete;
110  ProgrammableMethodCallbackType RequestInformationMethod; // function to invoke
111 
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
vtkStructuredGrid * GetStructuredGridOutput()
ProgrammableMethodCallbackType ExecuteMethodArgDelete
a dataset that is topologically regular with variable spacing in the three coordinate directions ...
Store vtkAlgorithm input/output information.
vtkRectilinearGrid * GetRectilinearGridOutput()
ProgrammableMethodCallbackType ExecuteMethod
record modification and/or execution time
Definition: vtkTimeStamp.h:34
vtkUnstructuredGrid * GetUnstructuredGridOutput()
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
ProgrammableMethodCallbackType RequestInformationMethod
#define VTKFILTERSSOURCES_EXPORT
dataset represents arbitrary combinations of all possible cell types
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
generate source dataset via a user-specified function
vtkStructuredPoints * GetStructuredPointsOutput()
A subclass of ImageData.
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
topologically regular array of data
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
virtual int RequestDataObject(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkDataSetAlgorithm * New()
vtkPolyData * GetPolyDataOutput()