GNU Octave  6.2.0
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 (base_graphics_object *new_rep)
 
 graphics_object (const graphics_object &)=default
 
 graphics_object (void)
 
 ~graphics_object (void)=default
 
void add_property_listener (const std::string &nm, const octave_value &v, listener_mode mode=GCB_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=GCB_POSTSET)
 
void finalize (void)
 
octave_value get (bool all=false) const
 
octave_value get (const caseless_str &name) const
 
octave_value get (const char *name) const
 
octave_value get (const std::string &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
 
octave::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_all_listeners (void)
 
void remove_child (const graphics_handle &h)
 
void reparent (const graphics_handle &h)
 
void reset_default_properties (void)
 
void set (const Array< std::string > &names, const Cell &values, octave_idx_type row)
 
void set (const caseless_str &name, const octave_value &val)
 
void set (const octave_map &m)
 
void set (const octave_value_list &args)
 
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 2695 of file graphics.in.h.

Constructor & Destructor Documentation

◆ graphics_object() [1/3]

graphics_object::graphics_object ( void  )
inline

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

◆ graphics_object() [2/3]

graphics_object::graphics_object ( base_graphics_object new_rep)
inline

Definition at line 2701 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 = GCB_POSTSET 
)
inline

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

Referenced by Faddlistener(), and Fwaitfor().

◆ adopt()

void graphics_object::adopt ( const graphics_handle h)
inline

Definition at line 2821 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 2825 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 = GCB_POSTSET 
)
inline

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

Referenced by Fdellistener().

◆ finalize()

void graphics_object::finalize ( void  )
inline

Definition at line 2905 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 2748 of file graphics.in.h.

◆ get() [3/4]

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

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

◆ get() [4/4]

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

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

◆ get_alim()

octave_value graphics_object::get_alim ( void  ) const
inline

Definition at line 2858 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 2861 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 2776 of file graphics.in.h.

◆ get_defaults_list()

property_list graphics_object::get_defaults_list ( void  ) const
inline

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

◆ get_factory_default()

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

Definition at line 2771 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 2783 of file graphics.in.h.

◆ get_factory_defaults_list()

property_list graphics_object::get_factory_defaults_list ( void  ) const
inline

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

Referenced by base_graphics_object::reset_default_properties().

◆ get_handle()

◆ get_parent()

graphics_handle graphics_object::get_parent ( void  ) const
inline

◆ get_properties() [1/2]

base_properties& graphics_object::get_properties ( void  )
inline

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

Referenced by axes::properties::adopt(), hggroup::properties::adopt(), uibuttongroup::properties::adopt(), calc_dimensions(), QtHandles::Canvas::canvasMousePressEvent(), QtHandles::Canvas::canvasWheelEvent(), convert_text_position(), property::create(), QtHandles::qt_graphics_toolkit::create_object(), delete_graphics_object(), do_cleanup_waitfor_listener(), children_property::do_delete_children(), children_property::do_get_children(), 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(), gh_manager::execute_callback(), F__go_figure__(), F__image_pixel_size__(), F__show_figure__(), F__update_normals__(), F__zoom__(), Faddproperty(), Fdrawnow(), gnuplot_graphics_toolkit::finalize(), QtHandles::qt_graphics_toolkit::finalize(), finalize_r(), Fwaitfor(), text::properties::get___fontsize_points__(), axes::properties::get_boundingbox(), uicontrol::properties::get_boundingbox(), uibuttongroup::properties::get_boundingbox(), uipanel::properties::get_boundingbox(), uitable::properties::get_boundingbox(), base_properties::get_children_of_type(), patch::properties::get_do_lighting(), surface::properties::get_do_lighting(), axes::properties::get_extent(), QtHandles::qt_graphics_toolkit::get_text_extent(), light::initialize(), QtHandles::qt_graphics_toolkit::initialize(), initialize_r(), gh_manager::make_graphics_handle(), gh_manager::post_callback(), gh_manager::process_events(), QtHandles::Utils::properties(), QtHandles::Object::properties(), QtHandles::qt_graphics_toolkit::redraw_figure(), axes::properties::remove_child(), hggroup::properties::remove_child(), QtHandles::Container::resizeEvent(), octave::opengl_selector::select(), QtHandles::Canvas::select_object(), base_properties::set_parent(), QtHandles::qt_graphics_toolkit::show_figure(), gnuplot_graphics_toolkit::update(), QtHandles::ButtonGroup::update(), base_properties::update_autopos(), base_properties::update_boundingbox(), text::properties::update_fontunits(), update_text_pos(), axes::properties::update_title_position(), base_properties::update_uicontextmenu(), axes::properties::update_units(), uicontrol::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 2831 of file graphics.in.h.

◆ get_toolkit()

octave::graphics_toolkit graphics_object::get_toolkit ( void  ) const
inline

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

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

◆ get_xlim()

octave_value graphics_object::get_xlim ( void  ) const
inline

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

Referenced by get_children_limits().

◆ get_ylim()

octave_value graphics_object::get_ylim ( void  ) const
inline

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

Referenced by get_children_limits().

◆ get_zlim()

octave_value graphics_object::get_zlim ( void  ) const
inline

Definition at line 2870 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

◆ is_aliminclude()

bool graphics_object::is_aliminclude ( void  ) const
inline

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

Referenced by get_children_limits().

◆ is_climinclude()

bool graphics_object::is_climinclude ( void  ) const
inline

Definition at line 2876 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 2888 of file graphics.in.h.

◆ is_xliminclude()

bool graphics_object::is_xliminclude ( void  ) const
inline

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

Referenced by get_children_limits().

◆ is_yliminclude()

bool graphics_object::is_yliminclude ( void  ) const
inline

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

Referenced by get_children_limits().

◆ is_zliminclude()

bool graphics_object::is_zliminclude ( void  ) const
inline

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

Referenced by get_children_limits().

◆ isa()

◆ mark_modified()

void graphics_object::mark_modified ( void  )
inline

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

Referenced by base_properties::mark_modified().

◆ operator bool()

graphics_object::operator bool ( void  ) const
inline

Definition at line 2851 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 2716 of file graphics.in.h.

◆ remove_all_listeners()

void graphics_object::remove_all_listeners ( void  )
inline

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

◆ remove_child()

void graphics_object::remove_child ( const graphics_handle h)
inline

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

Referenced by gh_manager::free(), reparent(), and base_properties::set_parent().

◆ reparent()

void graphics_object::reparent ( const graphics_handle h)
inline

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

Referenced by reparent().

◆ reset_default_properties()

void graphics_object::reset_default_properties ( void  )
inline

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

Referenced by Freset(), and axes::properties::set_defaults().

◆ set() [1/4]

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

Definition at line 2564 of file graphics.cc.

References Array< T >::columns(), error(), and Array< T >::numel().

◆ set() [2/4]

◆ set() [3/4]

void graphics_object::set ( const octave_map m)

Definition at line 2631 of file graphics.cc.

References m, and octave_value().

◆ set() [4/4]

void graphics_object::set ( const octave_value_list args)

Definition at line 2523 of file graphics.cc.

References error(), octave_value_list::length(), and figure::set().

◆ set_defaults()

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

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

◆ set_from_list()

void graphics_object::set_from_list ( property_list plist)
inline

Definition at line 2727 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 2907 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 2841 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 2804 of file graphics.in.h.

Referenced by Fset().

◆ values_as_string()

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

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

Referenced by Fset().

◆ values_as_struct()

octave_map graphics_object::values_as_struct ( void  )
inline

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

Referenced by Fset().

Member Data Documentation

◆ rep

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

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


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