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

#include "graphics-toolkit.h"

Collaboration diagram for base_graphics_toolkit:

Public Member Functions

 base_graphics_toolkit (const std::string &nm)
 
virtual ~base_graphics_toolkit (void)=default
 
virtual void close (void)
 
void finalize (const graphics_handle &)
 
virtual void finalize (const graphics_object &)
 
virtual Matrix get_canvas_size (const graphics_handle &) const
 
std::string get_name (void) const
 
virtual uint8NDArray get_pixels (const graphics_object &) const
 
virtual double get_screen_resolution (void) const
 
virtual Matrix get_screen_size (void) const
 
virtual Matrix get_text_extent (const graphics_object &) const
 
bool initialize (const graphics_handle &)
 
virtual bool initialize (const graphics_object &)
 
virtual bool is_valid (void) const
 
virtual void print_figure (const graphics_object &, const std::string &, const std::string &, const std::string &="") const
 
virtual void redraw_figure (const graphics_object &) const
 
virtual void show_figure (const graphics_object &) const
 
void update (const graphics_handle &, int)
 
virtual void update (const graphics_object &, int)
 

Private Member Functions

void gripe_if_tkit_invalid (const std::string &fname) const
 

Private Attributes

std::string m_name
 

Friends

class graphics_toolkit
 

Detailed Description

Definition at line 46 of file graphics-toolkit.h.

Constructor & Destructor Documentation

◆ base_graphics_toolkit()

base_graphics_toolkit::base_graphics_toolkit ( const std::string &  nm)
inline

Definition at line 54 of file graphics-toolkit.h.

◆ ~base_graphics_toolkit()

virtual base_graphics_toolkit::~base_graphics_toolkit ( void  )
virtualdefault

Member Function Documentation

◆ close()

virtual void base_graphics_toolkit::close ( void  )
inlinevirtual

Definition at line 149 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

◆ finalize() [1/2]

void base_graphics_toolkit::finalize ( const graphics_handle h)

Definition at line 57 of file graphics-toolkit.cc.

References __get_gh_manager__(), and finalize().

◆ finalize() [2/2]

virtual void base_graphics_toolkit::finalize ( const graphics_object &  )
inlinevirtual

Definition at line 141 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

Referenced by finalize().

◆ get_canvas_size()

virtual Matrix base_graphics_toolkit::get_canvas_size ( const graphics_handle ) const
inlinevirtual

Definition at line 93 of file graphics-toolkit.h.

References gripe_if_tkit_invalid(), and Matrix.

◆ get_name()

std::string base_graphics_toolkit::get_name ( void  ) const
inline

Definition at line 60 of file graphics-toolkit.h.

References m_name.

◆ get_pixels()

virtual uint8NDArray base_graphics_toolkit::get_pixels ( const graphics_object &  ) const
inlinevirtual

Definition at line 87 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

◆ get_screen_resolution()

virtual double base_graphics_toolkit::get_screen_resolution ( void  ) const
inlinevirtual

Definition at line 99 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

◆ get_screen_size()

virtual Matrix base_graphics_toolkit::get_screen_size ( void  ) const
inlinevirtual

Definition at line 105 of file graphics-toolkit.h.

References gripe_if_tkit_invalid(), and Matrix.

◆ get_text_extent()

virtual Matrix base_graphics_toolkit::get_text_extent ( const graphics_object &  ) const
inlinevirtual

Definition at line 111 of file graphics-toolkit.h.

References gripe_if_tkit_invalid(), and Matrix.

◆ gripe_if_tkit_invalid()

void base_graphics_toolkit::gripe_if_tkit_invalid ( const std::string &  fname) const
inlineprivate

◆ initialize() [1/2]

bool base_graphics_toolkit::initialize ( const graphics_handle h)

Definition at line 47 of file graphics-toolkit.cc.

References __get_gh_manager__(), and initialize().

◆ initialize() [2/2]

virtual bool base_graphics_toolkit::initialize ( const graphics_object &  )
inlinevirtual

Definition at line 130 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

Referenced by initialize().

◆ is_valid()

virtual bool base_graphics_toolkit::is_valid ( void  ) const
inlinevirtual

Definition at line 65 of file graphics-toolkit.h.

Referenced by gripe_if_tkit_invalid().

◆ print_figure()

virtual void base_graphics_toolkit::print_figure ( const graphics_object &  ,
const std::string &  ,
const std::string &  ,
const std::string &  = "" 
) const
inlinevirtual

Definition at line 80 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

◆ redraw_figure()

virtual void base_graphics_toolkit::redraw_figure ( const graphics_object &  ) const
inlinevirtual

Definition at line 70 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

◆ show_figure()

virtual void base_graphics_toolkit::show_figure ( const graphics_object &  ) const
inlinevirtual

Definition at line 75 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

◆ update() [1/2]

void base_graphics_toolkit::update ( const graphics_handle h,
int  id 
)

Definition at line 37 of file graphics-toolkit.cc.

References __get_gh_manager__(), and update().

◆ update() [2/2]

virtual void base_graphics_toolkit::update ( const graphics_object &  ,
int   
)
inlinevirtual

Definition at line 120 of file graphics-toolkit.h.

References gripe_if_tkit_invalid().

Referenced by update().

Friends And Related Function Documentation

◆ graphics_toolkit

friend class graphics_toolkit
friend

Definition at line 50 of file graphics-toolkit.h.

Member Data Documentation

◆ m_name

std::string base_graphics_toolkit::m_name
private

Definition at line 156 of file graphics-toolkit.h.

Referenced by get_name().


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