vtkWrapPythonMethod.h 1.52 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkWrapPythonMethod.h

  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/

#ifndef VTK_WRAP_PYTHON_METHOD_H
#define VTK_WRAP_PYTHON_METHOD_H

#include "vtkParse.h"
#include "vtkParseData.h"
#include "vtkParseHierarchy.h"

/* print out the code for one method, including all of its overloads */
void vtkWrapPython_GenerateOneMethod(
  FILE *fp, const char *classname, ClassInfo *data, HierarchyInfo *hinfo,
  FunctionInfo *wrappedFunctions[], int numberOfWrappedFunctions, int fnum,
  int is_vtkobject, int do_constructors);

/* declare all variables needed by the wrapper method */
void vtkWrapPython_DeclareVariables(
31
  FILE *fp, ClassInfo *data, FunctionInfo *theFunc);
32 33 34

/* Write the code to convert an argument with vtkPythonArgs */
void vtkWrapPython_GetSingleArgument(
35
  FILE *fp, ClassInfo *data, int i, ValueInfo *arg, int call_static);
36 37 38

/* print the code to build python return value from a method */
void vtkWrapPython_ReturnValue(
39
  FILE *fp, ClassInfo *data, ValueInfo *val, int static_call);
40 41

#endif /* VTK_WRAP_PYTHON_METHOD_H */