VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Wrapping/Tools/vtkWrapPythonMethod.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkWrapPythonMethod.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 
00016 #ifndef VTK_WRAP_PYTHON_METHOD_H
00017 #define VTK_WRAP_PYTHON_METHOD_H
00018 
00019 #include "vtkParse.h"
00020 #include "vtkParseData.h"
00021 #include "vtkParseHierarchy.h"
00022 
00023 /* print out the code for one method, including all of its overloads */
00024 void vtkWrapPython_GenerateOneMethod(
00025   FILE *fp, const char *classname, ClassInfo *data, HierarchyInfo *hinfo,
00026   FunctionInfo *wrappedFunctions[], int numberOfWrappedFunctions, int fnum,
00027   int is_vtkobject, int do_constructors);
00028 
00029 /* declare all variables needed by the wrapper method */
00030 void vtkWrapPython_DeclareVariables(
00031   FILE *fp, ClassInfo *data, FunctionInfo *theFunc);
00032 
00033 /* Write the code to convert an argument with vtkPythonArgs */
00034 void vtkWrapPython_GetSingleArgument(
00035   FILE *fp, ClassInfo *data, int i, ValueInfo *arg, int call_static);
00036 
00037 /* print the code to build python return value from a method */
00038 void vtkWrapPython_ReturnValue(
00039   FILE *fp, ClassInfo *data, ValueInfo *val, int static_call);
00040 
00041 #endif /* VTK_WRAP_PYTHON_METHOD_H */