VTK
vtkPythonOverload.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPythonOverload.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 =========================================================================*/
28 #ifndef vtkPythonOverload_h
29 #define vtkPythonOverload_h
30 
31 #include "vtkWrappingPythonCoreModule.h" // For export macro
32 #include "vtkPython.h"
33 
34 class VTKWRAPPINGPYTHONCORE_EXPORT vtkPythonOverload
35 {
36 public:
37 
39 
41  static int CheckArg(PyObject *arg, const char *format,
42  const char *classname, int level=0);
44 
46 
49  static PyObject *CallMethod(PyMethodDef *methods,
50  PyObject *self, PyObject *args);
52 
54 
58  static PyMethodDef *FindConversionMethod(PyMethodDef *methods,
59  PyObject *arg);
60 };
62 
63 #endif
Created in June 2010 by David Gobbi, originally in vtkPythonUtil.
struct _object PyObject