#include "octave-config.h"
#include <cctype>
#include <cmath>
#include <algorithm>
#include <list>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <string>
#include <unordered_map>
#include <vector>
#include "caseless-str.h"
#include "errwarn.h"
#include "graphics-handle.h"
#include "graphics-toolkit.h"
#include "oct-map.h"
#include "oct-mutex.h"
#include "oct-refcount.h"
#include "ov.h"
#include "text-renderer.h"
Go to the source code of this file.
Macros | |
#define | OCTAVE_DEFAULT_FONTNAME "*" |
Typedefs | |
typedef std::pair< std::string, octave_value > | pval_pair |
Enumerations | |
enum | { AXE_ANY_DIR = 0 , AXE_DEPTH_DIR = 1 , AXE_HORZ_DIR = 2 , AXE_VERT_DIR = 3 } |
enum | finite_type { NO_CHECK , FINITE , NOT_NAN , NOT_INF } |
enum | listener_mode { GCB_POSTSET , GCB_PERSISTENT , GCB_PREDELETE } |
Functions | |
int | calc_dimensions (const graphics_object &gh) |
void | close_all_figures () |
graphics_handle | gca () |
graphics_handle | gcf () |
void | get_children_limits (double &min_val, double &max_val, double &min_pos, double &max_neg, const Matrix &kids, char limit_type) |
octave_value | get_property_from_handle (double handle, const std::string &property, const std::string &fcn) |
base_graphics_object * | make_graphics_object_from_type (const caseless_str &type, const graphics_handle &h=graphics_handle(), const graphics_handle &p=graphics_handle()) |
bool | set_property_in_handle (double handle, const std::string &property, const octave_value &arg, const std::string &fcn) |
#define OCTAVE_DEFAULT_FONTNAME "*" |
Definition at line 63 of file graphics.h.
typedef std::pair<std::string, octave_value> pval_pair |
Definition at line 2123 of file graphics.h.
anonymous enum |
Enumerator | |
---|---|
AXE_ANY_DIR | |
AXE_DEPTH_DIR | |
AXE_HORZ_DIR | |
AXE_VERT_DIR |
Definition at line 4654 of file graphics.h.
enum finite_type |
Enumerator | |
---|---|
NO_CHECK | |
FINITE | |
NOT_NAN | |
NOT_INF |
Definition at line 1179 of file graphics.h.
enum listener_mode |
Enumerator | |
---|---|
GCB_POSTSET | |
GCB_PERSISTENT | |
GCB_PREDELETE |
Definition at line 280 of file graphics.h.
int calc_dimensions | ( | const graphics_object & | gh | ) |
Definition at line 12741 of file graphics.cc.
References __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, Alloc >::numel(), octave_handle::ok(), and graphics_object::valid_object().
Referenced by F__calc_dimensions__().
void close_all_figures | ( | ) |
graphics_handle gca | ( | ) |
Definition at line 2803 of file graphics.cc.
References octave_value::double_value(), gcf(), octave_value::isempty(), NaN, and xget().
graphics_handle gcf | ( | ) |
Definition at line 2793 of file graphics.cc.
References octave_value::double_value(), octave_value::isempty(), NaN, 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 8105 of file graphics.cc.
References __get_gh_manager__(), gh_manager::get_object(), graphics_object::get_xlim(), graphics_object::is_xliminclude(), n, and Array< T, Alloc >::numel().
Referenced by axes::properties::check_axis_limits(), axes::properties::translate_view(), and axes::properties::zoom_about_point().
octave_value get_property_from_handle | ( | double | handle, |
const std::string & | property, | ||
const std::string & | fcn | ||
) |
Definition at line 13581 of file graphics.cc.
References __get_gh_manager__(), error(), graphics_object::get(), gh_manager::get_object(), and gh_manager::graphics_lock().
Referenced by mexGet(), and mexGet_interleaved().
base_graphics_object* make_graphics_object_from_type | ( | const caseless_str & | type, |
const graphics_handle & | h = graphics_handle() , |
||
const graphics_handle & | p = graphics_handle() |
||
) |
Definition at line 1205 of file graphics.cc.
References caseless_str::compare().
Referenced by gh_manager::make_graphics_handle().
bool set_property_in_handle | ( | double | handle, |
const std::string & | property, | ||
const octave_value & | arg, | ||
const std::string & | fcn | ||
) |
Definition at line 13597 of file graphics.cc.
References __get_gh_manager__(), error(), gh_manager::get_object(), gh_manager::graphics_lock(), and graphics_object::set().
Referenced by mexSet().