GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cctype>
#include <cfloat>
#include <cstdlib>
#include <ctime>
#include <algorithm>
#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 "singleton-cleanup.h"
#include "builtins.h"
#include "cutils.h"
#include "defun.h"
#include "display.h"
#include "error.h"
#include "graphics.h"
#include "input.h"
#include "ov.h"
#include "oct-obj.h"
#include "oct-map.h"
#include "ov-fcn-handle.h"
#include "pager.h"
#include "parse.h"
#include "toplev.h"
#include "txt-eng-ft.h"
#include "unwind-prot.h"
#include "octave-default-image.h"
#include "graphics-props.cc"
Go to the source code of this file.
Classes | |
class | callback_event |
class | function_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 std::map< caseless_str, graphics_object > | dprop_obj_map |
static bool | executing_callback = false |
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 |
Referenced by array_property::is_equal().
#define CONVERT_CDATA_1 | ( | ARRAY_T, | |
VAL_FN, | |||
IS_REAL | |||
) |
Referenced by convert_cdata().
#define FIX_LIMITS |
Referenced by axes::update_axis_limits().
#define GO_BODY | ( | TYPE | ) |
Definition at line 10606 of file graphics.cc.
Referenced by F__go_axes__(), F__go_hggroup__(), F__go_image__(), F__go_line__(), F__go_patch__(), F__go_surface__(), F__go_text__(), F__go_uicontextmenu__(), F__go_uicontrol__(), F__go_uimenu__(), F__go_uipanel__(), F__go_uipushtool__(), F__go_uitoggletool__(), and F__go_uitoolbar__().
|
static |
Definition at line 2736 of file graphics.cc.
References 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 10619 of file graphics.cc.
References calc_dimensions(), graphics_object::get(), base_properties::get_children(), gh_manager::get_object(), graphics_object::get_properties(), octave_value::is_empty(), graphics_object::isa(), Array< T >::length(), gh_manager::lookup(), octave_handle::ok(), and graphics_object::valid_object().
Referenced by calc_dimensions(), and F__calc_dimensions__().
|
inline |
Definition at line 5363 of file graphics.cc.
References Array< T >::fortran_vec().
Referenced by axes::properties::update_camera().
|
static |
Definition at line 6835 of file graphics.cc.
References error_state, octave_value::is_matrix_type(), octave_value::matrix_value(), Array< T >::numel(), and xfinite().
Referenced by get_children_limits().
|
static |
Definition at line 11704 of file graphics.cc.
Referenced by Fwaitfor().
|
static |
Definition at line 11748 of file graphics.cc.
References do_cleanup_waitfor_listener(), and POSTSET.
Referenced by Fwaitfor().
|
static |
Definition at line 11752 of file graphics.cc.
References do_cleanup_waitfor_listener(), and PREDELETE.
Referenced by Fwaitfor().
|
static |
Definition at line 2673 of file graphics.cc.
References gh_manager::execute_callback(), OCTAVE_SAFE_CALL, and xget().
Referenced by gh_manager::do_close_all_figures().
|
static |
Definition at line 11686 of file graphics.cc.
References error_state, feval(), and octave_value_list::length().
Referenced by Fwaitfor(), and waitfor_listener().
|
static |
Definition at line 809 of file graphics.cc.
References CONVERT_CDATA_1, Array< T >::data(), octave_value::dims(), error(), error_state, Array< T >::fortran_vec(), graphics_object::get(), base_properties::get___myhandle__(), graphics_object::get_ancestor(), gh_manager::get_object(), octave_value::is_bool_type(), octave_value::is_double_type(), octave_value::is_single_type(), octave_value::is_uint16_type(), octave_value::is_uint8_type(), octave_value::matrix_value(), Array< T >::numel(), octave_value(), Matrix::resize(), Array< T >::rows(), octave_value::type_name(), and graphics_object::valid_object().
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 799 of file graphics.cc.
References convert_cdata_2().
|
static |
Definition at line 767 of file graphics.cc.
References x, xisnan(), and xround().
Referenced by convert_cdata_1().
|
static |
Definition at line 463 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(), uipanel::properties::get_fontsize_points(), axes::properties::update_fontunits(), text::properties::update_fontunits(), uicontrol::properties::update_fontunits(), and uipanel::properties::update_fontunits().
|
static |
Definition at line 5808 of file graphics.cc.
References caseless_str::compare(), convert_position(), Matrix::extract_n(), text::properties::get_units(), ColumnVector::resize(), and graphics_xform::transform().
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 6629 of file graphics.cc.
References string_vector::append(), octave_value::columns(), octave_value::is_cellstr(), octave_value::is_string(), octave_value::numel(), octave_value(), octave_value::reshape(), octave_value::rows(), and octave_value::string_value().
Referenced by axes::properties::set_linestyleorder().
|
static |
Definition at line 521 of file graphics.cc.
References caseless_str::compare(), octave_value::double_value(), f, Array< T >::numel(), and xget().
Referenced by axes::properties::calc_tightbox(), convert_label_position(), convert_text_position(), figure::properties::get_auto_paperposition(), figure::properties::get_boundingbox(), axes::properties::get_boundingbox(), uicontrol::properties::get_boundingbox(), uipanel::properties::get_boundingbox(), uicontrol::properties::get_extent(), figure::properties::map_from_boundingbox(), figure::properties::map_to_boundingbox(), screen_size_pixels(), figure::properties::set_boundingbox(), figure::properties::update_units(), axes::properties::update_units(), uicontrol::properties::update_units(), and uipanel::properties::update_units().
|
static |
Definition at line 666 of file graphics.cc.
References caseless_str::compare(), convert_position(), Matrix::extract_n(), base_properties::get___myhandle__(), graphics_object::get_ancestor(), axes::properties::get_boundingbox(), gh_manager::get_object(), axes::properties::get_transform(), Array< T >::numel(), Matrix::resize(), graphics_xform::transform(), graphics_xform::untransform(), v1, and v2.
Referenced by text::properties::get_data_position(), text::properties::get_extent(), and text::properties::update_units().
|
static |
Definition at line 6522 of file graphics.cc.
References string_vector::append(), octave_value::array_value(), octave_value::columns(), octave_value::is_cellstr(), octave_value::is_numeric_type(), octave_value::is_string(), octave_value::numel(), octave_value(), octave_value::reshape(), octave_value::rows(), and octave_value::string_value().
Referenced by axes::properties::set_xticklabel(), axes::properties::set_yticklabel(), and axes::properties::set_zticklabel().
|
inline |
Definition at line 5334 of file graphics.cc.
References v1, v2, and xform_vector().
Referenced by axes::properties::update_camera().
|
inline |
Definition at line 8506 of file graphics.cc.
Referenced by surface::properties::update_normals().
|
static |
Definition at line 357 of file graphics.cc.
Referenced by axes::properties::factory_defaults(), and axes::properties::set_defaults().
|
static |
Definition at line 346 of file graphics.cc.
Referenced by axes::properties::factory_defaults(), axes::properties::init(), and axes::properties::set_defaults().
|
static |
Definition at line 373 of file graphics.cc.
Referenced by axes::properties::factory_defaults().
|
static |
Definition at line 386 of file graphics.cc.
Referenced by axes::properties::factory_defaults(), and axes::properties::set_defaults().
|
static |
Definition at line 365 of file graphics.cc.
Referenced by axes::properties::factory_defaults().
|
static |
Definition at line 205 of file graphics.cc.
Referenced by axes::properties::factory_defaults(), and axes::properties::set_defaults().
|
static |
Definition at line 426 of file graphics.cc.
Referenced by uicontrol::properties::factory_defaults().
|
static |
Definition at line 439 of file graphics.cc.
Referenced by uicontrol::properties::factory_defaults().
|
static |
Definition at line 248 of file graphics.cc.
Referenced by line::properties::factory_defaults().
|
static |
Definition at line 415 of file graphics.cc.
Referenced by figure::properties::factory_defaults().
|
static |
Definition at line 406 of file graphics.cc.
Referenced by figure::properties::factory_defaults().
|
static |
Definition at line 395 of file graphics.cc.
Referenced by figure::properties::factory_defaults(), axes::properties::get_boundingbox(), and uicontrol::properties::get_boundingbox().
|
static |
Definition at line 259 of file graphics.cc.
References default_im_data.
Referenced by image::properties::factory_defaults().
Definition at line 232 of file graphics.cc.
Referenced by axes::properties::factory_defaults(), and axes::properties::get_axis_limits().
|
static |
Definition at line 450 of file graphics.cc.
Referenced by uipanel::properties::factory_defaults().
|
static |
Definition at line 311 of file graphics.cc.
Referenced by patch::properties::factory_defaults().
|
static |
Definition at line 320 of file graphics.cc.
Referenced by patch::properties::factory_defaults().
|
static |
Definition at line 330 of file graphics.cc.
Referenced by patch::properties::factory_defaults().
|
static |
Definition at line 338 of file graphics.cc.
Referenced by patch::properties::factory_defaults().
|
static |
Definition at line 182 of file graphics.cc.
References display_info::depth().
Referenced by root_figure::properties::factory_defaults().
|
static |
Definition at line 199 of file graphics.cc.
References display_info::x_dpi(), and display_info::y_dpi().
Referenced by root_figure::properties::factory_defaults().
|
static |
Definition at line 188 of file graphics.cc.
References display_info::height(), and display_info::width().
Referenced by root_figure::properties::factory_defaults(), and root_figure::properties::update_units().
|
static |
Definition at line 305 of file graphics.cc.
References default_surface_zdata().
Referenced by surface::properties::factory_defaults().
|
static |
Definition at line 274 of file graphics.cc.
Referenced by surface::properties::factory_defaults().
|
static |
Definition at line 285 of file graphics.cc.
Referenced by surface::properties::factory_defaults().
|
static |
Definition at line 296 of file graphics.cc.
Referenced by default_surface_cdata(), and surface::properties::factory_defaults().
|
static |
Definition at line 2628 of file graphics.cc.
References gh_manager::free(), gh_manager::get_object(), graphics_object::get_parent(), graphics_object::get_properties(), base_properties::is_beingdeleted(), octave_handle::ok(), graphics_object::remove_child(), graphics_object::valid_object(), and Vdrawnow_requested.
Referenced by delete_graphics_object(), delete_graphics_objects(), and force_close_figure().
|
static |
Definition at line 2660 of file graphics.cc.
References delete_graphics_object(), and gh_manager::lookup().
|
static |
Definition at line 2666 of file graphics.cc.
References delete_graphics_object(), Array< T >::elem(), and Array< T >::numel().
Referenced by F__go_delete__().
|
static |
Definition at line 11710 of file graphics.cc.
References octave_value::cell_value(), base_properties::delete_listener(), error_state, gh_manager::get_object(), graphics_object::get_properties(), base_properties::has_property(), gh_manager::lookup(), Array< T >::numel(), octave_handle::ok(), PERSISTENT, and POSTSET.
Referenced by cleanup_waitfor_postset_listener(), and cleanup_waitfor_predelete_listener().
Definition at line 7819 of file graphics.cc.
References pow().
Referenced by axes::properties::translate_view().
Definition at line 7680 of file graphics.cc.
References pow().
Referenced by axes::properties::zoom_about_point().
|
inline |
Definition at line 5322 of file graphics.cc.
Referenced by install_dot_fcns(), norm(), and axes::properties::update_camera().
OCTAVE_EXPORT octave_value_list F__calc_dimensions__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10659 of file graphics.cc.
References calc_dimensions(), error(), error_state, gh_manager::get_object(), octave_value::length(), and print_usage().
OCTAVE_EXPORT octave_value_list F__get__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10383 of file graphics.cc.
References error(), error_state, graphics_object::get(), gh_manager::get_object(), Array< T >::length(), Array< T >::numel(), print_usage(), and Array< T >::resize().
OCTAVE_EXPORT octave_value_list F__go_axes__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10685 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_axes_init__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10856 of file graphics.cc.
References error(), error_state, gh_manager::get_object(), octave_value::length(), gh_manager::lookup(), octave_NaN, octave_handle::ok(), print_usage(), and graphics_object::set_defaults().
OCTAVE_EXPORT octave_value_list F__go_delete__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10811 of file graphics.cc.
References delete_graphics_objects(), Array< T >::elem(), error(), error_state, gh_manager::lookup(), Array< T >::numel(), octave_NaN, octave_handle::ok(), and print_usage().
OCTAVE_EXPORT octave_value_list F__go_execute_callback__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10944 of file graphics.cc.
References error(), error_state, gh_manager::execute_callback(), octave_value::length(), gh_manager::lookup(), octave_handle::ok(), and print_usage().
OCTAVE_EXPORT octave_value_list F__go_figure__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10511 of file graphics.cc.
References adopt(), caseless_str::compare(), D_NINT(), octave_value::double_value(), error(), error_state, gh_manager::get_object(), graphics_object::get_properties(), base_properties::init_integerhandle(), is_figure(), octave_value_list::length(), gh_manager::lookup(), gh_manager::make_figure_handle(), gh_manager::make_graphics_handle(), octave_NaN, octave_handle::ok(), print_usage(), gh_manager::push_figure(), octave_value_list::splice(), octave_handle::value(), xcreatefcn(), xinitialize(), xisnan(), and xset().
OCTAVE_EXPORT octave_value_list F__go_figure_handles__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10927 of file graphics.cc.
References gh_manager::figure_handle_list(), and octave_value().
OCTAVE_EXPORT octave_value_list F__go_handles__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10911 of file graphics.cc.
References gh_manager::handle_list(), and octave_value().
OCTAVE_EXPORT octave_value_list F__go_hggroup__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10739 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_image__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10712 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_line__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10694 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_patch__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10730 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_surface__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10721 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_text__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10703 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uicontextmenu__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10775 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uicontrol__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10757 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uimenu__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10748 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uipanel__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10766 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uipushtool__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10793 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uitoggletool__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10802 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__go_uitoolbar__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10784 of file graphics.cc.
References GO_BODY.
OCTAVE_EXPORT octave_value_list F__image_pixel_size__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10989 of file graphics.cc.
References error(), error_state, gh_manager::get_object(), graphics_object::get_properties(), graphics_object::isa(), octave_value::length(), image::properties::pixel_xsize(), image::properties::pixel_ysize(), and print_usage().
OCTAVE_EXPORT octave_value_list F__is_handle_visible__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 9829 of file graphics.cc.
References is_handle_visible(), and print_usage().
OCTAVE_EXPORT octave_value_list F__zoom__ | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 12078 of file graphics.cc.
References axes::properties::clear_zoom_stack(), error(), error_state, gh_manager::get_object(), graphics_object::get_properties(), octave_value::length(), gh_manager::lookup(), octave_handle::ok(), print_usage(), Vdrawnow_requested, and axes::properties::zoom().
OCTAVE_EXPORT octave_value_list Faddlistener | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 11392 of file graphics.cc.
References graphics_object::add_property_listener(), caseless_str::compare(), error(), error_state, gh_manager::get_object(), gh_manager::lookup(), octave_handle::ok(), PERSISTENT, POSTSET, and print_usage().
OCTAVE_EXPORT octave_value_list Faddproperty | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 11590 of file graphics.cc.
References property::create(), error(), error_state, gh_manager::get_object(), graphics_object::get_properties(), base_properties::has_property(), base_properties::insert_property(), gh_manager::lookup(), octave_handle::ok(), print_usage(), and octave_value::string_value().
OCTAVE_EXPORT octave_value_list Favailable_graphics_toolkits | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 11120 of file graphics.cc.
References gtk_manager::available_toolkits_list(), and octave_value().
OCTAVE_EXPORT octave_value_list Fdellistener | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 11465 of file graphics.cc.
References graphics_object::delete_property_listener(), error(), error_state, gh_manager::get_object(), gh_manager::lookup(), octave_handle::ok(), PERSISTENT, POSTSET, and print_usage().
OCTAVE_EXPORT octave_value_list Fdrawnow | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 11181 of file graphics.cc.
References caseless_str::compare(), file_ops::dir_sep_chars(), error(), error_state, gh_manager::figure_handle_list(), gcf(), gh_manager::get_object(), graphics_object::get_properties(), graphics_object::get_toolkit(), figure::properties::get_toolkit(), base_file_stat::is_dir(), base_properties::is_modified(), base_properties::is_visible(), Array< T >::length(), gh_manager::lock(), gh_manager::lookup(), octave_handle::ok(), graphics_toolkit::print_figure(), print_usage(), gh_manager::process_events(), action_container::protect_var(), graphics_toolkit::redraw_figure(), base_properties::set_modified(), gh_manager::unlock(), and Vdrawnow_requested.
Referenced by gh_manager::do_process_events(), Fkbhit(), Fpause(), Freset(), Fsleep(), Fusleep(), G__fltk_check__(), and main_window::new_figure_callback().
OCTAVE_EXPORT octave_value_list Fget | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 10211 of file graphics.cc.
References octave_map::cat(), error(), error_state, graphics_object::get(), get_graphics_object_type(), gh_manager::get_object(), Array< T >::length(), Array< T >::numel(), OCTAVE_LOCAL_BUFFER, print_usage(), and Array< T >::resize().
|
static |
Definition at line 1777 of file graphics.cc.
References 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 Fishandle | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 9774 of file graphics.cc.
References is_handle(), and print_usage().
OCTAVE_EXPORT octave_value_list Floaded_graphics_toolkits | ( | const octave_value_list & | , |
int | |||
) |
Definition at line 11159 of file graphics.cc.
References gtk_manager::loaded_toolkits_list(), and octave_value().
|
static |
Definition at line 2681 of file graphics.cc.
References delete_graphics_object(), and xset().
Referenced by gh_manager::do_close_all_figures().
Definition at line 7669 of file graphics.cc.
References x.
OCTAVE_EXPORT octave_value_list Fregister_graphics_toolkit | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 11132 of file graphics.cc.
References error(), print_usage(), and gtk_manager::register_toolkit().
Referenced by octave_start_gui().
OCTAVE_EXPORT octave_value_list Freset | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 9854 of file graphics.cc.
References error_state, Fdrawnow(), gh_manager::get_object(), Array< T >::length(), octave_value(), and print_usage().
OCTAVE_EXPORT octave_value_list Fset | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 10065 of file graphics.cc.
References error(), error_state, gh_manager::get_object(), octave_map::getfield(), graphics_object::has_readonly_property(), octave_map::isfield(), Array< T >::length(), octave_value::length(), octave_stdout, print_usage(), graphics_object::set(), graphics_object::value_as_string(), graphics_object::values_as_string(), graphics_object::values_as_struct(), and Vdrawnow_requested.
OCTAVE_EXPORT octave_value_list Fwaitfor | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 11851 of file graphics.cc.
References 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(), error_state, graphics_object::get(), gh_manager::get_object(), graphics_object::get_properties(), base_properties::has_dynamic_property(), octave_value::is_defined(), gh_manager::lookup(), OCTAVE_QUIT, octave_usleep(), octave_value(), octave_handle::ok(), PERSISTENT, POSTSET, PREDELETE, print_usage(), command_editor::run_event_hooks(), waitfor_del_listener(), waitfor_listener(), and warning().
graphics_handle gca | ( | void | ) |
Definition at line 2620 of file graphics.cc.
References octave_value::double_value(), gcf(), octave_value::is_empty(), octave_NaN, and xget().
graphics_handle gcf | ( | void | ) |
Definition at line 2611 of file graphics.cc.
References octave_value::double_value(), octave_value::is_empty(), octave_NaN, and xget().
Referenced by Fdrawnow(), and gca().
|
static |
Definition at line 897 of file graphics.cc.
References Array< T >::data(), Array< T >::numel(), and xisinf().
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 7218 of file graphics.cc.
References 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(), 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 10185 of file graphics.cc.
References error(), gh_manager::get_object(), 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 11647 of file graphics.cc.
References error(), graphics_object::get(), and gh_manager::get_object().
Referenced by mexGet().
|
static |
Definition at line 67 of file graphics.cc.
References error().
Referenced by root_figure::properties::set_callbackobject(), figure::properties::set_currentaxes(), and root_figure::properties::set_currentfigure().
|
static |
Definition at line 1793 of file graphics.cc.
References 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().
Definition at line 2782 of file graphics.cc.
References gh_manager::get_object(), and graphics_object::isa().
Referenced by F__go_figure__().
|
static |
Definition at line 2743 of file graphics.cc.
References octave_handle::ok().
Referenced by Fishandle(), is_handle(), root_figure::properties::set_callbackobject(), figure::properties::set_currentaxes(), and root_figure::properties::set_currentfigure().
Definition at line 2749 of file graphics.cc.
References gh_manager::lookup(), and octave_handle::ok().
|
static |
Definition at line 2757 of file graphics.cc.
References octave_value::array_value(), Array< T >::dims(), octave_value::double_value(), error_state, is_handle(), octave_value::is_numeric_type(), octave_value::is_real_scalar(), octave_value::is_real_type(), Array< T >::numel(), and Array< T >::xelem().
|
static |
Definition at line 9789 of file graphics.cc.
References gh_manager::is_handle_visible(), and octave_handle::ok().
Referenced by gh_manager::do_current_figure(), gh_manager::do_figure_handle_list(), gh_manager::do_handle_list(), F__is_handle_visible__(), and is_handle_visible().
Definition at line 9795 of file graphics.cc.
References is_handle_visible(), and gh_manager::lookup().
|
static |
Definition at line 9801 of file graphics.cc.
References octave_value::array_value(), Array< T >::dims(), octave_value::double_value(), error_state, is_handle_visible(), octave_value::is_numeric_type(), octave_value::is_real_scalar(), octave_value::is_real_type(), Array< T >::numel(), and Array< T >::xelem().
|
static |
Definition at line 137 of file graphics.cc.
References x.
Referenced by figure::properties::factory_defaults().
|
static |
Definition at line 926 of file graphics.cc.
References caseless_str::compare().
Referenced by property::create().
Definition at line 6870 of file graphics.cc.
References abs(), floor(), and pow().
Referenced by axes::properties::calc_tick_sep().
|
static |
Definition at line 10436 of file graphics.cc.
References adopt(), caseless_str::compare(), error(), error_state, octave_value_list::length(), gh_manager::lookup(), gh_manager::make_graphics_handle(), octave_NaN, octave_handle::ok(), octave_value_list::splice(), octave_handle::value(), Vdrawnow_requested, xcreatefcn(), xinitialize(), xisnan(), and xset().
|
static |
Definition at line 1004 of file graphics.cc.
References caseless_str::compare().
Referenced by property::create(), and gh_manager::do_make_graphics_handle().
|
static |
Definition at line 2415 of file graphics.cc.
Referenced by gh_manager::do_free(), gh_manager::do_get_handle(), and gh_manager::do_renumber_figure().
|
static |
Definition at line 6254 of file graphics.cc.
References get_children_limits(), octave_Inf, xfinite(), and xmax().
Referenced by axes::properties::update_aspectratios().
|
inline |
Definition at line 5328 of file graphics.cc.
References dot().
Referenced by filter(), install_data_fcns(), Matrix::ltsolve(), FloatMatrix::ltsolve(), ComplexMatrix::ltsolve(), FloatComplexMatrix::ltsolve(), matrix_complex_probe(), MatrixType::MatrixType(), Matrix::rcond(), FloatMatrix::rcond(), ComplexMatrix::rcond(), FloatComplexMatrix::rcond(), axes::properties::update_camera(), Matrix::utsolve(), FloatMatrix::utsolve(), ComplexMatrix::utsolve(), and FloatComplexMatrix::utsolve().
|
inline |
Definition at line 5315 of file graphics.cc.
References scale().
Referenced by axes::properties::update_camera().
|
static |
Definition at line 6239 of file graphics.cc.
References xmin().
Referenced by axes::properties::update_aspectratios().
|
static |
Definition at line 4023 of file graphics.cc.
References caseless_str::compare().
Referenced by figure::properties::get_auto_paperposition(), figure::properties::update_papertype(), and figure::properties::update_paperunits().
|
static |
Definition at line 2571 of file graphics.cc.
References base_graphics_object::adopt(), octave_value::double_value(), error(), error_state, gh_manager::get_object(), graphics_object::get_parent(), gh_manager::lookup(), octave_NaN, octave_handle::ok(), graphics_object::remove_child(), graphics_object::reparent(), graphics_object::set(), and octave_handle::value().
Definition at line 5281 of file graphics.cc.
References xform_scale().
Referenced by Fairy(), Flu(), G__glpk__(), Gaudiowrite(), axes::properties::get_scale(), octave_fftw::ifft(), octave_fftw::ifftNd(), HESS::init(), FloatHESS::init(), ComplexHESS::init(), FloatComplexHESS::init(), lin_interpn(), normalize(), octave_print_internal(), pr_complex(), pr_float(), set_format(), Sylvester(), and axes::properties::update_camera().
|
inline |
Definition at line 5299 of file graphics.cc.
References x.
|
static |
Definition at line 758 of file graphics.cc.
References 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::get_auto_paperposition(), 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 11664 of file graphics.cc.
References error(), error_state, gh_manager::get_object(), and graphics_object::set().
Referenced by mexSet().
|
inline |
Definition at line 5259 of file graphics.cc.
References xform_vector().
Referenced by Fgammainc(), Fmatrix_type(), Fnproc(), G__eigs__(), Gaudiowrite(), Gfftw(), property_list::lookup(), octregexp(), base_properties::cmp_caseless_str::operator()(), parse_options(), property_list::set(), color_values::str2rgb(), graphics_xform::transform(), and graphics_xform::untransform().
Definition at line 5287 of file graphics.cc.
References xform_translate().
Referenced by Ui_annotation_dialog::retranslateUi(), Ui_settings_dialog::retranslateUi(), and axes::properties::update_camera().
|
inline |
Definition at line 5307 of file graphics.cc.
References x.
|
inline |
Definition at line 5344 of file graphics.cc.
References Array< T >::fortran_vec().
Referenced by axes::properties::update_camera().
|
static |
Definition at line 77 of file graphics.cc.
References caseless_str::compare(), error(), string_vector::list_in_columns(), and warning_with_id().
Referenced by root_figure::properties::get(), figure::properties::get(), axes::properties::get(), line::properties::get(), text::properties::get(), image::properties::get(), patch::properties::get(), surface::properties::get(), hggroup::properties::get(), uimenu::properties::get(), uicontextmenu::properties::get(), uicontrol::properties::get(), uipanel::properties::get(), uitoolbar::properties::get(), uipushtool::properties::get(), uitoggletool::properties::get(), root_figure::properties::get_property(), figure::properties::get_property(), axes::properties::get_property(), line::properties::get_property(), text::properties::get_property(), image::properties::get_property(), patch::properties::get_property(), surface::properties::get_property(), hggroup::properties::get_property(), uimenu::properties::get_property(), uicontextmenu::properties::get_property(), uicontrol::properties::get_property(), uipanel::properties::get_property(), uitoolbar::properties::get_property(), uipushtool::properties::get_property(), uitoggletool::properties::get_property(), root_figure::properties::set(), figure::properties::set(), axes::properties::set(), line::properties::set(), text::properties::set(), image::properties::set(), patch::properties::set(), surface::properties::set(), hggroup::properties::set(), uimenu::properties::set(), uicontextmenu::properties::set(), uicontrol::properties::set(), uipanel::properties::set(), uitoolbar::properties::set(), uipushtool::properties::set(), and uitoggletool::properties::set().
|
static |
Definition at line 11798 of file graphics.cc.
References error_state, and octave_value_list::length().
Referenced by Fwaitfor().
|
static |
Definition at line 11756 of file graphics.cc.
References compare_property_values(), error_state, graphics_object::get(), gh_manager::get_object(), octave_value_list::length(), gh_manager::lookup(), and octave_handle::ok().
Referenced by Fwaitfor().
|
static |
Definition at line 2790 of file graphics.cc.
References base_properties::execute_createfcn(), gh_manager::get_object(), and graphics_object::get_properties().
Referenced by F__go_figure__(), and make_graphics_object().
|
inline |
Definition at line 5293 of file graphics.cc.
Referenced by axes::properties::get_extent(), graphics_xform::operator=(), 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 5371 of file graphics.cc.
References ColumnVector::extract_n(), and ColumnVector::transpose().
Referenced by axes::properties::update_camera().
|
inline |
Definition at line 5234 of file graphics.cc.
Referenced by axes::properties::update_camera(), graphics_xform::xform_eye(), and xform_translate().
Definition at line 5273 of file graphics.cc.
References x, and xform_matrix().
Referenced by translate().
|
inline |
Definition at line 5243 of file graphics.cc.
Referenced by cross(), transform(), axes::properties::update_camera(), and graphics_xform::xform_vector().
|
inline |
Definition at line 5251 of file graphics.cc.
References x.
|
static |
Definition at line 2564 of file graphics.cc.
References graphics_object::get(), and gh_manager::get_object().
Referenced by close_figure(), convert_font_size(), convert_position(), gca(), gcf(), and uipanel::properties::get_boundingbox().
|
static |
Definition at line 2797 of file graphics.cc.
References gh_manager::get_object(), and graphics_object::initialize().
Referenced by F__go_figure__(), axes::initialize(), and make_graphics_object().
|
static |
Definition at line 2832 of file graphics.cc.
References graphics_object::build_user_defaults_map(), gh_manager::get_object(), graphics_object::get_properties(), base_properties::graphics_object_name(), graphics_object::has_readonly_property(), and graphics_object::set().
Referenced by base_graphics_object::reset_default_properties(), root_figure::reset_default_properties(), figure::reset_default_properties(), and uitoolbar::reset_default_properties().
|
static |
Definition at line 2546 of file graphics.cc.
References gh_manager::get_object(), and graphics_object::set().
Referenced by axes::properties::delete_text_child(), F__go_figure__(), force_close_figure(), axes::properties::init(), make_graphics_object(), root_figure::properties::remove_child(), axes::properties::set_defaults(), figure::properties::set_integerhandle(), axes::properties::set_text_child(), axes::properties::set_title(), figure::properties::set_visible(), axes::properties::set_xlabel(), axes::properties::set_ylabel(), and axes::properties::set_zlabel().
|
static |
Definition at line 2554 of file graphics.cc.
References gh_manager::get_object(), octave_value_list::length(), and graphics_object::set().
|
static |
Definition at line 9482 of file graphics.cc.
References octave_handle::as_octave_value(), gh_manager::get_object(), graphics_object::get_properties(), and root_figure::properties::set_callbackobject().
Referenced by gh_manager::do_execute_callback(), and gh_manager::do_restore_gcbo().
|
static |
Definition at line 1624 of file graphics.cc.
|
static |
Definition at line 1596 of file graphics.cc.
|
static |
Definition at line 6275 of file graphics.cc.
|
static |
Definition at line 5597 of file graphics.cc.
|
static |
Definition at line 7301 of file graphics.cc.
|
static |
Definition at line 8638 of file graphics.cc.
|
static |
Definition at line 8306 of file graphics.cc.
|
static |
Definition at line 6173 of file graphics.cc.
|
static |
Definition at line 5836 of file graphics.cc.
|
static |
Definition at line 5938 of file graphics.cc.
|
static |
Definition at line 6049 of file graphics.cc.
|
static |
Definition at line 11701 of file graphics.cc.