#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-sysdep.h"#include "oct-time.h"#include "builtin-defun-decls.h"#include "defun.h"#include "display.h"#include "error.h"#include "gh-manager.h"#include "graphics-utils.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 "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.
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) |
| #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 13016 of file graphics.cc.
| int calc_dimensions | ( | const graphics_object & | go | ) |
Definition at line 13027 of file graphics.cc.
References calc_dimensions(), gh_manager::get_object(), gh_manager::lookup(), Array< T, Alloc >::numel(), and octave_handle::ok().
Referenced by calc_dimensions(), and F__calc_dimensions__().
|
inline |
Definition at line 5827 of file graphics.cc.
References Array< T, Alloc >::data(), and Array< T, Alloc >::rwdata().
| 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 1188 of file graphics.cc.
| std::vector< octave_idx_type > coplanar_partition | ( | const Matrix & | vert, |
| const Matrix & | idx, | ||
| octave_idx_type | nc, | ||
| octave_idx_type | jj | ||
| ) |
Definition at line 9811 of file graphics.cc.
References is_coplanar(), Matrix::resize(), and Matrix::transpose().
|
inline |
Definition at line 5794 of file graphics.cc.
References v2, and xform_vector().
|
inline |
Definition at line 10048 of file graphics.cc.
References x.
|
inline |
| octave_value_list F__calc_dimensions__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13068 of file graphics.cc.
References calc_dimensions(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), ovl(), and print_usage().
| octave_value_list F__get__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 12802 of file graphics.cc.
References error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), Array< T, Alloc >::numel(), ovl(), and print_usage().
| octave_value_list F__get_frame__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 14327 of file graphics.cc.
References error(), gh_manager::get_object(), octave_value_list::length(), ovl(), print_usage(), and gh_manager::process_events().
| octave_value_list F__get_position__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 14354 of file graphics.cc.
References error(), Matrix::extract_n(), gh_manager::get_object(), octave_value_list::length(), ovl(), and print_usage().
| octave_value_list F__get_system_fonts__ | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 14387 of file graphics.cc.
References octave_value_list::length(), ovl(), and print_usage().
| octave_value_list F__go_axes__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13086 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_delete__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13248 of file graphics.cc.
References delete_graphics_objects(), error(), gh_manager::graphics_lock(), octave_value_list::length(), gh_manager::lookup(), Array< T, Alloc >::numel(), octave_handle::ok(), ovl(), and print_usage().
| octave_value_list F__go_execute_callback__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13317 of file graphics.cc.
References error(), gh_manager::execute_callback(), octave_value_list::length(), gh_manager::lookup(), Array< T, Alloc >::numel(), octave_handle::ok(), ovl(), and print_usage().
| octave_value_list F__go_figure__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 12924 of file graphics.cc.
References caseless_str::compare(), delete_graphics_object(), error(), gh_manager::get_object(), gh_manager::graphics_lock(), isfigure(), octave_value_list::length(), gh_manager::lookup(), gh_manager::make_figure_handle(), gh_manager::make_graphics_handle(), octave_handle::ok(), print_usage(), gh_manager::push_figure(), octave_value_list::splice(), octave_handle::value(), and xset().
| octave_value_list F__go_figure_handles__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13298 of file graphics.cc.
References gh_manager::figure_handle_list(), gh_manager::graphics_lock(), octave_value_list::length(), and ovl().
| octave_value_list F__go_handles__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13280 of file graphics.cc.
References gh_manager::graphics_lock(), gh_manager::handle_list(), octave_value_list::length(), and ovl().
| octave_value_list F__go_hggroup__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13158 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_image__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13113 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_light__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13149 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_line__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13095 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_patch__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13131 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_post_callback__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13353 of file graphics.cc.
References error(), octave_value_list::length(), gh_manager::lookup(), Array< T, Alloc >::numel(), octave_handle::ok(), ovl(), gh_manager::post_callback(), and print_usage().
| octave_value_list F__go_scatter__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13140 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_surface__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13122 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_text__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13104 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uibuttongroup__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13185 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uicontextmenu__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13203 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uicontrol__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13176 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uimenu__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13167 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uipanel__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13194 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uipushtool__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13230 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uitable__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13212 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uitoggletool__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13239 of file graphics.cc.
References GO_BODY.
| octave_value_list F__go_uitoolbar__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13221 of file graphics.cc.
References GO_BODY.
| octave_value_list F__image_pixel_size__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13388 of file graphics.cc.
References error(), gh_manager::get_object(), octave_value_list::length(), ovl(), and print_usage().
| octave_value_list F__is_handle_visible__ | ( | const octave_value_list & | args, |
| int | |||
| ) |
Definition at line 12225 of file graphics.cc.
References octave_value_list::length(), ovl(), and print_usage().
| octave_value_list F__show_figure__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13473 of file graphics.cc.
References error(), gh_manager::get_object(), octave_value_list::length(), gh_manager::lookup(), octave_handle::ok(), ovl(), and print_usage().
| octave_value_list F__update_normals__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 10648 of file graphics.cc.
References error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), ovl(), and print_usage().
| octave_value_list F__zoom__ | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 14270 of file graphics.cc.
References error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), gh_manager::lookup(), octave_handle::ok(), ovl(), print_usage(), and Vdrawnow_requested.
| octave_value_list Faddlistener | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13663 of file graphics.cc.
References caseless_str::compare(), error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), gh_manager::lookup(), octave_handle::ok(), ovl(), and print_usage().
| octave_value_list Faddproperty | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13833 of file graphics.cc.
References error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), gh_manager::lookup(), octave_handle::ok(), ovl(), print_usage(), and octave_value_list::splice().
| octave_value_list Favailable_graphics_toolkits | ( | octave::interpreter & | interp, |
| const octave_value_list & | , | ||
| int | |||
| ) |
Definition at line 13416 of file graphics.cc.
References gh_manager::graphics_lock(), and ovl().
| octave_value_list Fdellistener | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13724 of file graphics.cc.
References error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), gh_manager::lookup(), octave_handle::ok(), ovl(), and print_usage().
| octave_value_list Fdrawnow | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13512 of file graphics.cc.
References caseless_str::compare(), delete_executing, dirname(), error(), gh_manager::figure_handle_list(), gcf(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), gh_manager::lock(), gh_manager::lookup(), Array< T, Alloc >::numel(), octave_handle::ok(), ovl(), print_usage(), gh_manager::process_events(), gh_manager::unlock(), and Vdrawnow_requested.
Referenced by gh_manager::execute_callback(), F__fltk_check__(), Fkbhit(), Fpause(), and gh_manager::process_events().
| octave_value_list Fget | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 12681 of file graphics.cc.
References octave_map::cat(), error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value_list::length(), Array< T, Alloc >::numel(), OCTAVE_LOCAL_BUFFER, ovl(), print_usage(), and Array< T, Alloc >::resize().
| octave_value_list Fishghandle | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 12152 of file graphics.cc.
References gh_manager::graphics_lock(), octave_value_list::length(), ovl(), and print_usage().
| octave_value_list Floaded_graphics_toolkits | ( | octave::interpreter & | interp, |
| const octave_value_list & | , | ||
| int | |||
| ) |
Definition at line 13458 of file graphics.cc.
References gh_manager::graphics_lock(), and ovl().
Definition at line 8872 of file graphics.cc.
References x.
| octave_value_list Fregister_graphics_toolkit | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13435 of file graphics.cc.
References gh_manager::graphics_lock(), octave_value_list::length(), ovl(), and print_usage().
| octave_value_list Freset | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 12246 of file graphics.cc.
References gh_manager::get_object(), octave_value_list::length(), Array< T, Alloc >::numel(), ovl(), print_usage(), and Vdrawnow_requested.
| octave_value_list Fset | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | nargout | ||
| ) |
Definition at line 12486 of file graphics.cc.
References error(), gh_manager::get_object(), octave_map::getfield(), gh_manager::graphics_lock(), octave_map::isfield(), octave_value_list::length(), Array< T, Alloc >::numel(), octave_stdout, print_usage(), and Vdrawnow_requested.
| octave_value_list Fwaitfor | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 14054 of file graphics.cc.
References caseless_str::compare(), error(), gh_manager::get_object(), gh_manager::graphics_lock(), octave_value::is_defined(), octave_value_list::length(), gh_manager::lookup(), octave_handle::ok(), ovl(), print_usage(), and warning().
| graphics_handle gca | ( | ) |
Definition at line 3011 of file graphics.cc.
References octave_value::double_value(), gcf(), octave_value::isempty(), and xget().
| graphics_handle gcf | ( | ) |
Definition at line 3001 of file graphics.cc.
References octave_value::double_value(), octave_value::isempty(), and xget().
Referenced by Fdrawnow(), and gca().
| 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 8353 of file graphics.cc.
References gh_manager::get_object(), and Array< T, Alloc >::numel().
| octave_value get_property_from_handle | ( | double | handle, |
| const std::string & | property, | ||
| const std::string & | fcn | ||
| ) |
Definition at line 13867 of file graphics.cc.
References error(), gh_manager::get_object(), and gh_manager::graphics_lock().
Definition at line 9799 of file graphics.cc.
References EIG::eigenvalues(), ColumnVector::max(), ColumnVector::min(), and real().
Referenced by coplanar_partition().
| base_graphics_object * make_graphics_object_from_type | ( | const caseless_str & | type, |
| const graphics_handle & | h, | ||
| const graphics_handle & | p | ||
| ) |
Definition at line 1409 of file graphics.cc.
References caseless_str::compare().
Referenced by gh_manager::make_graphics_handle().
|
inline |
Definition at line 5788 of file graphics.cc.
References dot().
Referenced by filter(), ComplexMatrix::rcond(), Matrix::rcond(), FloatComplexMatrix::rcond(), and FloatMatrix::rcond().
|
inline |
Definition at line 5775 of file graphics.cc.
References scale().
|
inline |
Definition at line 5759 of file graphics.cc.
References x.
Definition at line 5741 of file graphics.cc.
References x, and xform_scale().
Referenced by sparse_lu< lu_type >::sparse_lu(), sparse_lu< lu_type >::sparse_lu(), F__glpk__(), Fairy(), Faudiowrite(), Flu(), fftw::ifft(), fftw::ifft(), fftw::ifftNd(), fftw::ifftNd(), lin_interpn(), lin_interpn(), normalize(), Sylvester(), Sylvester(), Sylvester(), and Sylvester().
| bool set_property_in_handle | ( | double | handle, |
| const std::string & | property, | ||
| const octave_value & | arg, | ||
| const std::string & | fcn | ||
| ) |
Definition at line 13883 of file graphics.cc.
References error(), gh_manager::get_object(), and gh_manager::graphics_lock().
|
inline |
Definition at line 5709 of file graphics.cc.
References x, and xform_vector().
Referenced by F__eigs__().
|
inline |
Definition at line 5767 of file graphics.cc.
References x.
Definition at line 5747 of file graphics.cc.
References x, and xform_translate().
|
inline |
Definition at line 5806 of file graphics.cc.
References Array< T, Alloc >::rwdata().
|
inline |
Definition at line 5753 of file graphics.cc.
|
inline |
Definition at line 5837 of file graphics.cc.
References ColumnVector::extract_n(), and ColumnVector::transpose().
|
inline |
Definition at line 5676 of file graphics.cc.
Referenced by xform_translate().
Definition at line 5728 of file graphics.cc.
References x, and xform_matrix().
Referenced by translate().
|
inline |
Definition at line 5687 of file graphics.cc.
Referenced by cross(), and transform().
|
inline |
Definition at line 5697 of file graphics.cc.
References x.