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

#include "graphics.h"

Inheritance diagram for base_graphics_object:
axes figure hggroup image light line patch root_figure scatter surface text uibuttongroup uicontextmenu uicontrol uimenu uipanel uipushtool uitable uitoggletool uitoolbar

Public Member Functions

 base_graphics_object ()
 
virtual ~base_graphics_object ()=default
 
virtual void add_property_listener (const std::string &nm, const octave_value &v, listener_mode mode=GCB_POSTSET)
 
virtual void adopt (const graphics_handle &h)
 
void build_user_defaults_map (property_list::pval_map_type &def, const std::string go_name) const
 
virtual void defaults () const
 
virtual void delete_property_listener (const std::string &nm, const octave_value &v, listener_mode mode=GCB_POSTSET)
 
octave_value get (bool all=false) const
 
virtual octave_value get (const caseless_str &pname) const
 
virtual octave_value get_default (const caseless_str &) const
 
virtual octave_value get_defaults () const
 
virtual property_list get_defaults_list () const
 
virtual octave_value get_factory_default (const caseless_str &) const
 
virtual octave_value get_factory_defaults () const
 
virtual property_list get_factory_defaults_list () const
 
graphics_handle get_handle () const
 
virtual graphics_handle get_parent () const
 
virtual base_propertiesget_properties ()
 
virtual const base_propertiesget_properties () const
 
virtual octave::graphics_toolkit get_toolkit () const
 
virtual bool has_readonly_property (const caseless_str &pname) const
 
bool isa (const std::string &go_name) const
 
virtual void mark_modified ()
 
virtual void override_defaults (base_graphics_object &obj)
 
virtual void remove_all_listeners ()
 
virtual void remove_child (const graphics_handle &h, bool from_root=false)
 
virtual void reparent (const graphics_handle &np)
 
virtual void reset_default_properties ()
 
virtual void set (const caseless_str &pname, const octave_value &pval)
 
virtual void set_defaults (const std::string &)
 
virtual void set_from_list (property_list &plist)
 
virtual std::string type () const
 
virtual void update_axis_limits (const std::string &axis_type)
 
virtual void update_axis_limits (const std::string &axis_type, const graphics_handle &h)
 
virtual bool valid_object () const
 
bool valid_toolkit_object () const
 
virtual std::string value_as_string (const std::string &prop)
 
virtual std::string values_as_string ()
 
virtual octave_scalar_map values_as_struct ()
 

Protected Member Functions

virtual void finalize (const graphics_object &go)
 
virtual void initialize (const graphics_object &go)
 
virtual void update (const graphics_object &go, int id)
 

Protected Attributes

bool m_toolkit_flag
 

Friends

class graphics_object
 

Detailed Description

Definition at line 2733 of file graphics.h.

Constructor & Destructor Documentation

◆ base_graphics_object()

base_graphics_object::base_graphics_object ( )
inline

Definition at line 2738 of file graphics.h.

◆ ~base_graphics_object()

virtual base_graphics_object::~base_graphics_object ( )
virtualdefault

Member Function Documentation

◆ add_property_listener()

virtual void base_graphics_object::add_property_listener ( const std::string &  nm,
const octave_value v,
listener_mode  mode = GCB_POSTSET 
)
inlinevirtual

◆ adopt()

virtual void base_graphics_object::adopt ( const graphics_handle h)
inlinevirtual

◆ build_user_defaults_map()

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

◆ defaults()

virtual void base_graphics_object::defaults ( ) const
inlinevirtual

◆ delete_property_listener()

virtual void base_graphics_object::delete_property_listener ( const std::string &  nm,
const octave_value v,
listener_mode  mode = GCB_POSTSET 
)
inlinevirtual

◆ finalize()

virtual void base_graphics_object::finalize ( const graphics_object go)
inlineprotectedvirtual

Definition at line 2964 of file graphics.h.

References graphics_object::get_toolkit().

◆ get() [1/2]

octave_value base_graphics_object::get ( bool  all = false) const
inline

◆ get() [2/2]

virtual octave_value base_graphics_object::get ( const caseless_str pname) const
inlinevirtual

◆ get_default()

octave_value base_graphics_object::get_default ( const caseless_str pname) const
virtual

◆ get_defaults()

virtual octave_value base_graphics_object::get_defaults ( ) const
inlinevirtual

Reimplemented in uitoolbar, axes, figure, and root_figure.

Definition at line 2806 of file graphics.h.

References error().

◆ get_defaults_list()

virtual property_list base_graphics_object::get_defaults_list ( ) const
inlinevirtual

Reimplemented in uitoolbar, axes, figure, and root_figure.

Definition at line 2811 of file graphics.h.

References error(), and graphics_object::valid_object().

◆ get_factory_default()

octave_value base_graphics_object::get_factory_default ( const caseless_str name) const
virtual

◆ get_factory_defaults()

virtual octave_value base_graphics_object::get_factory_defaults ( ) const
inlinevirtual

Reimplemented in root_figure.

Definition at line 2819 of file graphics.h.

References error().

◆ get_factory_defaults_list()

virtual property_list base_graphics_object::get_factory_defaults_list ( ) const
inlinevirtual

Reimplemented in root_figure.

Definition at line 2824 of file graphics.h.

References error().

◆ get_handle()

graphics_handle base_graphics_object::get_handle ( ) const
inline

◆ get_parent()

◆ get_properties() [1/2]

virtual base_properties& base_graphics_object::get_properties ( )
inlinevirtual

◆ get_properties() [2/2]

virtual const base_properties& base_graphics_object::get_properties ( ) const
inlinevirtual

◆ get_toolkit()

virtual octave::graphics_toolkit base_graphics_object::get_toolkit ( ) const
inlinevirtual

◆ has_readonly_property()

virtual bool base_graphics_object::has_readonly_property ( const caseless_str pname) const
inlinevirtual

◆ initialize()

virtual void base_graphics_object::initialize ( const graphics_object go)
inlineprotectedvirtual

Reimplemented in scatter, patch, light, and axes.

Definition at line 2958 of file graphics.h.

References graphics_object::get_toolkit().

Referenced by axes::initialize(), light::initialize(), patch::initialize(), and scatter::initialize().

◆ isa()

bool base_graphics_object::isa ( const std::string &  go_name) const
inline

Definition at line 2924 of file graphics.h.

References graphics_object::type().

Referenced by graphics_object::get_ancestor().

◆ mark_modified()

◆ override_defaults()

virtual void base_graphics_object::override_defaults ( base_graphics_object obj)
inlinevirtual

◆ remove_all_listeners()

void base_graphics_object::remove_all_listeners ( )
virtual

◆ remove_child()

virtual void base_graphics_object::remove_child ( const graphics_handle h,
bool  from_root = false 
)
inlinevirtual

◆ reparent()

virtual void base_graphics_object::reparent ( const graphics_handle np)
inlinevirtual

◆ reset_default_properties()

void base_graphics_object::reset_default_properties ( )
virtual

◆ set()

virtual void base_graphics_object::set ( const caseless_str pname,
const octave_value pval 
)
inlinevirtual

◆ set_defaults()

virtual void base_graphics_object::set_defaults ( const std::string &  )
inlinevirtual

Reimplemented in axes.

Definition at line 2778 of file graphics.h.

References error().

◆ set_from_list()

◆ type()

virtual std::string base_graphics_object::type ( ) const
inlinevirtual

◆ update()

virtual void base_graphics_object::update ( const graphics_object go,
int  id 
)
inlineprotectedvirtual

Definition at line 2973 of file graphics.h.

References graphics_object::get_toolkit().

◆ update_axis_limits() [1/2]

void base_graphics_object::update_axis_limits ( const std::string &  axis_type)
virtual

◆ update_axis_limits() [2/2]

void base_graphics_object::update_axis_limits ( const std::string &  axis_type,
const graphics_handle h 
)
virtual

◆ valid_object()

virtual bool base_graphics_object::valid_object ( ) const
inlinevirtual

◆ valid_toolkit_object()

bool base_graphics_object::valid_toolkit_object ( ) const
inline

Definition at line 2916 of file graphics.h.

◆ value_as_string()

std::string base_graphics_object::value_as_string ( const std::string &  prop)
virtual

◆ values_as_string()

◆ values_as_struct()

Friends And Related Function Documentation

◆ graphics_object

friend class graphics_object
friend

Definition at line 2736 of file graphics.h.

Referenced by graphics_object::get_ancestor().

Member Data Documentation

◆ m_toolkit_flag

bool base_graphics_object::m_toolkit_flag
protected

Definition at line 2983 of file graphics.h.


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