• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

plugins/H03-May-2022-2,1771,055

plugins-dev/H03-May-2022-12847

README.doxH A D17-Jul-20111.7 KiB4837

hpi.cppH A D10-May-20155.4 KiB18186

hpi.hH A D15-Sep-20151.7 KiB5315

hpi.pyH A D03-May-20225.2 KiB15254

hpi_classes.cppH A D10-May-20154.7 KiB193137

hpi_classes.hH A D22-Jul-20154.7 KiB13440

hsi.iH A D10-May-20158.5 KiB275167

README.dox

1namespace hsi
2{
3/** @file README.dox
4
5@page hsihpi Hugin script interface and hugin python interface
6
7@section hsi Hugin script interface (hsi)
8
9The hugin script interface (hsi) provides a wrapper for the functions
10and classes in huginbase to Python. So you can use the huginbase
11functionality inside Python.
12The wrapped function and classes in Python have the same name and
13interface like the C++ classes and function, see \ref hugin_base for
14details about the functions.
15To use it inside Python you need to import it with
16@code
17import hsi
18@endcode
19
20@section hpi Hugin Python interface (hpi)
21
22The hugin python interface provides the interface to call Python function
23from inside Hugin GUI.
24The main function is hpi::callhpi, which executes a given python script
25with the given parameters.
26
27@section hsibackground Background
28
29The wrapper are automatically created by Swig (http://www.swig.org/).
30Swig works for most parts of huginbase code. But there are some
31points to consider.
32
33#define SWIG - this is only defined when code is processed by SWIG. It's used
34to hide code from SWIG which it can't (yet?) handle.
35
36#define _HSI_IGNORE_SECTION - this is only defined during the separate C-
37preprocessing of certain hugin header files which use a technique
38dubbed 'lazy metaprogramming' which SWIG can't handle. Preprocessing
39'flattens' the files - it pulls in all code that is #included by them.
40Most of the code pulled in this way mustn't be wrapped by SWIG, so it
41is switched off via #ifndef _HSI_IGNORE_SECTION.
42
43#define HUGIN_HSI - this is defined globally if hsi/hpi capability has been
44switched on. It is used to activate the hsi/hpi related code inside the
45Hugin GUI.
46
47*/
48}