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 vtkWrapPythonMethod_h
17 #define vtkWrapPythonMethod_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 /* vtkWrapPythonMethod_h */
All the entries from a hierarchy file.
void vtkWrapPython_DeclareVariables(FILE *fp, ClassInfo *data, FunctionInfo *theFunc)
void vtkWrapPython_ReturnValue(FILE *fp, ClassInfo *data, ValueInfo *val, int static_call)
void vtkWrapPython_GetSingleArgument(FILE *fp, ClassInfo *data, int i, ValueInfo *arg, int call_static)
ValueInfo is for typedefs, constants, variables, function parameters, and return values.
Definition: vtkParseData.h:98
FunctionInfo is for functions and methods.
Definition: vtkParseData.h:121
ClassInfo is for classes, structs, unions, and namespaces.
Definition: vtkParseData.h:175
void vtkWrapPython_GenerateOneMethod(FILE *fp, const char *classname, ClassInfo *data, HierarchyInfo *hinfo, FunctionInfo *wrappedFunctions[], int numberOfWrappedFunctions, int fnum, int is_vtkobject, int do_constructors)