hpi.cpp File Reference

#include "hugin_script_interface/hpi_classes.h"
#include "hugin_script_interface/hpi.h"
#include <stdarg.h>

Include dependency graph for hpi.cpp:

Include dependency graph

Go to the source code of this file.

Namespaces

namespace  hpi

Functions

int callhpi (const char *plugin_name, int argc,...)
 simplified call interface to the Python Plugin facility.

Variables

python_interface hpi_instance
 this is where we keep the single instance of class python_interface


Function Documentation

hsi_IMPEX int hpi::callhpi const char *  plugin_name,
int  argc,
  ...
 

simplified call interface to the Python Plugin facility.

Parameters:
plugin_name the name of the plugin. This must name a python file which is in PYTHONPATH, without path and extension.
argc the number of arguments to the plugin, not the number of argument to this function.
for each argument, two more values has to be given:
  • a string containing the name of the type (this may need to be fully qualified, like 'HuginBase::Panorama*'
  • a void* to the actual hugin object

Definition at line 55 of file hpi.cpp.

References hpi::python_interface::activate(), hpi::python_arglist::add(), hpi::python_interface::call_hpi(), hpi::hpi_instance, hpi::python_arglist::make_hsi_object(), and hpi::python_arglist::yield().


Variable Documentation

python_interface hpi::hpi_instance [static]
 

this is where we keep the single instance of class python_interface

Definition at line 53 of file hpi.cpp.

Referenced by hpi::callhpi().


Generated on Sun Apr 20 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1