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:
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
vtkStructuredPoints
A subclass of ImageData.
Definition: vtkStructuredPoints.h:39
vtkProgrammableSource::ExecuteMethodArg
void * ExecuteMethodArg
Definition: vtkProgrammableSource.h:109
vtkProgrammableSource::RequestInformation
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkProgrammableSource::ExecuteMethodArgDelete
ProgrammableMethodCallbackType ExecuteMethodArgDelete
Definition: vtkProgrammableSource.h:108
vtkProgrammableSource::SetRequestInformationMethod
void SetRequestInformationMethod(void(*f)(void *))
vtkProgrammableSource::New
static vtkProgrammableSource * New()
vtkRectilinearGrid
a dataset that is topologically regular with variable spacing in the three coordinate directions
Definition: vtkRectilinearGrid.h:56
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:35
vtkProgrammableSource::RequestedDataType
int RequestedDataType
Definition: vtkProgrammableSource.h:113
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkStructuredGrid
topologically regular array of data
Definition: vtkStructuredGrid.h:63
vtkFiltersSourcesModule.h
vtkProgrammableSource::ExecuteMethod
ProgrammableMethodCallbackType ExecuteMethod
Definition: vtkProgrammableSource.h:107
vtkProgrammableSource::~vtkProgrammableSource
~vtkProgrammableSource()
vtkProgrammableSource::GetStructuredGridOutput
vtkStructuredGrid * GetStructuredGridOutput()
vtkProgrammableSource::SetExecuteMethod
void SetExecuteMethod(void(*f)(void *), void *arg)
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:51
vtkProgrammableSource::ExecuteTime
vtkTimeStamp ExecuteTime
Definition: vtkProgrammableSource.h:112
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkProgrammableSource::RequestInformationMethod
ProgrammableMethodCallbackType RequestInformationMethod
Definition: vtkProgrammableSource.h:110
vtkProgrammableSource
generate source dataset via a user-specified function
Definition: vtkProgrammableSource.h:56
vtkProgrammableSource::GetPolyDataOutput
vtkPolyData * GetPolyDataOutput()
vtkProgrammableSource::GetRectilinearGridOutput
vtkRectilinearGrid * GetRectilinearGridOutput()
vtkgl::f
GLclampf f
Definition: vtkgl.h:14181
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkDataSetAlgorithm.h
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkProgrammableSource::GetUnstructuredGridOutput
vtkUnstructuredGrid * GetUnstructuredGridOutput()
vtkProgrammableSource::RequestDataObject
virtual int RequestDataObject(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkProgrammableSource::SetExecuteMethodArgDelete
void SetExecuteMethodArgDelete(void(*f)(void *))
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
vtkgl::void
typedef void(APIENTRYP PFNGLBLENDCOLORPROC)(GLclampf red
vtkProgrammableSource::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkProgrammableSource::GetStructuredPointsOutput
vtkStructuredPoints * GetStructuredPointsOutput()
vtkProgrammableSource::vtkProgrammableSource
vtkProgrammableSource()