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

#include "graphics-toolkit.h"

Inheritance diagram for octave::base_graphics_toolkit:
Collaboration diagram for octave::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 47 of file graphics-toolkit.h.

Constructor & Destructor Documentation

◆ base_graphics_toolkit()

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

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

◆ ~base_graphics_toolkit()

virtual octave::base_graphics_toolkit::~base_graphics_toolkit ( void  )
virtualdefault

Member Function Documentation

◆ close()

virtual void octave::base_graphics_toolkit::close ( void  )
inlinevirtual

Reimplemented in gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ finalize() [1/2]

void octave::base_graphics_toolkit::finalize ( const graphics_handle h)

◆ finalize() [2/2]

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

Reimplemented in QtHandles::qt_graphics_toolkit, and gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

Referenced by finalize().

◆ get_canvas_size()

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

Reimplemented in gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ get_name()

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

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

References m_name.

◆ get_pixels()

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

Reimplemented in QtHandles::qt_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ get_screen_resolution()

virtual double octave::base_graphics_toolkit::get_screen_resolution ( void  ) const
inlinevirtual

Reimplemented in gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ get_screen_size()

virtual Matrix octave::base_graphics_toolkit::get_screen_size ( void  ) const
inlinevirtual

Reimplemented in gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ get_text_extent()

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

Reimplemented in QtHandles::qt_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ gripe_if_tkit_invalid()

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

◆ initialize() [1/2]

bool octave::base_graphics_toolkit::initialize ( const graphics_handle h)

◆ initialize() [2/2]

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

Reimplemented in QtHandles::qt_graphics_toolkit, and gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

Referenced by initialize().

◆ is_valid()

virtual bool octave::base_graphics_toolkit::is_valid ( void  ) const
inlinevirtual

Reimplemented in gnuplot_graphics_toolkit, and QtHandles::qt_graphics_toolkit.

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

Referenced by gripe_if_tkit_invalid().

◆ print_figure()

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

Reimplemented in QtHandles::qt_graphics_toolkit, and gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ redraw_figure()

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

Reimplemented in QtHandles::qt_graphics_toolkit, and gnuplot_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ show_figure()

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

Reimplemented in QtHandles::qt_graphics_toolkit.

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

References gripe_if_tkit_invalid().

◆ update() [1/2]

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

◆ update() [2/2]

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

Reimplemented in QtHandles::qt_graphics_toolkit, and gnuplot_graphics_toolkit.

Definition at line 121 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 51 of file graphics-toolkit.h.

Member Data Documentation

◆ m_name

std::string octave::base_graphics_toolkit::m_name
private

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

Referenced by get_name().


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