Public Member Functions |
|
| win2d (uint wid, const char *wname=NULL, uint height=1, uint width=1) |
| virtual void | set_wupdate (bool ud) |
| virtual void | clear () |
|
virtual void | clear_resize () |
| | Clears the window and resizes it to 1x1.
|
| virtual void | resize_window (uint h, uint w, bool force=false) |
| virtual void | update_window (bool activate=false) |
| virtual void | repaint_pixmap () |
|
virtual void | set_bg_colors (ubyte r, ubyte g, ubyte b) |
| | Set color of background.
|
|
void | update_pixmap (idx< ubyte > *img, uint h0, uint w0, bool updatepix=true) |
| | add img to the window and delete img.
|
|
void | update_pixmap (idx< ubyte > &img, uint h0, uint w0, bool updatepix=true) |
| | add img to the window.
|
Protected Member Functions |
|
void | paintEvent (QPaintEvent *event) |
| | The event triggered when painting is needed.
|
|
void | wheelEvent (QWheelEvent *event) |
|
void | mousePressEvent (QMouseEvent *event) |
|
void | mouseMoveEvent (QMouseEvent *event) |
|
void | mouseReleaseEvent (QMouseEvent *event) |
|
void | keyPressEvent (QKeyEvent *event) |
|
void | keyReleaseEvent (QKeyEvent *event) |
| void | buffer_resize (uint h, uint w, bool force=false) |
|
void | buffer_fill (idx< ubyte > *buf) |
| | Fill given buffer with background color.
|
| void | update_qimage (uint mode=0) |
|
void | swap () |
|
void | draw_arrows (QPainter &painter) |
|
void | draw_boxes (QPainter &painter) |
|
void | draw_crosses (QPainter &painter) |
|
void | draw_ellipses (QPainter &painter) |
|
void | draw_masks (QPainter &painter) |
|
void | draw_images (bool update=false) |