Method summary
- __init__(self, out_dir = '')
- build_zip(self, include_src = False)
- clean(self)
- generate_code(self)
- write_wrapper_classes(self, names)
Methods
- __init__(self, out_dir = '')
Initializes the instance.
Parameters
out_dir - string
The output directory to generate code in. The directory is created if it does not exist. A directory called tvtk_classes is created inside this directory and all the code is written here. Any existing code there is blindly overwritten. If no out_dir is specified, a temporary one is created using tempfile.mkdtemp.
- build_zip(self, include_src = False)
Build the zip file (with name self.zip_name) in the current directory.
Parameters
include_src : bool (default: False)
If True, also includes all the *.py files in the ZIP file. By default only the *.pyc files are included.
- clean(self)
Delete the temporary directory where the code has been generated.
- generate_code(self)
Generate all the wrapper code in self.out_dir.
- write_wrapper_classes(self, names)
Given VTK class names in the list names, write out the wrapper classes to a suitable file. This is a convenience method so one can generate a just a few of the wrapper classes if desired. This is useful when debugging. Please note that the method also generates code for all the ancestors of the specified classes.