#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 "lo-sysdep.h"#include "oct-locbuf.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 12986 of file graphics.cc.
| int calc_dimensions | ( | const graphics_object & | go | ) |
Definition at line 12997 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 5817 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 9791 of file graphics.cc.
References is_coplanar(), Matrix::resize(), and Matrix::transpose().
|
inline |
Definition at line 5784 of file graphics.cc.
References v2, and xform_vector().
|
inline |
Definition at line 10028 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 13038 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 12772 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 14297 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 14324 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 14357 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 13056 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 13218 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 13287 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 12894 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 13268 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 13250 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 13128 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 13083 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 13119 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 13065 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 13101 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 13323 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 13110 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 13092 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 13074 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 13155 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 13173 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 13146 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 13137 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 13164 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 13200 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 13182 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 13209 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 13191 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 13358 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 12195 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 13443 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 10628 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 14240 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 13633 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 13803 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 13386 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 13694 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 13482 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 12651 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 12122 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 13428 of file graphics.cc.
References gh_manager::graphics_lock(), and ovl().
Definition at line 8855 of file graphics.cc.
References x.
| octave_value_list Fregister_graphics_toolkit | ( | octave::interpreter & | interp, |
| const octave_value_list & | args, | ||
| int | |||
| ) |
Definition at line 13405 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 12216 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 12456 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 14024 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 3007 of file graphics.cc.
References octave_value::double_value(), gcf(), octave_value::isempty(), and xget().
| graphics_handle gcf | ( | ) |
Definition at line 2997 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 8336 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 13837 of file graphics.cc.
References error(), gh_manager::get_object(), and gh_manager::graphics_lock().
Definition at line 9779 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 5778 of file graphics.cc.
References dot().
Referenced by filter(), ComplexMatrix::rcond(), Matrix::rcond(), FloatComplexMatrix::rcond(), and FloatMatrix::rcond().
|
inline |
Definition at line 5765 of file graphics.cc.
References scale().
|
inline |
Definition at line 5749 of file graphics.cc.
References x.
Definition at line 5731 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 13853 of file graphics.cc.
References error(), gh_manager::get_object(), and gh_manager::graphics_lock().
|
inline |
Definition at line 5699 of file graphics.cc.
References x, and xform_vector().
Referenced by F__eigs__().
|
inline |
Definition at line 5757 of file graphics.cc.
References x.
Definition at line 5737 of file graphics.cc.
References x, and xform_translate().
|
inline |
Definition at line 5796 of file graphics.cc.
References Array< T, Alloc >::rwdata().
|
inline |
Definition at line 5743 of file graphics.cc.
|
inline |
Definition at line 5827 of file graphics.cc.
References ColumnVector::extract_n(), and ColumnVector::transpose().
|
inline |
Definition at line 5666 of file graphics.cc.
Referenced by xform_translate().
Definition at line 5718 of file graphics.cc.
References x, and xform_matrix().
Referenced by translate().
|
inline |
Definition at line 5677 of file graphics.cc.
Referenced by cross(), and transform().
|
inline |
Definition at line 5687 of file graphics.cc.
References x.