GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
graphics_object Class Reference

#include "graphics.in.h"

Collaboration diagram for graphics_object:

Public Member Functions

 graphics_object (void)
 
 graphics_object (base_graphics_object *new_rep)
 
 graphics_object (const graphics_object &)=default
 
 ~graphics_object (void)=default
 
void add_property_listener (const std::string &nm, const octave_value &v, listener_mode mode=POSTSET)
 
void adopt (const graphics_handle &h)
 
void build_user_defaults_map (property_list::pval_map_type &def, const std::string go_name) const
 
void defaults (void) const
 
void delete_property_listener (const std::string &nm, const octave_value &v, listener_mode mode=POSTSET)
 
void finalize (void)
 
octave_value get (bool all=false) const
 
octave_value get (const caseless_str &name) const
 
octave_value get (const std::string &name) const
 
octave_value get (const char *name) const
 
octave_value get_alim (void) const
 
graphics_object get_ancestor (const std::string &type) const
 
octave_value get_clim (void) const
 
octave_value get_default (const caseless_str &name) const
 
octave_value get_defaults (void) const
 
property_list get_defaults_list (void) const
 
octave_value get_factory_default (const caseless_str &name) const
 
octave_value get_factory_defaults (void) const
 
property_list get_factory_defaults_list (void) const
 
graphics_handle get_handle (void) const
 
graphics_handle get_parent (void) const
 
base_propertiesget_properties (void)
 
const base_propertiesget_properties (void) const
 
graphics_toolkit get_toolkit (void) const
 
octave_value get_xlim (void) const
 
octave_value get_ylim (void) const
 
octave_value get_zlim (void) const
 
bool has_readonly_property (const caseless_str &pname) const
 
void initialize (void)
 
bool is_aliminclude (void) const
 
bool is_climinclude (void) const
 
bool is_handle_visible (void) const
 
bool is_xliminclude (void) const
 
bool is_yliminclude (void) const
 
bool is_zliminclude (void) const
 
bool isa (const std::string &go_name) const
 
void mark_modified (void)
 
 operator bool (void) const
 
graphics_objectoperator= (const graphics_object &)=default
 
void override_defaults (base_graphics_object &obj)
 
void override_defaults (void)
 
void remove_child (const graphics_handle &h)
 
void reparent (const graphics_handle &h)
 
void reset_default_properties (void)
 
void set (const caseless_str &name, const octave_value &val)
 
void set (const octave_value_list &args)
 
void set (const Array< std::string > &names, const Cell &values, octave_idx_type row)
 
void set (const octave_map &m)
 
void set_defaults (const std::string &mode)
 
void set_from_list (property_list &plist)
 
void set_value_or_default (const caseless_str &name, const octave_value &val)
 
std::string type (void) const
 
void update (int id)
 
void update_axis_limits (const std::string &axis_type)
 
void update_axis_limits (const std::string &axis_type, const graphics_handle &h)
 
bool valid_object (void) const
 
std::string value_as_string (const std::string &prop)
 
std::string values_as_string (void)
 
octave_map values_as_struct (void)
 

Private Attributes

std::shared_ptr< base_graphics_objectrep
 

Detailed Description

Definition at line 2660 of file graphics.in.h.

Constructor & Destructor Documentation

◆ graphics_object() [1/3]

graphics_object::graphics_object ( void  )
inline

Definition at line 2664 of file graphics.in.h.

◆ graphics_object() [2/3]

graphics_object::graphics_object ( base_graphics_object new_rep)
inline

Definition at line 2666 of file graphics.in.h.

◆ graphics_object() [3/3]

graphics_object::graphics_object ( const graphics_object )
default

◆ ~graphics_object()

graphics_object::~graphics_object ( void  )
default

Member Function Documentation

◆ add_property_listener()

void graphics_object::add_property_listener ( const std::string nm,
const octave_value v,
listener_mode  mode = POSTSET 
)
inline

Definition at line 2852 of file graphics.in.h.

Referenced by if().

◆ adopt()

void graphics_object::adopt ( const graphics_handle h)
inline

Definition at line 2780 of file graphics.in.h.

Referenced by adopt().

◆ build_user_defaults_map()

void graphics_object::build_user_defaults_map ( property_list::pval_map_type def,
const std::string  go_name 
) const
inline

◆ defaults()

void graphics_object::defaults ( void  ) const
inline

Definition at line 2784 of file graphics.in.h.

◆ delete_property_listener()

void graphics_object::delete_property_listener ( const std::string nm,
const octave_value v,
listener_mode  mode = POSTSET 
)
inline

Definition at line 2856 of file graphics.in.h.

◆ finalize()

void graphics_object::finalize ( void  )
inline

Definition at line 2862 of file graphics.in.h.

Referenced by finalize_r().

◆ get() [1/4]

◆ get() [2/4]

octave_value graphics_object::get ( const caseless_str name) const
inline

Definition at line 2713 of file graphics.in.h.

◆ get() [3/4]

octave_value graphics_object::get ( const std::string name) const
inline

Definition at line 2721 of file graphics.in.h.

◆ get() [4/4]

octave_value graphics_object::get ( const char *  name) const
inline

Definition at line 2726 of file graphics.in.h.

◆ get_alim()

octave_value graphics_object::get_alim ( void  ) const
inline

Definition at line 2817 of file graphics.in.h.

Referenced by get_children_limits().

◆ get_ancestor()

◆ get_clim()

octave_value graphics_object::get_clim ( void  ) const
inline

Definition at line 2820 of file graphics.in.h.

Referenced by get_children_limits().

◆ get_default()

octave_value graphics_object::get_default ( const caseless_str name) const
inline

◆ get_defaults()

octave_value graphics_object::get_defaults ( void  ) const
inline

Definition at line 2741 of file graphics.in.h.

◆ get_defaults_list()

property_list graphics_object::get_defaults_list ( void  ) const
inline

Definition at line 2743 of file graphics.in.h.

◆ get_factory_default()

octave_value graphics_object::get_factory_default ( const caseless_str name) const
inline

Definition at line 2736 of file graphics.in.h.

Referenced by base_graphics_object::get_factory_default().

◆ get_factory_defaults()

octave_value graphics_object::get_factory_defaults ( void  ) const
inline

Definition at line 2748 of file graphics.in.h.

◆ get_factory_defaults_list()

property_list graphics_object::get_factory_defaults_list ( void  ) const
inline

Definition at line 2753 of file graphics.in.h.

Referenced by base_graphics_object::reset_default_properties().

◆ get_handle()

◆ get_parent()

◆ get_properties() [1/2]

base_properties& graphics_object::get_properties ( void  )
inline

Definition at line 2788 of file graphics.in.h.

Referenced by axes::properties::calc_tightbox(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasWheelEvent(), property::create(), QtHandles::ObjectFactory::createObject(), delete_graphics_object(), do_cleanup_waitfor_listener(), children_property::do_delete_children(), gh_manager::do_execute_callback(), children_property::do_get_children(), gh_manager::do_post_callback(), gh_manager::do_process_events(), octave::opengl_renderer::draw(), octave::opengl_renderer::draw_all_lights(), octave::opengl_renderer::draw_axes_children(), octave::opengl_renderer::draw_uibuttongroup(), octave::opengl_renderer::draw_uipanel(), QtHandles::Panel::eventFilter(), set_event::execute(), F__zoom__(), QtHandles::Backend::finalize(), gnuplot_graphics_toolkit::finalize(), finalize_r(), G__osmesa_print__(), axes::properties::get_boundingbox(), uicontrol::properties::get_boundingbox(), uibuttongroup::properties::get_boundingbox(), uipanel::properties::get_boundingbox(), axes::properties::get_extent(), if(), QtHandles::Backend::initialize(), initialize_r(), QtHandles::Object::properties(), QtHandles::Utils::properties(), QtHandles::Backend::redraw_figure(), QtHandles::Container::resizeEvent(), octave::opengl_selector::select(), QtHandles::Canvas::select_object(), base_properties::set_parent(), QtHandles::ButtonGroup::update(), gnuplot_graphics_toolkit::update(), base_properties::update_autopos(), base_properties::update_boundingbox(), axes::properties::update_title_position(), base_properties::update_uicontextmenu(), axes::properties::update_units(), uicontrol::properties::update_units(), uibuttongroup::properties::update_units(), axes::properties::update_xlabel_position(), axes::properties::update_ylabel_position(), axes::properties::update_zlabel_position(), QtHandles::Canvas::updateCurrentPoint(), xcreatefcn(), xreset_default_properties(), and xset_gcbo().

◆ get_properties() [2/2]

const base_properties& graphics_object::get_properties ( void  ) const
inline

Definition at line 2790 of file graphics.in.h.

◆ get_toolkit()

graphics_toolkit graphics_object::get_toolkit ( void  ) const
inline

Definition at line 2850 of file graphics.in.h.

Referenced by F__get_frame__(), and base_properties::get_toolkit().

◆ get_xlim()

octave_value graphics_object::get_xlim ( void  ) const
inline

Definition at line 2823 of file graphics.in.h.

Referenced by get_children_limits().

◆ get_ylim()

octave_value graphics_object::get_ylim ( void  ) const
inline

Definition at line 2826 of file graphics.in.h.

Referenced by get_children_limits().

◆ get_zlim()

octave_value graphics_object::get_zlim ( void  ) const
inline

Definition at line 2829 of file graphics.in.h.

Referenced by get_children_limits().

◆ has_readonly_property()

bool graphics_object::has_readonly_property ( const caseless_str pname) const
inline

◆ initialize()

void graphics_object::initialize ( void  )
inline

Definition at line 2860 of file graphics.in.h.

Referenced by gh_manager::do_make_figure_handle(), initialize_r(), and xinitialize().

◆ is_aliminclude()

bool graphics_object::is_aliminclude ( void  ) const
inline

Definition at line 2832 of file graphics.in.h.

Referenced by get_children_limits().

◆ is_climinclude()

bool graphics_object::is_climinclude ( void  ) const
inline

Definition at line 2835 of file graphics.in.h.

Referenced by get_children_limits().

◆ is_handle_visible()

bool graphics_object::is_handle_visible ( void  ) const
inline

Definition at line 2847 of file graphics.in.h.

◆ is_xliminclude()

bool graphics_object::is_xliminclude ( void  ) const
inline

Definition at line 2838 of file graphics.in.h.

Referenced by get_children_limits().

◆ is_yliminclude()

bool graphics_object::is_yliminclude ( void  ) const
inline

Definition at line 2841 of file graphics.in.h.

Referenced by get_children_limits().

◆ is_zliminclude()

bool graphics_object::is_zliminclude ( void  ) const
inline

Definition at line 2844 of file graphics.in.h.

Referenced by get_children_limits().

◆ isa()

◆ mark_modified()

void graphics_object::mark_modified ( void  )
inline

Definition at line 2674 of file graphics.in.h.

Referenced by base_properties::mark_modified().

◆ operator bool()

graphics_object::operator bool ( void  ) const
inline

Definition at line 2810 of file graphics.in.h.

◆ operator=()

graphics_object& graphics_object::operator= ( const graphics_object )
default

◆ override_defaults() [1/2]

void graphics_object::override_defaults ( base_graphics_object obj)
inline

◆ override_defaults() [2/2]

void graphics_object::override_defaults ( void  )
inline

Definition at line 2681 of file graphics.in.h.

◆ remove_child()

void graphics_object::remove_child ( const graphics_handle h)
inline

Definition at line 2778 of file graphics.in.h.

Referenced by delete_graphics_object(), reparent(), and base_properties::set_parent().

◆ reparent()

void graphics_object::reparent ( const graphics_handle h)
inline

Definition at line 2782 of file graphics.in.h.

Referenced by reparent().

◆ reset_default_properties()

void graphics_object::reset_default_properties ( void  )
inline

Definition at line 2866 of file graphics.in.h.

Referenced by axes::properties::set_defaults().

◆ set() [1/4]

void graphics_object::set ( const caseless_str name,
const octave_value val 
)
inline

◆ set() [2/4]

void graphics_object::set ( const octave_value_list args)

Definition at line 2335 of file graphics.cc.

References error(), i, isstruct, octave_value_list::length(), nargin, pname, and val.

◆ set() [3/4]

void graphics_object::set ( const Array< std::string > &  names,
const Cell values,
octave_idx_type  row 
)

Definition at line 2376 of file graphics.cc.

References column, Array< T >::columns(), error(), k, Array< T >::numel(), pname, row, val, and values.

◆ set() [4/4]

void graphics_object::set ( const octave_map m)

◆ set_defaults()

void graphics_object::set_defaults ( const std::string mode)
inline

Definition at line 2709 of file graphics.in.h.

◆ set_from_list()

void graphics_object::set_from_list ( property_list plist)
inline

Definition at line 2692 of file graphics.in.h.

◆ set_value_or_default()

void graphics_object::set_value_or_default ( const caseless_str name,
const octave_value val 
)

◆ type()

◆ update()

void graphics_object::update ( int  id)
inline

Definition at line 2864 of file graphics.in.h.

Referenced by base_property::set().

◆ update_axis_limits() [1/2]

void graphics_object::update_axis_limits ( const std::string axis_type)
inline

◆ update_axis_limits() [2/2]

void graphics_object::update_axis_limits ( const std::string axis_type,
const graphics_handle h 
)
inline

Definition at line 2800 of file graphics.in.h.

◆ valid_object()

◆ value_as_string()

std::string graphics_object::value_as_string ( const std::string prop)
inline

Definition at line 2765 of file graphics.in.h.

Referenced by for().

◆ values_as_string()

std::string graphics_object::values_as_string ( void  )
inline

Definition at line 2763 of file graphics.in.h.

Referenced by for().

◆ values_as_struct()

octave_map graphics_object::values_as_struct ( void  )
inline

Definition at line 2770 of file graphics.in.h.

Referenced by for().

Member Data Documentation

◆ rep

std::shared_ptr<base_graphics_object> graphics_object::rep
private

Definition at line 2871 of file graphics.in.h.


The documentation for this class was generated from the following files: