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

#include "graphics-toolkit.h"

Collaboration diagram for graphics_toolkit:

Public Member Functions

 graphics_toolkit (base_graphics_toolkit *new_rep)
 
 graphics_toolkit (const graphics_toolkit &b)=default
 
 graphics_toolkit (const std::string &name="unknown")
 
 ~graphics_toolkit (void)=default
 
void close (void)
 
void finalize (const graphics_handle &h)
 
void finalize (const graphics_object &go)
 
Matrix get_canvas_size (const graphics_handle &fh) const
 
std::string get_name (void) const
 
uint8NDArray get_pixels (const graphics_object &go) const
 
double get_screen_resolution (void) const
 
Matrix get_screen_size (void) const
 
Matrix get_text_extent (const graphics_object &go) const
 
bool initialize (const graphics_handle &h)
 
bool initialize (const graphics_object &go)
 
 operator bool (void) const
 
graphics_toolkitoperator= (const graphics_toolkit &b)=default
 
void print_figure (const graphics_object &go, const std::string &term, const std::string &file, const std::string &debug_file="") const
 
void redraw_figure (const graphics_object &go) const
 
void show_figure (const graphics_object &go) const
 
void update (const graphics_handle &h, int id)
 
void update (const graphics_object &go, int id)
 

Private Attributes

std::shared_ptr< base_graphics_toolkitm_rep
 

Detailed Description

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

Constructor & Destructor Documentation

◆ graphics_toolkit() [1/3]

graphics_toolkit::graphics_toolkit ( const std::string &  name = "unknown")
inline

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

◆ graphics_toolkit() [2/3]

graphics_toolkit::graphics_toolkit ( base_graphics_toolkit new_rep)
inline

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

References error(), and m_rep.

◆ graphics_toolkit() [3/3]

graphics_toolkit::graphics_toolkit ( const graphics_toolkit b)
default

◆ ~graphics_toolkit()

graphics_toolkit::~graphics_toolkit ( void  )
default

Member Function Documentation

◆ close()

void graphics_toolkit::close ( void  )
inline

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

References m_rep.

◆ finalize() [1/2]

void graphics_toolkit::finalize ( const graphics_handle h)
inline

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

References m_rep.

◆ finalize() [2/2]

void graphics_toolkit::finalize ( const graphics_object &  go)
inline

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

References m_rep.

◆ get_canvas_size()

Matrix graphics_toolkit::get_canvas_size ( const graphics_handle fh) const
inline

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

References m_rep.

◆ get_name()

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

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

References m_rep.

Referenced by gtk_manager::load_toolkit().

◆ get_pixels()

uint8NDArray graphics_toolkit::get_pixels ( const graphics_object &  go) const
inline

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

References m_rep.

◆ get_screen_resolution()

double graphics_toolkit::get_screen_resolution ( void  ) const
inline

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

References m_rep.

◆ get_screen_size()

Matrix graphics_toolkit::get_screen_size ( void  ) const
inline

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

References m_rep.

◆ get_text_extent()

Matrix graphics_toolkit::get_text_extent ( const graphics_object &  go) const
inline

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

References m_rep.

◆ initialize() [1/2]

bool graphics_toolkit::initialize ( const graphics_handle h)
inline

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

References m_rep.

◆ initialize() [2/2]

bool graphics_toolkit::initialize ( const graphics_object &  go)
inline

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

References m_rep.

◆ operator bool()

graphics_toolkit::operator bool ( void  ) const
inline

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

References m_rep.

◆ operator=()

graphics_toolkit& graphics_toolkit::operator= ( const graphics_toolkit b)
default

◆ print_figure()

void graphics_toolkit::print_figure ( const graphics_object &  go,
const std::string &  term,
const std::string &  file,
const std::string &  debug_file = "" 
) const
inline

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

References m_rep.

◆ redraw_figure()

void graphics_toolkit::redraw_figure ( const graphics_object &  go) const
inline

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

References m_rep.

◆ show_figure()

void graphics_toolkit::show_figure ( const graphics_object &  go) const
inline

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

References m_rep.

◆ update() [1/2]

void graphics_toolkit::update ( const graphics_handle h,
int  id 
)
inline

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

References m_rep.

◆ update() [2/2]

void graphics_toolkit::update ( const graphics_object &  go,
int  id 
)
inline

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

References m_rep.

Member Data Documentation

◆ m_rep


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