Skip to content

SCIRun Python API 0.2

Dan White edited this page Jan 28, 2016 · 29 revisions

TODO TODO TODO

The API contains global functions for network editing, module state modification, and data object extraction and insertion.

Global functions

  • scirun_add_module("ModuleName")

    • Adds a new instance of a module to the network. Returns the module ID as a string.

    boost::python::def("scirun_remove_module", &NetworkEditorPythonAPI::removeModule); boost::python::def("scirun_execute_all", &NetworkEditorPythonAPI::executeAll); boost::python::def("scirun_module_ids", &SimplePythonAPI::scirun_module_ids);

    boost::python::def("scirun_connect_modules", &NetworkEditorPythonAPI::connect); boost::python::def("scirun_disconnect_modules", &NetworkEditorPythonAPI::disconnect);

    boost::python::def("scirun_get_module_state", &NetworkEditorPythonAPI::scirun_get_module_state); boost::python::def("scirun_set_module_state", &NetworkEditorPythonAPI::scirun_set_module_state); boost::python::def("scirun_dump_module_state", &NetworkEditorPythonAPI::scirun_dump_module_state);

    boost::python::def("scirun_get_module_transient_state", &NetworkEditorPythonAPI::scirun_get_module_transient_state); boost::python::def("scirun_set_module_transient_state", &NetworkEditorPythonAPI::scirun_set_module_transient_state);

    boost::python::def("scirun_get_module_input_type", &NetworkEditorPythonAPI::scirun_get_module_input_type);

    boost::python::def("scirun_get_module_input_object", &NetworkEditorPythonAPI::scirun_get_module_input_object); boost::python::def("scirun_get_module_input_value", &NetworkEditorPythonAPI::scirun_get_module_input_value); boost::python::def("scirun_get_module_input_object_by_index", &NetworkEditorPythonAPI::scirun_get_module_input_object_index); boost::python::def("scirun_get_module_input_value_by_index", &NetworkEditorPythonAPI::scirun_get_module_input_value_index);

    //boost::python::def("scirun_set_module_input_value", &NetworkEditorPythonAPI::scirun_set_module_input_value); //boost::python::def("scirun_set_module_input_value_by_index", &NetworkEditorPythonAPI::scirun_set_module_input_value_by_index);

    boost::python::def("scirun_save_network", &NetworkEditorPythonAPI::saveNetwork); boost::python::def("scirun_load_network", &NetworkEditorPythonAPI::loadNetwork); boost::python::def("scirun_import_network", &NetworkEditorPythonAPI::importNetwork); boost::python::def("scirun_quit", &SimplePythonAPI::scirun_quit); boost::python::def("scirun_force_quit", &SimplePythonAPI::scirun_force_quit); }

Clone this wiki locally