VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkWrapPythonEnum.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_ENUM_H 00017 #define VTK_WRAP_PYTHON_ENUM_H 00018 00019 #include "vtkParse.h" 00020 #include "vtkParseData.h" 00021 #include "vtkParseHierarchy.h" 00022 00023 /* check whether an enum type will be wrapped */ 00024 int vtkWrapPython_IsEnumWrapped( 00025 HierarchyInfo *hinfo, const char *enumname); 00026 00027 /* write out an enum type wrapped in python */ 00028 void vtkWrapPython_GenerateEnumType( 00029 FILE *fp, const char *classname, EnumInfo *data); 00030 00031 /* generate code that adds an enum type to a python dict */ 00032 void vtkWrapPython_AddEnumType( 00033 FILE *fp, const char *indent, const char *dictvar, const char *objvar, 00034 const char *scope, EnumInfo *cls); 00035 00036 /* generate code that adds all public enum types to a python dict */ 00037 void vtkWrapPython_AddPublicEnumTypes( 00038 FILE *fp, const char *indent, const char *dictvar, const char *objvar, 00039 NamespaceInfo *data); 00040 00041 #endif /* VTK_WRAP_PYTHON_ENUM_H */