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

#include "Figure.h"

Inheritance diagram for QtHandles::Figure:
Collaboration diagram for QtHandles::Figure:

Public Slots

void objectDestroyed (QObject *obj=nullptr)
 
void slotFinalize (void)
 
uint8NDArray slotGetPixels (void)
 
void slotPrint (const QString &file_cmd, const QString &term)
 
void slotRedraw (void)
 
void slotShow (void)
 
void slotUpdate (int pId)
 

Signals

void asyncUpdate (void)
 
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)
 

Public Member Functions

 Figure (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go, FigureWindow *win)
 
 ~Figure (void)
 
void do_connections (const QObject *receiver, const QObject *emitter=nullptr)
 
void eventNotifyAfter (QObject *watched, QEvent *event)
 
bool eventNotifyBefore (QObject *watched, QEvent *event)
 
QString fileName (void)
 
ContainerinnerContainer (void)
 
QWidgetmenu (void)
 
MouseMode mouseMode (void)
 
graphics_object object (void) const
 
base_propertiesproperties (void)
 
template<typename T >
T::properties & properties (void)
 
const base_propertiesproperties (void) const
 
template<typename T >
const T::properties & properties (void) const
 
virtual QObjectqObject (void)
 
template<typename T >
T * qWidget (void)
 
void setFileName (const QString &name)
 
void updateStatusBar (ColumnVector pt)
 

Static Public Member Functions

static Figurecreate (octave::base_qobject &oct_qobj, octave::interpreter &interp, const graphics_object &go)
 
static ObjectfromQObject (QObject *obj)
 

Protected Types

enum  UpdateBoundingBoxFlag { UpdateBoundingBoxPosition = 0x1 , UpdateBoundingBoxSize = 0x2 , UpdateBoundingBoxAll = 0x3 }
 

Protected Member Functions

void beingDeleted (void)
 
virtual void finalize (void)
 
void init (QObject *obj, bool callBase=false)
 
void print (const QString &file_cmd, const QString &term)
 
void redraw (void)
 
void show (void)
 
void update (int pId)
 
void updateBoundingBox (bool internal=false, int flags=0)
 

Static Protected Member Functions

static ObjectparentObject (octave::interpreter &interp, const graphics_object &go)
 

Protected Attributes

graphics_object m_go
 
graphics_handle m_handle
 
octave::interpreterm_interpreter
 
octave::base_qobjectm_octave_qobj
 
QObjectm_qobject
 

Private Slots

void figureWindowShown ()
 
void screenChanged (QScreen *)
 
void updateContainer (void)
 
void updateFigureHeight (int delta_h)
 

Private Member Functions

void addCustomToolBar (QToolBar *bar, bool visible, bool isdefault)
 
void enableMouseTracking (void)
 
void set_geometry (QRect r)
 
void showCustomToolBar (QToolBar *bar, bool visible)
 
void showFigureStatusBar (bool visible)
 

Private Attributes

bool m_blockUpdates
 
Containerm_container
 
QToolBar * m_figureToolBar
 
QRect m_innerRect
 
MenuBarm_menuBar
 
QRect m_outerRect
 
QImage m_pointer_cdata
 
int m_previousHeight
 
bool m_resizable
 
QStatusBar * m_statusBar
 

Friends

class ToolBar
 

Detailed Description

Definition at line 65 of file Figure.h.

Member Enumeration Documentation

◆ UpdateBoundingBoxFlag

Enumerator
UpdateBoundingBoxPosition 
UpdateBoundingBoxSize 
UpdateBoundingBoxAll 

Definition at line 99 of file Figure.h.

Constructor & Destructor Documentation

◆ Figure()

◆ ~Figure()

QtHandles::Figure::~Figure ( void  )

Definition at line 195 of file Figure.cc.

Member Function Documentation

◆ addCustomToolBar()

void QtHandles::Figure::addCustomToolBar ( QToolBar *  bar,
bool  visible,
bool  isdefault 
)
private

Definition at line 801 of file Figure.cc.

References m_blockUpdates, m_figureToolBar, r, set_geometry(), and updateBoundingBox().

Referenced by QtHandles::ToolBar::ToolBar().

◆ asyncUpdate

void QtHandles::Figure::asyncUpdate ( void  )
signal

Referenced by Figure().

◆ beingDeleted()

void QtHandles::Figure::beingDeleted ( void  )
protectedvirtual

◆ create()

Figure * QtHandles::Figure::create ( octave::base_qobject oct_qobj,
octave::interpreter interp,
const graphics_object go 
)
static

Definition at line 113 of file Figure.cc.

References Figure().

Referenced by QtHandles::qt_graphics_toolkit::create_object().

◆ do_connections()

void QtHandles::Figure::do_connections ( const QObject receiver,
const QObject emitter = nullptr 
)
virtual

◆ enableMouseTracking()

void QtHandles::Figure::enableMouseTracking ( void  )
private

◆ eventNotifyAfter()

◆ eventNotifyBefore()

◆ figureWindowShown

void QtHandles::Figure::figureWindowShown ( )
privateslot

◆ fileName()

QString QtHandles::Figure::fileName ( void  )

◆ finalize()

void QtHandles::Object::finalize ( void  )
protectedvirtualinherited

Definition at line 168 of file Object.cc.

References QtHandles::Object::m_qobject.

Referenced by QtHandles::Object::slotFinalize().

◆ fromQObject()

◆ gh_callback_event [1/2]

◆ gh_callback_event [2/2]

void QtHandles::Object::gh_callback_event ( const graphics_handle h,
const std::string &  name,
const octave_value data 
)
signalinherited

◆ gh_set_event [1/3]

◆ gh_set_event [2/3]

void QtHandles::Object::gh_set_event ( const graphics_handle h,
const std::string &  name,
const octave_value value,
bool  notify_toolkit 
)
signalinherited

◆ gh_set_event [3/3]

void QtHandles::Object::gh_set_event ( const graphics_handle h,
const std::string &  name,
const octave_value value,
bool  notify_toolkit,
bool  redraw_figure 
)
signalinherited

◆ init()

void QtHandles::Object::init ( QObject obj,
bool  callBase = false 
)
protectedinherited

◆ innerContainer()

Container * QtHandles::Figure::innerContainer ( void  )
virtual

Implements QtHandles::Object.

Definition at line 284 of file Figure.cc.

References m_container.

◆ interpreter_event [1/2]

void QtHandles::Object::interpreter_event ( const octave::fcn_callback fcn)
signalinherited

◆ interpreter_event [2/2]

void QtHandles::Object::interpreter_event ( const octave::meth_callback meth)
signalinherited

◆ menu()

QWidget * QtHandles::Figure::menu ( void  )
virtual

Implements QtHandles::MenuContainer.

Definition at line 603 of file Figure.cc.

◆ mouseMode()

◆ object()

◆ objectDestroyed

void QtHandles::Object::objectDestroyed ( QObject obj = nullptr)
slotinherited

Definition at line 194 of file Object.cc.

References QtHandles::Object::m_qobject.

Referenced by QtHandles::Object::init().

◆ parentObject()

◆ print()

void QtHandles::Figure::print ( const QString &  file_cmd,
const QString &  term 
)
protectedvirtual

◆ properties() [1/4]

◆ properties() [2/4]

template<typename T >
T::properties& QtHandles::Object::properties ( void  )
inlineinherited

◆ properties() [3/4]

const base_properties& QtHandles::Object::properties ( void  ) const
inlineinherited

Definition at line 63 of file Object.h.

References graphics_object::get_properties(), and QtHandles::Object::object().

◆ properties() [4/4]

template<typename T >
const T::properties& QtHandles::Object::properties ( void  ) const
inlineinherited

◆ qObject()

◆ qWidget()

template<typename T >
T* QtHandles::Object::qWidget ( void  )
inlineinherited

◆ redraw()

void QtHandles::Figure::redraw ( void  )
protectedvirtual

◆ screenChanged

void QtHandles::Figure::screenChanged ( QScreen *  screen)
privateslot

◆ set_geometry()

void QtHandles::Figure::set_geometry ( QRect  r)
private

◆ setFileName()

void QtHandles::Figure::setFileName ( const QString &  name)

◆ show()

void QtHandles::Figure::show ( void  )
protectedvirtual

Reimplemented from QtHandles::Object.

Definition at line 313 of file Figure.cc.

Referenced by update().

◆ showCustomToolBar()

void QtHandles::Figure::showCustomToolBar ( QToolBar *  bar,
bool  visible 
)
private

◆ showFigureStatusBar()

void QtHandles::Figure::showFigureStatusBar ( bool  visible)
private

Definition at line 542 of file Figure.cc.

References m_blockUpdates, m_statusBar, r, set_geometry(), and updateBoundingBox().

Referenced by Figure(), and update().

◆ slotFinalize

void QtHandles::Object::slotFinalize ( void  )
slotinherited

◆ slotGetPixels

◆ slotPrint

void QtHandles::Object::slotPrint ( const QString &  file_cmd,
const QString &  term 
)
slotinherited

◆ slotRedraw

void QtHandles::Object::slotRedraw ( void  )
slotinherited

◆ slotShow

void QtHandles::Object::slotShow ( void  )
slotinherited

◆ slotUpdate

void QtHandles::Object::slotUpdate ( int  pId)
slotinherited

◆ update()

◆ updateBoundingBox()

void QtHandles::Figure::updateBoundingBox ( bool  internal = false,
int  flags = 0 
)
protected

◆ updateContainer

void QtHandles::Figure::updateContainer ( void  )
privateslot

Definition at line 852 of file Figure.cc.

References redraw().

Referenced by Figure().

◆ updateFigureHeight

◆ updateStatusBar()

void QtHandles::Figure::updateStatusBar ( ColumnVector  pt)

Definition at line 587 of file Figure.cc.

References m_statusBar.

Referenced by QtHandles::Canvas::canvasMouseMoveEvent().

Friends And Related Function Documentation

◆ ToolBar

friend class ToolBar
friend

Definition at line 72 of file Figure.h.

Member Data Documentation

◆ m_blockUpdates

bool QtHandles::Figure::m_blockUpdates
private

◆ m_container

◆ m_figureToolBar

QToolBar* QtHandles::Figure::m_figureToolBar
private

Definition at line 137 of file Figure.h.

Referenced by addCustomToolBar().

◆ m_go

graphics_object QtHandles::Object::m_go
protectedinherited

Definition at line 150 of file Object.h.

Referenced by QtHandles::Object::object().

◆ m_handle

◆ m_innerRect

QRect QtHandles::Figure::m_innerRect
private

Definition at line 140 of file Figure.h.

Referenced by Figure(), update(), and updateBoundingBox().

◆ m_interpreter

◆ m_menuBar

MenuBar* QtHandles::Figure::m_menuBar
private

Definition at line 138 of file Figure.h.

Referenced by Figure(), eventNotifyAfter(), eventNotifyBefore(), and update().

◆ m_octave_qobj

octave::base_qobject& QtHandles::Object::m_octave_qobj
protectedinherited

Definition at line 139 of file Object.h.

◆ m_outerRect

QRect QtHandles::Figure::m_outerRect
private

Definition at line 141 of file Figure.h.

Referenced by Figure(), and updateBoundingBox().

◆ m_pointer_cdata

QImage QtHandles::Figure::m_pointer_cdata
private

Definition at line 142 of file Figure.h.

Referenced by update().

◆ m_previousHeight

int QtHandles::Figure::m_previousHeight
private

Definition at line 143 of file Figure.h.

Referenced by eventNotifyAfter(), and eventNotifyBefore().

◆ m_qobject

◆ m_resizable

bool QtHandles::Figure::m_resizable
private

Definition at line 144 of file Figure.h.

Referenced by set_geometry(), and update().

◆ m_statusBar

QStatusBar* QtHandles::Figure::m_statusBar
private

Definition at line 139 of file Figure.h.

Referenced by Figure(), showFigureStatusBar(), update(), and updateStatusBar().


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