GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "graphics.h"
Classes | |
class | auto_lock |
Static Public Member Functions | |
static void | cleanup_instance (void) |
static void | cleanup_instance (void) |
static void | close_all_figures (void) |
static void | close_all_figures (void) |
static void | create_instance (void) |
static void | create_instance (void) |
static graphics_handle | current_figure (void) |
static graphics_handle | current_figure (void) |
static void | enable_event_processing (bool enable=true) |
static void | enable_event_processing (bool enable=true) |
static void | execute_callback (const graphics_handle &h, const std::string &name, const octave_value &data=Matrix()) |
static void | execute_callback (const graphics_handle &h, const octave_value &cb, const octave_value &data=Matrix()) |
static void | execute_callback (const graphics_handle &h, const std::string &name, const octave_value &data=Matrix()) |
static void | execute_callback (const graphics_handle &h, const octave_value &cb, const octave_value &data=Matrix()) |
static void | execute_listener (const graphics_handle &h, const octave_value &l) |
static void | execute_listener (const graphics_handle &h, const octave_value &l) |
static Matrix | figure_handle_list (bool show_hidden=false) |
static Matrix | figure_handle_list (bool show_hidden=false) |
static int | flush_events (void) |
static int | flush_events (void) |
static void | free (const graphics_handle &h) |
static void | free (const graphics_handle &h) |
static graphics_handle | get_handle (bool integer_figure_handle) |
static graphics_handle | get_handle (bool integer_figure_handle) |
static graphics_object | get_object (double val) |
static graphics_object | get_object (const graphics_handle &h) |
static graphics_object | get_object (double val) |
static graphics_object | get_object (const graphics_handle &h) |
static Matrix | handle_list (bool show_hidden=false) |
static Matrix | handle_list (bool show_hidden=false) |
static bool | instance_ok (void) |
static bool | instance_ok (void) |
static bool | is_handle_visible (const graphics_handle &h) |
static bool | is_handle_visible (const graphics_handle &h) |
static void | lock (void) |
static void | lock (void) |
static graphics_handle | lookup (double val) |
static graphics_handle | lookup (const octave_value &val) |
static graphics_handle | lookup (double val) |
static graphics_handle | lookup (const octave_value &val) |
static graphics_handle | make_figure_handle (double val, bool do_notify_toolkit=true) |
static graphics_handle | make_figure_handle (double val, bool do_notify_toolkit=true) |
static graphics_handle | make_graphics_handle (const std::string &go_name, const graphics_handle &parent, bool integer_figure_handle=false, bool do_createfcn=true, bool do_notify_toolkit=true) |
static graphics_handle | make_graphics_handle (const std::string &go_name, const graphics_handle &parent, bool integer_figure_handle=false, bool do_createfcn=true, bool do_notify_toolkit=true) |
static void | pop_figure (const graphics_handle &h) |
static void | pop_figure (const graphics_handle &h) |
static void | post_callback (const graphics_handle &h, const std::string &name, const octave_value &data=Matrix()) |
static void | post_callback (const graphics_handle &h, const std::string &name, const octave_value &data=Matrix()) |
static void | post_function (graphics_event::event_fcn fcn, void *data=0) |
static void | post_function (graphics_event::event_fcn fcn, void *data=0) |
static void | post_set (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true) |
static void | post_set (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit=true) |
static int | process_events (void) |
static int | process_events (void) |
static void | push_figure (const graphics_handle &h) |
static void | push_figure (const graphics_handle &h) |
static void | renumber_figure (const graphics_handle &old_gh, const graphics_handle &new_gh) |
static void | renumber_figure (const graphics_handle &old_gh, const graphics_handle &new_gh) |
static bool | try_lock (void) |
static bool | try_lock (void) |
static void | unlock (void) |
static void | unlock (void) |
Protected Member Functions | |
gh_manager (void) | |
gh_manager (void) | |
Private Types | |
typedef std::list < graphics_handle > ::const_iterator | const_figure_list_iterator |
typedef std::list < graphics_handle > ::const_iterator | const_figure_list_iterator |
typedef std::set < graphics_handle > ::const_iterator | const_free_list_iterator |
typedef std::set < graphics_handle > ::const_iterator | const_free_list_iterator |
typedef std::map < graphics_handle, graphics_object > ::const_iterator | const_iterator |
typedef std::map < graphics_handle, graphics_object > ::const_iterator | const_iterator |
typedef std::list < graphics_handle >::iterator | figure_list_iterator |
typedef std::list < graphics_handle >::iterator | figure_list_iterator |
typedef std::set < graphics_handle >::iterator | free_list_iterator |
typedef std::set < graphics_handle >::iterator | free_list_iterator |
typedef std::map < graphics_handle, graphics_object >::iterator | iterator |
typedef std::map < graphics_handle, graphics_object >::iterator | iterator |
Static Private Member Functions | |
static void | restore_gcbo (void) |
static void | restore_gcbo (void) |
Private Attributes | |
std::list< graphics_object > | callback_objects |
int | event_processing |
std::list< graphics_event > | event_queue |
std::list< graphics_handle > | figure_list |
octave_mutex | graphics_lock |
std::set< graphics_handle > | handle_free_list |
std::map< graphics_handle, graphics_object > | handle_map |
double | next_handle |
Static Private Attributes | |
static gh_manager * | instance = 0 |
Definition at line 13152 of file graphics.h.
|
private |
Definition at line 6156 of file graphics.in.h.
|
private |
Definition at line 13414 of file graphics.h.
|
private |
Definition at line 6153 of file graphics.in.h.
|
private |
Definition at line 13411 of file graphics.h.
|
private |
Definition at line 6150 of file graphics.in.h.
|
private |
Definition at line 13408 of file graphics.h.
|
private |
Definition at line 6155 of file graphics.in.h.
|
private |
Definition at line 13413 of file graphics.h.
|
private |
Definition at line 6152 of file graphics.in.h.
|
private |
Definition at line 13410 of file graphics.h.
|
private |
Definition at line 6148 of file graphics.in.h.
|
private |
Definition at line 13406 of file graphics.h.
|
protected |
Definition at line 9210 of file graphics.cc.
References gtk_manager::default_toolkit(), and handle_map.
Referenced by create_instance().
|
protected |
|
inlinestatic |
Definition at line 5921 of file graphics.in.h.
|
inlinestatic |
Definition at line 13179 of file graphics.h.
Referenced by create_instance().
|
inlinestatic |
Definition at line 6120 of file graphics.in.h.
|
inlinestatic |
Definition at line 13378 of file graphics.h.
Referenced by do_octave_atexit().
|
static |
|
static |
Definition at line 9223 of file graphics.cc.
References singleton_cleanup_list::add(), cleanup_instance(), gh_manager(), and instance.
|
inlinestatic |
Definition at line 5998 of file graphics.in.h.
|
inlinestatic |
Definition at line 13256 of file graphics.h.
Referenced by root_figure::properties::remove_child(), and figure::properties::set_integerhandle().
|
private |
|
private |
Definition at line 2693 of file graphics.cc.
References close_figure(), force_close_figure(), lookup(), Array< T >::numel(), and octave_handle::ok().
|
inlineprivate |
Definition at line 6254 of file graphics.in.h.
|
inlineprivate |
Definition at line 13512 of file graphics.h.
References is_handle_visible().
|
private |
|
private |
Definition at line 9720 of file graphics.cc.
References command_editor::add_event_hook(), action_container::empty(), event_processing, process_events(), and command_editor::remove_event_hook().
|
private |
|
private |
Definition at line 9518 of file graphics.cc.
References action_container::add_fcn(), octave_handle::as_octave_value(), callback_objects, octave_value::cell_value(), octave_value::class_name(), octave_value::columns(), error(), error_state, eval_string(), feval(), octave_value::function_value(), get_object(), octave_value::is_cell(), octave_value::is_defined(), octave_value::is_empty(), octave_value::is_function(), octave_value::is_function_handle(), octave_value::is_string(), Array< T >::length(), octave_value::length(), restore_gcbo(), octave_value::rows(), octave_value::string_value(), and xset_gcbo().
|
private |
|
private |
Definition at line 9504 of file graphics.cc.
References graphics_event::create_callback_event(), do_post_event(), execute_callback(), and octave_thread::is_octave_thread().
Definition at line 6230 of file graphics.in.h.
Definition at line 13488 of file graphics.h.
References is_handle_visible(), and octave_handle::value().
|
private |
|
private |
Definition at line 2465 of file graphics.cc.
References ceil(), base_properties::delete_children(), error(), base_properties::execute_deletefcn(), base_properties::get_deletefcn(), make_handle_fraction(), octave_handle::ok(), base_properties::set_beingdeleted(), and octave_handle::value().
|
private |
|
private |
Definition at line 2423 of file graphics.cc.
References ceil(), and make_handle_fraction().
|
inlineprivate |
Definition at line 6197 of file graphics.in.h.
|
inlineprivate |
Definition at line 13455 of file graphics.h.
References octave_handle::ok().
Definition at line 6212 of file graphics.in.h.
Definition at line 13470 of file graphics.h.
References is_handle_visible(), and octave_handle::value().
|
inlineprivate |
Definition at line 6271 of file graphics.in.h.
|
inlineprivate |
Definition at line 13529 of file graphics.h.
References octave_mutex::lock().
|
inlineprivate |
Definition at line 6190 of file graphics.in.h.
|
inlineprivate |
Definition at line 13448 of file graphics.h.
References xisnan().
|
private |
|
private |
Definition at line 9293 of file graphics.cc.
References handle_map, graphics_object::initialize(), and graphics_object::override_defaults().
|
private |
|
private |
Definition at line 9232 of file graphics.cc.
References error(), base_properties::execute_createfcn(), get_handle(), get_object(), base_graphics_object::get_properties(), graphics_object::get_properties(), axes::properties::get_title(), axes::properties::get_xlabel(), axes::properties::get_ylabel(), axes::properties::get_zlabel(), handle_map, graphics_object::initialize(), make_graphics_object_from_type(), and graphics_object::override_defaults().
|
private |
|
private |
Definition at line 9320 of file graphics.cc.
References figure_list.
Referenced by do_push_figure().
|
private |
|
private |
Definition at line 9596 of file graphics.cc.
References callback_objects, caseless_str::compare(), graphics_event::create_callback_event(), do_post_event(), base_properties::get_busyaction(), get_object(), graphics_object::get_properties(), base_properties::is_interruptible(), graphics_object::isa(), and graphics_object::valid_object().
|
private |
|
private |
Definition at line 9588 of file graphics.cc.
References command_editor::add_event_hook(), and process_events().
Referenced by do_execute_listener(), do_post_callback(), do_post_function(), and do_post_set().
|
private |
|
private |
Definition at line 9638 of file graphics.cc.
References graphics_event::create_function_event(), and do_post_event().
|
private |
|
private |
Definition at line 9646 of file graphics.cc.
References graphics_event::create_set_event(), and do_post_event().
Definition at line 9656 of file graphics.cc.
References callback_objects, action_container::empty(), event_processing, graphics_event::execute(), Fdrawnow(), flush_octave_stdout(), graphics_object::get_properties(), base_properties::is_interruptible(), lock(), graphics_event::ok(), process_events(), command_editor::remove_event_hook(), unlock(), and Vdrawnow_requested.
|
private |
|
private |
Definition at line 9312 of file graphics.cc.
References do_pop_figure(), and figure_list.
|
private |
|
private |
Definition at line 2512 of file graphics.cc.
References ceil(), error(), make_handle_fraction(), and octave_handle::value().
|
private |
|
private |
Definition at line 9492 of file graphics.cc.
References callback_objects, and xset_gcbo().
Referenced by restore_gcbo().
|
inlineprivate |
Definition at line 6273 of file graphics.in.h.
|
inlineprivate |
Definition at line 13531 of file graphics.h.
References octave_mutex::try_lock().
|
inlineprivate |
Definition at line 6275 of file graphics.in.h.
|
inlineprivate |
Definition at line 13533 of file graphics.h.
References octave_mutex::unlock().
|
inlinestatic |
Definition at line 6102 of file graphics.in.h.
|
inlinestatic |
Definition at line 13360 of file graphics.h.
Referenced by QtHandles::__init__(), and QtHandles::__shutdown__().
|
inlinestatic |
Definition at line 6043 of file graphics.in.h.
|
inlinestatic |
Definition at line 6063 of file graphics.in.h.
|
inlinestatic |
Definition at line 13301 of file graphics.h.
References error_state, graphics_object::get(), and graphics_object::valid_object().
Referenced by close_figure(), do_execute_listener(), callback_property::execute(), callback_event::execute(), and F__go_execute_callback__().
|
inlinestatic |
Definition at line 13321 of file graphics.h.
|
inlinestatic |
Definition at line 6036 of file graphics.in.h.
|
inlinestatic |
Definition at line 13294 of file graphics.h.
Referenced by base_property::run_listeners().
Definition at line 6030 of file graphics.in.h.
Definition at line 13288 of file graphics.h.
Referenced by F__go_figure_handles__(), and Fdrawnow().
|
inlinestatic |
Definition at line 6097 of file graphics.in.h.
|
inlinestatic |
Definition at line 13355 of file graphics.h.
|
inlinestatic |
Definition at line 5930 of file graphics.in.h.
|
inlinestatic |
Definition at line 13188 of file graphics.h.
Referenced by delete_graphics_object(), axes::properties::delete_text_child(), children_property::do_delete_children(), and axes::properties::set_text_child().
|
inlinestatic |
Definition at line 5923 of file graphics.in.h.
|
inlinestatic |
Definition at line 13181 of file graphics.h.
Referenced by do_make_graphics_handle(), and figure::properties::set_integerhandle().
|
inlinestatic |
Definition at line 5954 of file graphics.in.h.
|
inlinestatic |
Definition at line 5959 of file graphics.in.h.
|
inlinestatic |
Definition at line 13212 of file graphics.h.
References lookup().
Referenced by QtHandles::__init__(), adopt(), figure::properties::adopt(), base_graphics_object::build_user_defaults_map(), calc_dimensions(), axes::properties::calc_tightbox(), QtHandles::Container::canvas(), QtHandles::Canvas::canvasAutoAxes(), QtHandles::Canvas::canvasKeyPressEvent(), QtHandles::Canvas::canvasMouseMoveEvent(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasMouseReleaseEvent(), QtHandles::Canvas::canvasToggleAxes(), QtHandles::Canvas::canvasToggleGrid(), QtHandles::Canvas::canvasWheelEvent(), convert_cdata(), convert_text_position(), QtHandles::ObjectFactory::createObject(), delete_graphics_object(), axes::properties::delete_text_child(), do_cleanup_waitfor_listener(), children_property::do_delete_children(), do_execute_callback(), children_property::do_get_children(), do_make_graphics_handle(), do_post_callback(), QtHandles::GLCanvas::draw(), set_event::execute(), QtHandles::ContextMenu::executeAt(), F__calc_dimensions__(), F__get__(), F__go_axes_init__(), F__go_figure__(), F__image_pixel_size__(), F__zoom__(), Faddlistener(), Faddproperty(), Fdellistener(), Fdrawnow(), Fget(), base_graphics_toolkit::finalize(), finalize_r(), Freset(), Fset(), Fwaitfor(), G__osmesa_print__(), graphics_object::get_ancestor(), axes::properties::get_boundingbox(), uicontrol::properties::get_boundingbox(), uipanel::properties::get_boundingbox(), get_children_limits(), base_graphics_object::get_default(), figure::get_default(), axes::get_default(), uitoolbar::get_default(), axes::properties::get_extent(), uicontrol::properties::get_extent(), base_graphics_object::get_factory_default(), text::properties::get_fontsize_points(), get_graphics_object_type(), get_property_from_handle(), base_properties::get_toolkit(), QtHandles::hasUiControlChildren(), QtHandles::hasUiMenuChildren(), base_graphics_toolkit::initialize(), initialize_r(), is_figure(), base_properties::mark_modified(), QtHandles::Object::object(), base_properties::override_defaults(), QtHandles::Object::parentObject(), QtHandles::Canvas::print(), QtHandles::Utils::properties(), figure::properties::remove_child(), reparent(), base_graphics_object::reset_default_properties(), screen_size_pixels(), base_property::set(), axes::properties::set_defaults(), figure::properties::set_integerhandle(), base_properties::set_parent(), set_property_in_handle(), axes::properties::set_text_child(), base_graphics_toolkit::update(), base_properties::update_autopos(), base_properties::update_axis_limits(), base_graphics_object::update_axis_limits(), base_properties::update_boundingbox(), text::properties::update_fontunits(), hggroup::properties::update_limits(), axes::properties::update_title_position(), base_properties::update_uicontextmenu(), axes::properties::update_units(), uicontrol::properties::update_units(), uipanel::properties::update_units(), axes::properties::update_xlabel_position(), axes::properties::update_ylabel_position(), axes::properties::update_zlabel_position(), QtHandles::Figure::updateBoundingBoxHelper(), QtHandles::Canvas::updateCurrentPoint(), base_graphics_object::value_as_string(), base_graphics_object::values_as_string(), base_graphics_object::values_as_struct(), waitfor_listener(), xcreatefcn(), xget(), xinitialize(), xreset_default_properties(), xset(), xset_gcbo(), and uicontextmenu::~uicontextmenu().
|
inlinestatic |
Definition at line 13217 of file graphics.h.
Definition at line 6004 of file graphics.in.h.
Definition at line 13262 of file graphics.h.
Referenced by F__go_handles__().
|
inlinestatic |
Definition at line 5904 of file graphics.in.h.
|
inlinestatic |
Definition at line 13162 of file graphics.h.
References error().
|
inlinestatic |
Definition at line 6108 of file graphics.in.h.
|
inlinestatic |
Definition at line 13366 of file graphics.h.
References graphics_object::is_handle_visible(), and graphics_object::valid_object().
Referenced by children_property::do_get_children(), and is_handle_visible().
|
inlinestatic |
Definition at line 6010 of file graphics.in.h.
|
inlinestatic |
Definition at line 13268 of file graphics.h.
Referenced by do_process_events(), and Fdrawnow().
|
inlinestatic |
Definition at line 5943 of file graphics.in.h.
|
inlinestatic |
Definition at line 5948 of file graphics.in.h.
|
inlinestatic |
Definition at line 13201 of file graphics.h.
Referenced by calc_dimensions(), delete_graphics_object(), do_cleanup_waitfor_listener(), do_close_all_figures(), handle_property::do_set(), F__go_axes_init__(), F__go_delete__(), F__go_execute_callback__(), F__go_figure__(), F__zoom__(), Faddlistener(), Faddproperty(), Fdellistener(), Fdrawnow(), Fwaitfor(), is_handle(), is_handle_visible(), make_graphics_object(), reparent(), base_properties::set_parent(), axes::properties::set_text_child(), and waitfor_listener().
|
inlinestatic |
Definition at line 13206 of file graphics.h.
References octave_value::double_value(), octave_value::is_real_scalar(), and lookup().
|
inlinestatic |
Definition at line 5978 of file graphics.in.h.
|
inlinestatic |
Definition at line 13236 of file graphics.h.
Referenced by F__go_figure__().
|
inlinestatic |
Definition at line 5965 of file graphics.in.h.
|
inlinestatic |
Definition at line 13223 of file graphics.h.
Referenced by axes::properties::delete_text_child(), F__go_figure__(), make_graphics_object(), and axes::properties::set_defaults().
|
inlinestatic |
Definition at line 5992 of file graphics.in.h.
|
inlinestatic |
Definition at line 13250 of file graphics.h.
Referenced by root_figure::properties::remove_child().
|
inlinestatic |
Definition at line 6071 of file graphics.in.h.
|
inlinestatic |
Definition at line 13329 of file graphics.h.
Referenced by QtHandles::ContextMenu::aboutToShow(), QtHandles::Menu::actionHovered(), QtHandles::Menu::actionTriggered(), QtHandles::Canvas::canvasKeyPressEvent(), QtHandles::Canvas::canvasKeyReleaseEvent(), QtHandles::Canvas::canvasMouseMoveEvent(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasMouseReleaseEvent(), QtHandles::PushTool::clicked(), QtHandles::ButtonControl::clicked(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::EditControl::editingFinished(), QtHandles::BaseControl::eventFilter(), QtHandles::Figure::eventNotifyBefore(), QtHandles::ListBoxControl::itemSelectionChanged(), QtHandles::EditControl::returnPressed(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), and QtHandles::SliderControl::valueChanged().
|
inlinestatic |
Definition at line 6079 of file graphics.in.h.
|
inlinestatic |
Definition at line 13337 of file graphics.h.
Referenced by QtHandles::Figure::updateBoundingBox().
|
inlinestatic |
Definition at line 6085 of file graphics.in.h.
|
inlinestatic |
Definition at line 13343 of file graphics.h.
Referenced by QtHandles::ContextMenu::aboutToHide(), QtHandles::ContextMenu::aboutToShow(), QtHandles::Canvas::canvasKeyPressEvent(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::PopupMenuControl::currentIndexChanged(), QtHandles::EditControl::editingFinished(), QtHandles::BaseControl::eventFilter(), QtHandles::ListBoxControl::itemSelectionChanged(), QtHandles::EditControl::returnPressed(), QtHandles::ButtonControl::toggled(), QtHandles::ToggleTool::triggered(), QtHandles::PopupMenuControl::update(), QtHandles::Canvas::updateCurrentPoint(), and QtHandles::SliderControl::valueChanged().
|
inlinestatic |
Definition at line 6092 of file graphics.in.h.
|
inlinestatic |
Definition at line 13350 of file graphics.h.
Referenced by do_enable_event_processing(), do_post_event(), do_process_events(), and Fdrawnow().
|
inlinestatic |
Definition at line 5986 of file graphics.in.h.
|
inlinestatic |
Definition at line 13244 of file graphics.h.
Referenced by F__go_figure__(), and root_figure::properties::set_currentfigure().
|
inlinestatic |
Definition at line 5936 of file graphics.in.h.
|
inlinestatic |
Definition at line 13194 of file graphics.h.
Referenced by figure::properties::set_integerhandle().
|
inlinestaticprivate |
Definition at line 6294 of file graphics.in.h.
|
inlinestaticprivate |
Definition at line 13552 of file graphics.h.
References do_restore_gcbo().
Referenced by do_execute_callback().
|
inlinestatic |
Definition at line 6016 of file graphics.in.h.
|
inlinestatic |
Definition at line 13274 of file graphics.h.
|
inlinestatic |
Definition at line 6024 of file graphics.in.h.
|
inlinestatic |
Definition at line 13282 of file graphics.h.
Referenced by do_process_events(), and Fdrawnow().
|
private |
Definition at line 13436 of file graphics.h.
Referenced by do_execute_callback(), do_post_callback(), do_process_events(), and do_restore_gcbo().
|
private |
Definition at line 13439 of file graphics.h.
Referenced by do_enable_event_processing(), and do_process_events().
|
private |
Definition at line 13433 of file graphics.h.
|
private |
Definition at line 13427 of file graphics.h.
Referenced by do_pop_figure(), and do_push_figure().
|
private |
Definition at line 13430 of file graphics.h.
|
private |
Definition at line 13420 of file graphics.h.
|
private |
Definition at line 13417 of file graphics.h.
Referenced by do_make_figure_handle(), do_make_graphics_handle(), and gh_manager().
|
staticprivate |
Definition at line 13404 of file graphics.h.
Referenced by create_instance().
|
private |
Definition at line 13423 of file graphics.h.