VTK
vtkWrapPythonEnum.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkWrapPythonEnum.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 =========================================================================*/
15 
16 #ifndef vtkWrapPythonEnum_h
17 #define vtkWrapPythonEnum_h
18 
19 #include "vtkParse.h"
20 #include "vtkParseData.h"
21 #include "vtkParseHierarchy.h"
22 
23 /* check whether an enum type will be wrapped */
25  HierarchyInfo *hinfo, const char *enumname);
26 
27 /* find and mark all enum parameters by setting IsEnum=1 */
29  NamespaceInfo *contents, HierarchyInfo *hinfo);
30 
31 /* write out an enum type wrapped in python */
33  FILE *fp, const char *module, const char *classname, EnumInfo *data);
34 
35 /* generate code that adds an enum type to a python dict */
37  FILE *fp, const char *indent, const char *dictvar, const char *objvar,
38  const char *scope, EnumInfo *cls);
39 
40 /* generate code that adds all public enum types to a python dict */
42  FILE *fp, const char *indent, const char *dictvar, const char *objvar,
44 
45 #endif /* vtkWrapPythonEnum_h */
int vtkWrapPython_IsEnumWrapped(HierarchyInfo *hinfo, const char *enumname)
All the entries from a hierarchy file.
void vtkWrapPython_AddPublicEnumTypes(FILE *fp, const char *indent, const char *dictvar, const char *objvar, NamespaceInfo *data)
void vtkWrapPython_GenerateEnumType(FILE *fp, const char *module, const char *classname, EnumInfo *data)
void vtkWrapPython_MarkAllEnums(NamespaceInfo *contents, HierarchyInfo *hinfo)
ClassInfo is for classes, structs, unions, and namespaces.
Definition: vtkParseData.h:175
void vtkWrapPython_AddEnumType(FILE *fp, const char *indent, const char *dictvar, const char *objvar, const char *scope, EnumInfo *cls)