#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <set>
#include <string>
#include <sstream>
#include "cmd-edit.h"
#include "file-ops.h"
#include "file-stat.h"
#include "oct-locbuf.h"
#include "oct-time.h"
#include "builtin-defun-decls.h"
#include "defun.h"
#include "display.h"
#include "error.h"
#include "graphics.h"
#include "input.h"
#include "interpreter-private.h"
#include "interpreter.h"
#include "ov.h"
#include "ovl.h"
#include "oct-map.h"
#include "ov-fcn-handle.h"
#include "pager.h"
#include "parse.h"
#include "text-engine.h"
#include "text-renderer.h"
#include "unwind-prot.h"
#include "utils.h"
#include "octave-default-image.h"
#include "graphics-props.cc"
Go to the source code of this file.
Classes | |
class | callback_event |
class | callback_props |
class | function_event |
class | mcode_event |
class | set_event |
Macros | |
#define | CHECK_ARRAY_EQUAL(T, F, A) |
#define | CONVERT_CDATA_1(ARRAY_T, VAL_FN, IS_REAL) |
#define | FIX_LIMITS |
#define | GO_BODY(TYPE) |
Variables | |
static bool | delete_executing = false |
static std::map< caseless_str, graphics_object > | dprop_obj_map |
static callback_props | executing_callbacks |
static std::set< double > | updating_aspectratios |
static bool | updating_axes_layout = false |
static std::set< double > | updating_axis_limits |
static bool | updating_hggroup_limits = false |
static bool | updating_patch_data = false |
static bool | updating_title_position = false |
static bool | updating_xlabel_position = false |
static bool | updating_ylabel_position = false |
static bool | updating_zlabel_position = false |
static std::map< uint32_t, bool > | waitfor_results |
#define CHECK_ARRAY_EQUAL | ( | T, | |
F, | |||
A | |||
) |
#define CONVERT_CDATA_1 | ( | ARRAY_T, | |
VAL_FN, | |||
IS_REAL | |||
) |
#define FIX_LIMITS |
#define GO_BODY | ( | TYPE | ) |
Definition at line 13214 of file graphics.cc.
|
static |
Definition at line 3133 of file graphics.cc.
References octave::__get_gh_manager__(), graphics_object::adopt(), and gh_manager::get_object().
Referenced by F__go_figure__(), and make_graphics_object().
int calc_dimensions | ( | const graphics_object & | go | ) |
Definition at line 13225 of file graphics.cc.
References octave::__get_gh_manager__(), graphics_object::get(), base_properties::get_children(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::isa(), octave_value::isempty(), gh_manager::lookup(), Array< T >::numel(), octave_handle::ok(), and graphics_object::valid_object().
Referenced by F__calc_dimensions__().
|
inline |
Definition at line 5932 of file graphics.cc.
References Array< T >::fortran_vec(), m, and retval.
Referenced by axes::properties::update_camera().
|
static |
Definition at line 7450 of file graphics.cc.
References Inf, octave_value::is_matrix_type(), octave::math::isfinite(), m, and octave_value::matrix_value().
Referenced by get_children_limits().
|
static |
|
static |
Definition at line 14149 of file graphics.cc.
References do_cleanup_waitfor_listener(), and GCB_POSTSET.
Referenced by Fwaitfor().
|
static |
Definition at line 14153 of file graphics.cc.
References do_cleanup_waitfor_listener(), and GCB_PREDELETE.
Referenced by Fwaitfor().
|
static |
Definition at line 3067 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::execute_callback(), and xget().
Referenced by gh_manager::close_all_figures().
|
static |
Definition at line 14090 of file graphics.cc.
References octave::feval(), and octave_value_list::length().
Referenced by Fwaitfor(), and waitfor_listener().
|
static |
Definition at line 999 of file graphics.cc.
References octave::__get_gh_manager__(), CONVERT_CDATA_1, Array< T >::data(), octave_value::dims(), Array< T >::fortran_vec(), graphics_object::get(), graphics_object::get_ancestor(), gh_manager::get_object(), octave_value::is_double_type(), octave_value::is_int16_type(), octave_value::is_int32_type(), octave_value::is_int64_type(), octave_value::is_int8_type(), octave_value::is_single_type(), octave_value::is_uint16_type(), octave_value::is_uint32_type(), octave_value::is_uint64_type(), octave_value::is_uint8_type(), octave_value::islogical(), octave_value::matrix_value(), dim_vector::ndims(), Array< T >::numel(), octave_value(), dim_vector::resize(), Array< T >::rows(), octave_value::type_name(), graphics_object::valid_object(), and warning().
Referenced by image::properties::get_color_data(), patch::properties::get_color_data(), and surface::properties::get_color_data().
void convert_cdata_1 | ( | bool | is_scaled, |
bool | is_real, | ||
double | clim_0, | ||
double | clim_1, | ||
const double * | cmapv, | ||
const T * | cv, | ||
octave_idx_type | lda, | ||
octave_idx_type | nc, | ||
double * | av | ||
) |
Definition at line 989 of file graphics.cc.
References convert_cdata_2().
|
static |
Definition at line 957 of file graphics.cc.
References octave::math::fix(), octave::math::isnan(), and x.
Referenced by convert_cdata_1().
|
static |
Definition at line 634 of file graphics.cc.
References caseless_str::compare(), octave_value::double_value(), and xget().
Referenced by axes::properties::get___fontsize_points__(), text::properties::get___fontsize_points__(), uicontrol::properties::get___fontsize_points__(), uibuttongroup::properties::get___fontsize_points__(), uipanel::properties::get___fontsize_points__(), uitable::properties::get___fontsize_points__(), uitable::properties::get_fontsize_pixels(), axes::properties::update_fontunits(), text::properties::update_fontunits(), and uicontrol::properties::update_fontunits().
|
static |
Definition at line 6385 of file graphics.cc.
References convert_position(), Matrix::extract_n(), Array< T >::resize(), retval, and xform().
Referenced by axes::properties::update_title_position(), axes::properties::update_xlabel_position(), axes::properties::update_ylabel_position(), and axes::properties::update_zlabel_position().
|
static |
Definition at line 7243 of file graphics.cc.
References string_vector::append(), octave_value::columns(), octave_value::is_string(), octave_value::iscellstr(), octave_value::numel(), octave_value(), octave_value::reshape(), retval, octave_value::rows(), and octave_value::string_value().
|
static |
Definition at line 692 of file graphics.cc.
References caseless_str::compare(), octave_value::double_value(), f, Array< T >::numel(), retval, and xget().
Referenced by figure::properties::bbox2position(), convert_label_position(), convert_text_position(), figure::properties::get_boundingbox(), axes::properties::get_boundingbox(), uicontrol::properties::get_boundingbox(), uibuttongroup::properties::get_boundingbox(), uipanel::properties::get_boundingbox(), uitable::properties::get_boundingbox(), figure::properties::map_from_boundingbox(), figure::properties::map_to_boundingbox(), screen_size_pixels(), figure::properties::update_units(), axes::properties::update_units(), and uicontrol::properties::update_units().
|
static |
Definition at line 837 of file graphics.cc.
References octave::__get_gh_manager__(), caseless_str::compare(), convert_position(), Matrix::extract_n(), graphics_object::get_ancestor(), axes::properties::get_boundingbox(), gh_manager::get_object(), graphics_object::get_properties(), axes::properties::get_transform(), Array< T >::numel(), Array< T >::resize(), retval, graphics_xform::transform(), graphics_xform::untransform(), v2, and graphics_object::valid_object().
Referenced by text::properties::update_units().
|
static |
Definition at line 7145 of file graphics.cc.
References string_vector::append(), octave_value::array_value(), octave_value::columns(), octave_value::is_string(), octave_value::iscellstr(), octave_value::isnumeric(), octave_value::numel(), octave_value(), octave_value::reshape(), retval, octave_value::rows(), and octave_value::string_value().
std::vector<octave_idx_type> coplanar_partition | ( | const Matrix & | vert, |
const Matrix & | idx, | ||
octave_idx_type | nc, | ||
octave_idx_type | jj | ||
) |
Definition at line 9725 of file graphics.cc.
References is_coplanar(), Matrix::resize(), and Matrix::transpose().
|
inline |
Definition at line 5899 of file graphics.cc.
References r, v2, and xform_vector().
Referenced by axes::properties::update_camera().
|
inline |
Definition at line 9956 of file graphics.cc.
References x.
|
static |
Definition at line 449 of file graphics.cc.
References m.
|
static |
Definition at line 436 of file graphics.cc.
References m.
|
static |
Definition at line 473 of file graphics.cc.
References m.
|
static |
Definition at line 488 of file graphics.cc.
References m.
Referenced by axes::properties::set_defaults().
|
static |
Definition at line 462 of file graphics.cc.
References m.
|
static |
Definition at line 257 of file graphics.cc.
References retval.
Referenced by axes::properties::set_defaults().
|
static |
Definition at line 546 of file graphics.cc.
References retval.
|
static |
Definition at line 559 of file graphics.cc.
References retval.
|
static |
Definition at line 311 of file graphics.cc.
References retval.
|
static |
Definition at line 322 of file graphics.cc.
|
static |
Definition at line 523 of file graphics.cc.
References m.
|
static |
Definition at line 512 of file graphics.cc.
References m.
|
static |
Definition at line 499 of file graphics.cc.
References m.
Referenced by axes::properties::get_boundingbox(), and uicontrol::properties::get_boundingbox().
|
static |
Definition at line 537 of file graphics.cc.
References octave::__get_gtk_manager__(), and octave::gtk_manager::default_toolkit().
|
static |
Definition at line 335 of file graphics.cc.
References default_im_data, and m.
|
static |
Definition at line 583 of file graphics.cc.
References m.
|
static |
Definition at line 292 of file graphics.cc.
References m.
|
static |
Definition at line 570 of file graphics.cc.
References retval.
|
static |
Definition at line 392 of file graphics.cc.
References m.
|
static |
Definition at line 404 of file graphics.cc.
References m.
|
static |
Definition at line 416 of file graphics.cc.
References m.
|
static |
Definition at line 426 of file graphics.cc.
References m.
|
static |
Definition at line 223 of file graphics.cc.
References octave::__get_display_info__(), and octave::display_info::depth().
|
static |
Definition at line 248 of file graphics.cc.
References octave::__get_display_info__(), octave::display_info::x_dpi(), and octave::display_info::y_dpi().
|
static |
Definition at line 232 of file graphics.cc.
References octave::__get_display_info__(), octave::display_info::height(), retval, and octave::display_info::width().
|
static |
Definition at line 386 of file graphics.cc.
References default_surface_zdata().
|
static |
Definition at line 351 of file graphics.cc.
References m.
|
static |
Definition at line 363 of file graphics.cc.
References m.
|
static |
|
static |
Definition at line 608 of file graphics.cc.
References retval.
|
static |
Definition at line 595 of file graphics.cc.
References retval.
|
static |
Definition at line 3021 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::free(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::isa(), octave_handle::ok(), and Vdrawnow_requested.
Referenced by delete_graphics_object(), delete_graphics_objects(), F__go_figure__(), force_close_figure(), and make_graphics_object().
|
static |
Definition at line 3044 of file graphics.cc.
References octave::__get_gh_manager__(), delete_graphics_object(), isfigure(), and gh_manager::lookup().
|
static |
Definition at line 3055 of file graphics.cc.
References delete_executing, delete_graphics_object(), Array< T >::elem(), Array< T >::numel(), and octave::action_container::protect_var().
Referenced by F__go_delete__().
|
static |
Definition at line 942 of file graphics.cc.
References octave::__get_gh_manager__(), octave_value::double_value(), graphics_object::get(), graphics_object::get_ancestor(), gh_manager::get_object(), retval, and graphics_object::valid_object().
Referenced by axes::properties::get_extent(), axes::properties::update_font(), and text::properties::update_font().
|
static |
Definition at line 14114 of file graphics.cc.
References octave::__get_gh_manager__(), octave_value::cell_value(), base_properties::delete_listener(), GCB_PERSISTENT, GCB_POSTSET, gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), base_properties::has_property(), gh_manager::lookup(), Array< T >::numel(), and octave_handle::ok().
Referenced by cleanup_waitfor_postset_listener(), and cleanup_waitfor_predelete_listener().
Definition at line 9004 of file graphics.cc.
References pow().
Referenced by axes::properties::translate_view().
Definition at line 8859 of file graphics.cc.
References pow().
Referenced by axes::properties::zoom_about_point().
|
inline |
Definition at line 5887 of file graphics.cc.
References v2.
Referenced by norm(), and axes::properties::update_camera().
|
static |
Definition at line 75 of file graphics.cc.
References error().
OCTAVE_EXPORT octave_value_list F__calc_dimensions__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13266 of file graphics.cc.
References calc_dimensions(), gh_manager::get_object(), gh_manager::graphics_lock(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__get__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13000 of file graphics.cc.
References error(), graphics_object::get(), gh_manager::get_object(), gh_manager::graphics_lock(), n, Array< T >::numel(), ovl(), print_usage(), octave::state, and toggle_warn().
OCTAVE_EXPORT octave_value_list F__get_frame__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 14511 of file graphics.cc.
References error(), gh_manager::get_object(), octave::graphics_toolkit::get_pixels(), graphics_object::get_toolkit(), graphics_object::isa(), ovl(), print_usage(), and gh_manager::process_events().
OCTAVE_EXPORT octave_value_list F__get_system_fonts__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 14535 of file graphics.cc.
References octave::text_renderer::get_system_fonts(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__go_axes__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13284 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_delete__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13437 of file graphics.cc.
References delete_graphics_objects(), error(), gh_manager::graphics_lock(), gh_manager::lookup(), NaN, Array< T >::numel(), octave_handle::ok(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__go_execute_callback__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13506 of file graphics.cc.
References error(), gh_manager::execute_callback(), gh_manager::lookup(), name, Array< T >::numel(), octave_handle::ok(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__go_figure__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13122 of file graphics.cc.
References adopt(), caseless_str::compare(), delete_graphics_object(), error(), gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), base_properties::init_integerhandle(), isfigure(), octave::math::isnan(), octave_value_list::length(), gh_manager::lookup(), gh_manager::make_figure_handle(), gh_manager::make_graphics_handle(), NaN, octave_handle::ok(), print_usage(), gh_manager::push_figure(), retval, octave_value_list::splice(), octave_handle::value(), octave::math::x_nint(), xcreatefcn(), octave_value::xdouble_value(), xinitialize(), and xset().
OCTAVE_EXPORT octave_value_list F__go_figure_handles__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13487 of file graphics.cc.
References gh_manager::figure_handle_list(), gh_manager::graphics_lock(), and ovl().
OCTAVE_EXPORT octave_value_list F__go_handles__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13469 of file graphics.cc.
References gh_manager::graphics_lock(), gh_manager::handle_list(), and ovl().
OCTAVE_EXPORT octave_value_list F__go_hggroup__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13347 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_image__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13311 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_light__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13338 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_line__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13293 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_patch__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13329 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_post_callback__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13542 of file graphics.cc.
References error(), gh_manager::lookup(), name, Array< T >::numel(), octave_handle::ok(), ovl(), gh_manager::post_callback(), and print_usage().
OCTAVE_EXPORT octave_value_list F__go_surface__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13320 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_text__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13302 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uibuttongroup__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13374 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uicontextmenu__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13392 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uicontrol__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13365 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uimenu__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13356 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uipanel__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13383 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uipushtool__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13419 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uitable__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13401 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uitoggletool__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13428 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uitoolbar__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13410 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__image_pixel_size__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13577 of file graphics.cc.
References error(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::isa(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__is_handle_visible__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 12535 of file graphics.cc.
References is_handle_visible(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__show_figure__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13659 of file graphics.cc.
References error(), gh_manager::get_object(), graphics_object::get_properties(), figure::properties::get_toolkit(), gh_manager::lookup(), octave_handle::ok(), ovl(), print_usage(), and octave::graphics_toolkit::show_figure().
OCTAVE_EXPORT octave_value_list F__update_normals__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 10444 of file graphics.cc.
References error(), gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), graphics_object::isa(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list F__zoom__ | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 14454 of file graphics.cc.
References axes::properties::clear_zoom_stack(), error(), gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), gh_manager::lookup(), octave_handle::ok(), ovl(), print_usage(), Vdrawnow_requested, and axes::properties::zoom().
OCTAVE_EXPORT octave_value_list Faddlistener | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13852 of file graphics.cc.
References graphics_object::add_property_listener(), caseless_str::compare(), error(), GCB_PERSISTENT, GCB_POSTSET, gh_manager::get_object(), gh_manager::graphics_lock(), gh_manager::lookup(), octave_handle::ok(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Faddproperty | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 14022 of file graphics.cc.
References property::create(), error(), gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), base_properties::has_property(), base_properties::insert_property(), gh_manager::lookup(), name, octave_handle::ok(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Favailable_graphics_toolkits | ( | octave::interpreter & | interp, |
const octave_value_list & | , | ||
int | |||
) |
Definition at line 13605 of file graphics.cc.
References octave::gtk_manager::available_toolkits_list(), gh_manager::graphics_lock(), and ovl().
OCTAVE_EXPORT octave_value_list Fdellistener | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13913 of file graphics.cc.
References graphics_object::delete_property_listener(), error(), GCB_PERSISTENT, GCB_POSTSET, gh_manager::get_object(), gh_manager::graphics_lock(), gh_manager::lookup(), octave_handle::ok(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Fdrawnow | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13698 of file graphics.cc.
References caseless_str::compare(), delete_executing, octave::sys::file_ops::dir_sep_chars(), octave::sys::file_ops::dirname(), error(), gh_manager::figure_handle_list(), gcf(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::get_toolkit(), figure::properties::get_toolkit(), gh_manager::graphics_lock(), octave::sys::base_file_stat::is_dir(), base_properties::is_modified(), gh_manager::lock(), gh_manager::lookup(), Array< T >::numel(), octave_handle::ok(), ovl(), octave::graphics_toolkit::print_figure(), print_usage(), gh_manager::process_events(), octave::action_container::protect_var(), octave::graphics_toolkit::redraw_figure(), base_properties::set_modified(), gh_manager::unlock(), and Vdrawnow_requested.
Referenced by gh_manager::execute_callback(), F__fltk_check__(), Fkbhit(), Fpause(), octave::main_window::handle_new_figure_request(), and gh_manager::process_events().
OCTAVE_EXPORT octave_value_list Fget | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 12879 of file graphics.cc.
References octave_map::cat(), error(), graphics_object::get(), get_graphics_object_type(), gh_manager::get_object(), gh_manager::graphics_lock(), m, n, Array< T >::numel(), OCTAVE_LOCAL_BUFFER, ovl(), print_usage(), Array< T >::resize(), and retval.
|
static |
Definition at line 2093 of file graphics.cc.
References octave::__get_gh_manager__(), graphics_object::finalize(), base_properties::get_all_children(), gh_manager::get_object(), graphics_object::get_properties(), and Array< T >::numel().
Referenced by figure::properties::set_toolkit().
OCTAVE_EXPORT octave_value_list Fishghandle | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 12462 of file graphics.cc.
References gh_manager::graphics_lock(), ishghandle(), ovl(), and print_usage().
OCTAVE_EXPORT octave_value_list Floaded_graphics_toolkits | ( | octave::interpreter & | interp, |
const octave_value_list & | , | ||
int | |||
) |
Definition at line 13644 of file graphics.cc.
References gh_manager::graphics_lock(), octave::gtk_manager::loaded_toolkits_list(), and ovl().
|
static |
Definition at line 3077 of file graphics.cc.
References delete_graphics_object(), and xset().
Referenced by gh_manager::close_all_figures().
|
inline |
Definition at line 8848 of file graphics.cc.
References x.
OCTAVE_EXPORT octave_value_list Fregister_graphics_toolkit | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 13621 of file graphics.cc.
References gh_manager::graphics_lock(), name, ovl(), print_usage(), and octave::gtk_manager::register_toolkit().
OCTAVE_EXPORT octave_value_list Freset | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 12556 of file graphics.cc.
References gh_manager::get_object(), n, Array< T >::numel(), ovl(), print_usage(), graphics_object::reset_default_properties(), and Vdrawnow_requested.
OCTAVE_EXPORT octave_value_list Fset | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | nargout | ||
) |
Definition at line 12759 of file graphics.cc.
References error(), gh_manager::get_object(), octave_map::getfield(), gh_manager::graphics_lock(), graphics_object::has_readonly_property(), octave_map::isfield(), n, Array< T >::numel(), octave_stdout, print_usage(), retval, graphics_object::set(), transform(), graphics_object::value_as_string(), graphics_object::values_as_string(), graphics_object::values_as_struct(), and Vdrawnow_requested.
OCTAVE_EXPORT octave_value_list Fwaitfor | ( | octave::interpreter & | interp, |
const octave_value_list & | args, | ||
int | |||
) |
Definition at line 14243 of file graphics.cc.
References octave::action_container::add_fcn(), graphics_object::add_property_listener(), cleanup_waitfor_id(), cleanup_waitfor_postset_listener(), cleanup_waitfor_predelete_listener(), caseless_str::compare(), compare_property_values(), error(), GCB_PERSISTENT, GCB_POSTSET, GCB_PREDELETE, graphics_object::get(), gh_manager::get_object(), graphics_object::get_properties(), gh_manager::graphics_lock(), base_properties::has_dynamic_property(), octave_value::is_defined(), ishghandle(), gh_manager::lookup(), octave_value(), octave_handle::ok(), ovl(), print_usage(), octave::command_editor::run_event_hooks(), octave::sleep(), octave::sys::time::stamp(), waitfor_del_listener(), waitfor_listener(), waitfor_results, and warning().
graphics_handle gca | ( | void | ) |
Definition at line 3012 of file graphics.cc.
References octave_value::double_value(), gcf(), octave_value::isempty(), NaN, and xget().
graphics_handle gcf | ( | void | ) |
Definition at line 3002 of file graphics.cc.
References octave_value::double_value(), octave_value::isempty(), NaN, and xget().
Referenced by Fdrawnow(), and gca().
|
static |
Definition at line 1101 of file graphics.cc.
References octave::math::isinf(), m, and n.
Referenced by array_property::get_data_limits().
void get_children_limits | ( | double & | min_val, |
double & | max_val, | ||
double & | min_pos, | ||
double & | max_neg, | ||
const Matrix & | kids, | ||
char | limit_type | ||
) |
Definition at line 8352 of file graphics.cc.
References octave::__get_gh_manager__(), check_limit_vals(), graphics_object::get_alim(), graphics_object::get_clim(), gh_manager::get_object(), graphics_object::get_xlim(), graphics_object::get_ylim(), graphics_object::get_zlim(), graphics_object::is_aliminclude(), graphics_object::is_climinclude(), graphics_object::is_xliminclude(), graphics_object::is_yliminclude(), graphics_object::is_zliminclude(), n, and Array< T >::numel().
Referenced by max_axes_scale(), axes::properties::translate_view(), axes::update_axis_limits(), hggroup::update_axis_limits(), and axes::properties::zoom_about_point().
|
static |
Definition at line 12853 of file graphics.cc.
References octave::__get_gh_manager__(), error(), gh_manager::get_object(), retval, and graphics_object::type().
Referenced by Fget().
octave_value get_property_from_handle | ( | double | handle, |
const std::string & | property, | ||
const std::string & | func | ||
) |
Definition at line 14056 of file graphics.cc.
References octave::__get_gh_manager__(), error(), graphics_object::get(), gh_manager::get_object(), and gh_manager::graphics_lock().
Referenced by mexGet().
|
static |
Definition at line 2111 of file graphics.cc.
References octave::__get_gh_manager__(), base_properties::get_all_children(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::initialize(), and Array< T >::numel().
Referenced by figure::properties::set_toolkit().
bool is_coplanar | ( | const Matrix & | cov | ) |
Definition at line 9713 of file graphics.cc.
References EIG::eigenvalues(), ColumnVector::max(), ColumnVector::min(), and real().
Referenced by coplanar_partition().
|
static |
Definition at line 12494 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::is_handle_visible(), and octave_handle::ok().
Referenced by F__is_handle_visible__(), is_handle_visible(), and axes::properties::update_handlevisibility().
|
static |
Definition at line 12510 of file graphics.cc.
References octave_value::array_value(), Array< T >::dims(), octave_value::double_value(), is_handle_visible(), octave_value::is_real_scalar(), octave_value::isnumeric(), octave_value::isreal(), Array< T >::numel(), retval, and Array< T >::xelem().
|
static |
Definition at line 12502 of file graphics.cc.
References octave::__get_gh_manager__(), is_handle_visible(), and gh_manager::lookup().
|
static |
Definition at line 2833 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::get_object(), and graphics_object::isa().
Referenced by delete_graphics_object(), F__go_figure__(), and gh_manager::free().
|
static |
Definition at line 3143 of file graphics.cc.
References octave_handle::ok().
Referenced by Fishghandle(), Fwaitfor(), and ishghandle().
|
static |
Definition at line 3159 of file graphics.cc.
References octave_value::array_value(), Array< T >::dims(), octave_value::double_value(), octave_value::is_real_scalar(), ishghandle(), octave_value::isnumeric(), octave_value::isreal(), Array< T >::numel(), retval, and Array< T >::xelem().
|
static |
Definition at line 3149 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::lookup(), and octave_handle::ok().
|
static |
Definition at line 1130 of file graphics.cc.
References caseless_str::compare(), len, and name.
Referenced by property::create().
|
static |
Definition at line 7489 of file graphics.cc.
References abs(), octave::math::floor(), pow(), and x.
|
static |
Definition at line 621 of file graphics.cc.
References octave::__get_gh_manager__(), and gh_manager::make_graphics_handle().
|
static |
Definition at line 13043 of file graphics.cc.
References octave::__get_gh_manager__(), adopt(), caseless_str::compare(), delete_graphics_object(), error(), octave::math::isnan(), octave_value_list::length(), gh_manager::lookup(), gh_manager::make_graphics_handle(), NaN, octave_handle::ok(), retval, octave_value_list::splice(), octave_handle::value(), Vdrawnow_requested, xcreatefcn(), xinitialize(), and xset().
|
static |
Definition at line 1209 of file graphics.cc.
Referenced by property::create(), and gh_manager::make_graphics_handle().
|
static |
Definition at line 2784 of file graphics.cc.
Referenced by gh_manager::free(), gh_manager::get_handle(), and gh_manager::renumber_figure().
|
static |
Definition at line 6834 of file graphics.cc.
References get_children_limits(), Inf, octave::math::isfinite(), and octave::math::max().
Referenced by axes::properties::update_aspectratios().
|
inline |
Definition at line 5893 of file graphics.cc.
References dot().
Referenced by MatrixType::MatrixType(), filter(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), FloatMatrix::ltsolve(), Matrix::ltsolve(), matrix_complex_probe(), ComplexMatrix::rcond(), Matrix::rcond(), FloatComplexMatrix::rcond(), FloatMatrix::rcond(), axes::properties::update_camera(), ComplexMatrix::utsolve(), FloatComplexMatrix::utsolve(), FloatMatrix::utsolve(), and Matrix::utsolve().
|
inline |
Definition at line 5880 of file graphics.cc.
References scale().
Referenced by axes::properties::update_camera().
|
static |
Definition at line 6819 of file graphics.cc.
References octave::math::min().
Referenced by axes::properties::update_aspectratios().
|
static |
Definition at line 4410 of file graphics.cc.
References caseless_str::compare(), and retval.
Referenced by figure::properties::update_paperunits().
|
static |
Definition at line 12198 of file graphics.cc.
References octave::__get_gh_manager__(), and gh_manager::process_events().
Referenced by gh_manager::enable_event_processing(), gh_manager::post_event(), and gh_manager::process_events().
|
static |
Definition at line 2969 of file graphics.cc.
References octave::__get_gh_manager__(), base_graphics_object::adopt(), error(), gh_manager::get_object(), graphics_object::get_parent(), gh_manager::lookup(), octave_handle::ok(), graphics_object::remove_child(), graphics_object::reparent(), graphics_object::set(), octave_handle::value(), and octave_value::xdouble_value().
|
inline |
Definition at line 5864 of file graphics.cc.
References x.
|
inline |
Definition at line 5846 of file graphics.cc.
References m, x, and xform_scale().
Referenced by aepbalance< T >::aepbalance(), pdfpainter::pdfpainter(), octave::math::sparse_lu< lu_type >::sparse_lu(), aepbalance< T >::balancing_matrix(), F__glpk__(), Fairy(), Faudiowrite(), Flu(), glpk(), octave::fftw::ifft(), octave::fftw::ifftNd(), FloatEIG::init(), hess< T >::init(), EIG::init(), lin_interpn(), make_complex_matrix_format(), make_range_format(), make_real_matrix_format(), normalize(), pr_float(), pr_imag_float(), pr_scale_header(), Sylvester(), and axes::properties::update_camera().
|
static |
Definition at line 929 of file graphics.cc.
References octave::__get_gh_manager__(), convert_position(), Matrix::extract_n(), graphics_object::get(), gh_manager::get_object(), octave_value::matrix_value(), and octave_value::string_value().
Referenced by figure::properties::bbox2position(), root_figure::properties::get_boundingbox(), figure::properties::get_boundingbox(), figure::properties::set_boundingbox(), and figure::properties::update_units().
bool set_property_in_handle | ( | double | handle, |
const std::string & | property, | ||
const octave_value & | arg, | ||
const std::string & | func | ||
) |
Definition at line 14072 of file graphics.cc.
References octave::__get_gh_manager__(), error(), gh_manager::get_object(), gh_manager::graphics_lock(), and graphics_object::set().
Referenced by mexSet().
|
static |
Definition at line 3204 of file graphics.cc.
References disable_warning(), set_warning_state(), octave::state, and warning_enabled().
Referenced by F__get__(), base_graphics_object::remove_all_listeners(), axes::reset_default_properties(), and xreset_default_properties().
|
inline |
Definition at line 5814 of file graphics.cc.
References m, x, and xform_vector().
Referenced by octave::stream_list::clear(), do_stream_open(), F__eigs__(), Faudiodevinfo(), Faudioformats(), Faudiowrite(), Fcolloc(), Ffftw(), Fmatrix_type(), Fnorm(), Fnproc(), Fset(), Fstrfind(), Ftypecast(), Fwarning(), octave::crypto::hash(), property_list::lookup(), octregexp(), octave::textscan::parse_options(), parse_options(), property_list::set(), set_format_style(), color_values::str2rgb(), graphics_xform::transform(), and graphics_xform::untransform().
|
inline |
Definition at line 5872 of file graphics.cc.
References x.
|
inline |
Definition at line 5852 of file graphics.cc.
References m, x, and xform_translate().
Referenced by octave::workspace_view::notice_settings(), and axes::properties::update_camera().
|
inline |
Definition at line 5911 of file graphics.cc.
References m.
Referenced by axes::properties::update_camera().
|
static |
Definition at line 2232 of file graphics.cc.
References octave::__get_gh_manager__(), base_properties::get_all_children(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::isa(), Array< T >::numel(), axes::properties::sync_positions(), axes::properties::update_font(), text::properties::update_font(), and text::properties::update_text_extent().
|
static |
Definition at line 85 of file graphics.cc.
References caseless_str::compare(), error(), len, string_vector::list_in_columns(), and warning_with_id().
|
static |
Definition at line 139 of file graphics.cc.
References Array< T >::fortran_vec().
|
static |
Definition at line 14190 of file graphics.cc.
References ovl(), and waitfor_results.
Referenced by Fwaitfor().
|
static |
Definition at line 14156 of file graphics.cc.
References octave::__get_gh_manager__(), compare_property_values(), graphics_object::get(), gh_manager::get_object(), gh_manager::graphics_lock(), gh_manager::lookup(), octave_handle::ok(), ovl(), and waitfor_results.
Referenced by Fwaitfor().
|
static |
Definition at line 3181 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::get_object(), and graphics_object::get_properties().
Referenced by F__go_figure__(), and make_graphics_object().
|
inline |
Definition at line 5858 of file graphics.cc.
References m.
Referenced by convert_label_position(), axes::properties::get_extent(), octave::opengl_renderer::get_transform(), graphics_xform::transform(), axes::properties::update_axes_layout(), axes::properties::update_camera(), axes::properties::update_title_position(), axes::properties::update_xlabel_position(), axes::properties::update_ylabel_position(), and axes::properties::update_zlabel_position().
|
inline |
Definition at line 5942 of file graphics.cc.
References ColumnVector::extract_n(), and ColumnVector::transpose().
Referenced by axes::properties::update_camera().
|
inline |
Definition at line 5781 of file graphics.cc.
References m.
Referenced by axes::properties::update_camera(), graphics_xform::xform_eye(), and xform_translate().
|
inline |
|
inline |
Definition at line 5833 of file graphics.cc.
References m, x, and xform_matrix().
Referenced by translate().
|
inline |
Definition at line 5802 of file graphics.cc.
References x.
|
inline |
Definition at line 5792 of file graphics.cc.
Referenced by cross(), transform(), axes::properties::update_camera(), and graphics_xform::xform_vector().
|
static |
Definition at line 2959 of file graphics.cc.
References octave::__get_gh_manager__(), graphics_object::get(), and gh_manager::get_object().
Referenced by close_figure(), convert_font_size(), convert_position(), gca(), gcf(), uibuttongroup::properties::get_boundingbox(), and uipanel::properties::get_boundingbox().
|
static |
Definition at line 3191 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::get_object(), and graphics_object::initialize().
Referenced by F__go_figure__(), axes::initialize(), and make_graphics_object().
|
static |
Definition at line 3222 of file graphics.cc.
References octave::__get_gh_manager__(), graphics_object::build_user_defaults_map(), gh_manager::get_object(), graphics_object::get_properties(), base_properties::graphics_object_name(), graphics_object::has_readonly_property(), graphics_object::set(), octave::state, and toggle_warn().
Referenced by base_graphics_object::reset_default_properties(), root_figure::reset_default_properties(), figure::reset_default_properties(), patch::reset_default_properties(), and uitoolbar::reset_default_properties().
|
static |
Definition at line 2935 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::get_object(), and graphics_object::set().
Referenced by axes::properties::delete_text_child(), F__go_figure__(), force_close_figure(), make_graphics_object(), root_figure::properties::remove_child(), axes::properties::set_defaults(), axes::properties::set_text_child(), and figure::properties::set_visible().
|
static |
Definition at line 2946 of file graphics.cc.
References octave::__get_gh_manager__(), gh_manager::get_object(), octave_value_list::length(), and graphics_object::set().
|
static |
Definition at line 12058 of file graphics.cc.
References octave::__get_gh_manager__(), octave_handle::as_octave_value(), gh_manager::get_object(), and graphics_object::get_properties().
Referenced by gh_manager::execute_callback(), and gh_manager::restore_gcbo().
|
static |
Definition at line 3052 of file graphics.cc.
Referenced by delete_graphics_objects(), and Fdrawnow().
|
static |
Definition at line 1966 of file graphics.cc.
Referenced by property::create().
|
static |
Definition at line 1938 of file graphics.cc.
Referenced by callback_property::execute(), and base_properties::is_handle_visible().
|
static |
Definition at line 6855 of file graphics.cc.
Referenced by axes::properties::update_aspectratios(), and axes::update_axis_limits().
|
static |
Definition at line 6161 of file graphics.cc.
Referenced by axes::properties::update_axes_layout().
|
static |
Definition at line 8437 of file graphics.cc.
Referenced by axes::update_axis_limits().
|
static |
Definition at line 10579 of file graphics.cc.
Referenced by hggroup::update_axis_limits().
|
static |
Definition at line 9627 of file graphics.cc.
|
static |
Definition at line 6751 of file graphics.cc.
Referenced by axes::properties::update_title_position().
|
static |
Definition at line 6413 of file graphics.cc.
Referenced by axes::properties::update_xlabel_position().
|
static |
Definition at line 6518 of file graphics.cc.
Referenced by axes::properties::update_ylabel_position().
|
static |
Definition at line 6623 of file graphics.cc.
Referenced by axes::properties::update_zlabel_position().
|
static |
Definition at line 14105 of file graphics.cc.
Referenced by cleanup_waitfor_id(), Fwaitfor(), waitfor_del_listener(), and waitfor_listener().