VTK
vtkWrapPythonMethod.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWrapPythonMethod.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 =========================================================================*/
15 
16 #ifndef VTK_WRAP_PYTHON_METHOD_H
17 #define VTK_WRAP_PYTHON_METHOD_H
18 
19 #include "vtkParse.h"
20 #include "vtkParseData.h"
21 #include "vtkParseHierarchy.h"
22 
23 /* print out the code for one method, including all of its overloads */
25  FILE *fp, const char *classname, ClassInfo *data, HierarchyInfo *hinfo,
26  FunctionInfo *wrappedFunctions[], int numberOfWrappedFunctions, int fnum,
27  int is_vtkobject, int do_constructors);
28 
29 /* declare all variables needed by the wrapper method */
31  FILE *fp, ClassInfo *data, FunctionInfo *theFunc);
32 
33 /* Write the code to convert an argument with vtkPythonArgs */
35  FILE *fp, ClassInfo *data, int i, ValueInfo *arg, int call_static);
36 
37 /* print the code to build python return value from a method */
39  FILE *fp, ClassInfo *data, ValueInfo *val, int static_call);
40 
41 #endif /* VTK_WRAP_PYTHON_METHOD_H */
vtkgl::data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: vtkgl.h:11339
_ValueInfo
ValueInfo is for typedefs, constants, variables, function parameters, and return values.
Definition: vtkParseData.h:99
vtkWrapPython_GenerateOneMethod
void vtkWrapPython_GenerateOneMethod(FILE *fp, const char *classname, ClassInfo *data, HierarchyInfo *hinfo, FunctionInfo *wrappedFunctions[], int numberOfWrappedFunctions, int fnum, int is_vtkobject, int do_constructors)
_ClassInfo
ClassInfo is for classes, structs, unions, and namespaces.
Definition: vtkParseData.h:176
vtkWrapPython_ReturnValue
void vtkWrapPython_ReturnValue(FILE *fp, ClassInfo *data, ValueInfo *val, int static_call)
vtkWrapPython_GetSingleArgument
void vtkWrapPython_GetSingleArgument(FILE *fp, ClassInfo *data, int i, ValueInfo *arg, int call_static)
vtkParseHierarchy.h
vtkgl::val
GLuint GLfloat * val
Definition: vtkgl.h:13789
vtkParse.h
vtkParseData.h
_FunctionInfo
FunctionInfo is for functions and methods.
Definition: vtkParseData.h:122
_HierarchyInfo
All the entries from a hierarchy file.
Definition: vtkParseHierarchy.h:71
vtkWrapPython_DeclareVariables
void vtkWrapPython_DeclareVariables(FILE *fp, ClassInfo *data, FunctionInfo *theFunc)