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 
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
VTKWRAPPINGPYTHONCORE_EXPORT
#define VTKWRAPPINGPYTHONCORE_EXPORT
Definition: vtkWrappingPythonCoreModule.h:15
vtkPythonOverload::CallMethod
static PyObject * CallMethod(PyMethodDef *methods, PyObject *self, PyObject *args)
PyObject
struct _object PyObject
Definition: vtkMatplotlibMathTextUtilities.h:37
vtkWrappingPythonCoreModule.h
vtkPythonOverload::FindConversionMethod
static PyMethodDef * FindConversionMethod(PyMethodDef *methods, PyObject *arg)
vtkPythonOverload::CheckArg
static int CheckArg(PyObject *arg, const char *format, const char *classname, int level=0)
vtkgl::level
GLint level
Definition: vtkgl.h:11316
vtkPythonOverload
Created in June 2010 by David Gobbi, originally in vtkPythonUtil.
Definition: vtkPythonOverload.h:35
vtkgl::format
GLint GLint GLsizei GLsizei GLsizei GLint GLenum format
Definition: vtkgl.h:11316