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

#include "qt-graphics-toolkit.h"

Inheritance diagram for qt_graphics_toolkit:
Collaboration diagram for qt_graphics_toolkit:

Public Slots

void create_object (double handle)
 
void gh_callback_event (const graphics_handle &h, const std::string &name)
 
void gh_callback_event (const graphics_handle &h, const std::string &name, const octave_value &data)
 
void gh_set_event (const graphics_handle &h, const std::string &name, const octave_value &value)
 
void gh_set_event (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit)
 
void gh_set_event (const graphics_handle &h, const std::string &name, const octave_value &value, bool notify_toolkit, bool redraw_figure)
 
void interpreter_event (const octave::fcn_callback &fcn)
 
void interpreter_event (const octave::meth_callback &meth)
 

Signals

void create_object_signal (double handle)
 

Public Member Functions

 qt_graphics_toolkit (octave::interpreter &interp, octave::base_qobject &oct_qobj)
 
 ~qt_graphics_toolkit (void)=default
 
void finalize (const graphics_object &obj)
 
uint8NDArray get_pixels (const graphics_object &go) const
 
Matrix get_text_extent (const graphics_object &go) const
 
bool initialize (const graphics_object &obj)
 
bool is_valid (void) const
 
void print_figure (const graphics_object &go, const std::string &term, const std::string &file_cmd, const std::string &) const
 
void redraw_figure (const graphics_object &h) const
 
void show_figure (const graphics_object &h) const
 
void update (const graphics_object &obj, int pId)
 

Static Public Member Functions

static ObjecttoolkitObject (const graphics_object &go)
 
static ObjectProxytoolkitObjectProxy (const graphics_object &go)
 

Private Attributes

octave::interpreter & m_interpreter
 
octave::base_qobject & m_octave_qobj
 

Detailed Description

Definition at line 42 of file qt-graphics-toolkit.h.

Constructor & Destructor Documentation

◆ qt_graphics_toolkit()

qt_graphics_toolkit::qt_graphics_toolkit ( octave::interpreter &  interp,
octave::base_qobject &  oct_qobj 
)

Definition at line 100 of file qt-graphics-toolkit.cc.

References create_object(), and create_object_signal().

◆ ~qt_graphics_toolkit()

qt_graphics_toolkit::~qt_graphics_toolkit ( void  )
default

Member Function Documentation

◆ create_object

◆ create_object_signal

void qt_graphics_toolkit::create_object_signal ( double  handle)
signal

Referenced by qt_graphics_toolkit(), and initialize().

◆ finalize()

void qt_graphics_toolkit::finalize ( const graphics_object &  obj)

◆ get_pixels()

uint8NDArray qt_graphics_toolkit::get_pixels ( const graphics_object &  go) const

Definition at line 266 of file qt-graphics-toolkit.cc.

References ObjectProxy::get_pixels(), and toolkitObjectProxy().

◆ get_text_extent()

◆ gh_callback_event [1/2]

void qt_graphics_toolkit::gh_callback_event ( const graphics_handle h,
const std::string &  name 
)
slot

Definition at line 466 of file qt-graphics-toolkit.cc.

References m_interpreter.

◆ gh_callback_event [2/2]

void qt_graphics_toolkit::gh_callback_event ( const graphics_handle h,
const std::string &  name,
const octave_value data 
)
slot

Definition at line 474 of file qt-graphics-toolkit.cc.

References m_interpreter.

◆ gh_set_event [1/3]

void qt_graphics_toolkit::gh_set_event ( const graphics_handle h,
const std::string &  name,
const octave_value value 
)
slot

Definition at line 483 of file qt-graphics-toolkit.cc.

References m_interpreter.

◆ gh_set_event [2/3]

void qt_graphics_toolkit::gh_set_event ( const graphics_handle h,
const std::string &  name,
const octave_value value,
bool  notify_toolkit 
)
slot

Definition at line 492 of file qt-graphics-toolkit.cc.

References m_interpreter.

◆ gh_set_event [3/3]

void qt_graphics_toolkit::gh_set_event ( const graphics_handle h,
const std::string &  name,
const octave_value value,
bool  notify_toolkit,
bool  redraw_figure 
)
slot

Definition at line 502 of file qt-graphics-toolkit.cc.

References m_interpreter, and redraw_figure().

◆ initialize()

bool qt_graphics_toolkit::initialize ( const graphics_object &  obj)

◆ interpreter_event [1/2]

void qt_graphics_toolkit::interpreter_event ( const octave::fcn_callback fcn)
slot

Definition at line 361 of file qt-graphics-toolkit.cc.

References m_interpreter.

◆ interpreter_event [2/2]

void qt_graphics_toolkit::interpreter_event ( const octave::meth_callback meth)
slot

Definition at line 369 of file qt-graphics-toolkit.cc.

References m_interpreter.

◆ is_valid()

bool qt_graphics_toolkit::is_valid ( void  ) const
inline

Definition at line 69 of file qt-graphics-toolkit.h.

◆ print_figure()

void qt_graphics_toolkit::print_figure ( const graphics_object &  go,
const std::string &  term,
const std::string &  file_cmd,
const std::string &   
) const

◆ redraw_figure()

void qt_graphics_toolkit::redraw_figure ( const graphics_object &  h) const

Definition at line 229 of file qt-graphics-toolkit.cc.

References ObjectProxy::redraw(), and toolkitObjectProxy().

Referenced by gh_set_event().

◆ show_figure()

void qt_graphics_toolkit::show_figure ( const graphics_object &  h) const

Definition at line 241 of file qt-graphics-toolkit.cc.

References ObjectProxy::show(), and toolkitObjectProxy().

◆ toolkitObject()

◆ toolkitObjectProxy()

ObjectProxy * qt_graphics_toolkit::toolkitObjectProxy ( const graphics_object &  go)
static

◆ update()

void qt_graphics_toolkit::update ( const graphics_object &  obj,
int  pId 
)

Member Data Documentation

◆ m_interpreter

octave::interpreter& qt_graphics_toolkit::m_interpreter
private

◆ m_octave_qobj

octave::base_qobject& qt_graphics_toolkit::m_octave_qobj
private

Definition at line 123 of file qt-graphics-toolkit.h.

Referenced by create_object().


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