VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPythonOverload.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 =========================================================================*/ 00028 #ifndef vtkPythonOverload_h 00029 #define vtkPythonOverload_h 00030 00031 #include "vtkWrappingPythonCoreModule.h" // For export macro 00032 #include "vtkPython.h" 00033 00034 class VTKWRAPPINGPYTHONCORE_EXPORT vtkPythonOverload 00035 { 00036 public: 00037 00039 00041 static int CheckArg(PyObject *arg, const char *format, 00042 const char *classname, int level=0); 00044 00046 00049 static PyObject *CallMethod(PyMethodDef *methods, 00050 PyObject *self, PyObject *args); 00052 00054 00058 static PyMethodDef *FindConversionMethod(PyMethodDef *methods, 00059 PyObject *arg); 00060 }; 00062 00063 #endif