Download Latest Version hugin++-2021-1-1-source.zip (15.3 MB)
Email in envelope

Get an email when there's a new version of Hugin++

Home / source / src / hugin_script_interface
Name Modified Size InfoDownloads / Week
Parent folder
plugins-dev 2021-06-04
plugins 2021-06-04
hpi_classes.h 2021-06-04 4.9 kB
CMakeLists.txt 2021-06-04 8.5 kB
hpi.cpp 2021-05-01 5.5 kB
hpi.h 2021-05-01 1.7 kB
hpi.py 2021-05-01 5.3 kB
hpi_classes.cpp 2021-05-01 4.8 kB
hsi.i 2021-05-01 8.8 kB
README.dox 2021-05-01 1.7 kB
README_hsi.txt 2021-05-01 9.7 kB
Totals: 11 Items   50.9 kB 0
namespace hsi
{
/** @file README.dox

@page hsihpi Hugin script interface and hugin python interface
 
@section hsi Hugin script interface (hsi)

The hugin script interface (hsi) provides a wrapper for the functions
and classes in huginbase to Python. So you can use the huginbase 
functionality inside Python.
The wrapped function and classes in Python have the same name and
interface like the C++ classes and function, see \ref hugin_base for
details about the functions.
To use it inside Python you need to import it with 
@code 
import hsi
@endcode

@section hpi Hugin Python interface (hpi)

The hugin python interface provides the interface to call Python function
from inside Hugin GUI.
The main function is hpi::callhpi, which executes a given python script
with the given parameters.

@section hsibackground Background

The wrapper are automatically created by Swig (http://www.swig.org/).
Swig works for most parts of huginbase code. But there are some 
points to consider. 

#define SWIG - this is only defined when code is processed by SWIG. It's used
to hide code from SWIG which it can't (yet?) handle.

#define _HSI_IGNORE_SECTION - this is only defined during the separate C-
preprocessing of certain hugin header files which use a technique
dubbed 'lazy metaprogramming' which SWIG can't handle. Preprocessing
'flattens' the files - it pulls in all code that is #included by them.
Most of the code pulled in this way mustn't be wrapped by SWIG, so it
is switched off via #ifndef _HSI_IGNORE_SECTION. 

#define HUGIN_HSI - this is defined globally if hsi/hpi capability has been
switched on. It is used to activate the hsi/hpi related code inside the 
Hugin GUI.

*/
}
Source: README.dox, updated 2021-05-01