libeblearngui
|
#include <datasource_gui.h>
Public Member Functions | |
labeled_datasource_gui (bool scroll=false) | |
if scroll is true, then controls to display more pages appear. | |
virtual void | display (labeled_datasource< Tnet, Tdata, Tlabel > &ds, unsigned int nh, unsigned int nw, unsigned int h0=0, unsigned int w0=0, double zoom=1.0, int wid=-1, const char *wname=NULL, bool scrolling=false, Tnet rangemin=0, Tnet rangemax=0) |
virtual void | display_pickings (labeled_datasource< Tnet, Tdata, Tlabel > &ds, unsigned int nh, unsigned int nw, unsigned int h0=0, unsigned int w0=0, double zoom=1.0, int wid=-1, const char *wname=NULL, bool scrolling=false, Tnet rangemin=0, Tnet rangemax=0) |
virtual void | display_next () |
scrolling method. | |
virtual void | display_previous () |
scrolling method. | |
virtual unsigned int | max_pages () |
scrolling method. | |
virtual labeled_datasource_gui * | copy () |
Public Attributes | |
labeled_datasource< Tnet, Tdata, Tlabel > * | _last_ds |
labeled_datasource< Tnet, Tdata, Tlabel > * | _ds |
Protected Attributes | |
bool | scroll |
bool | scroll_added |
unsigned int | pos |
int | display_wid |
unsigned int | _nh |
unsigned int | _nw |
double | _zoom |
Tnet | _rmin |
Tnet | _rmax |
bool | _replaced |
void ebl::labeled_datasource_gui< Tnet, Tdata, Tlabel >::display | ( | labeled_datasource< Tnet, Tdata, Tlabel > & | ds, |
unsigned int | nh, | ||
unsigned int | nw, | ||
unsigned int | h0 = 0 , |
||
unsigned int | w0 = 0 , |
||
double | zoom = 1.0 , |
||
int | wid = -1 , |
||
const char * | wname = NULL , |
||
bool | scrolling = false , |
||
Tnet | rangemin = 0 , |
||
Tnet | rangemax = 0 |
||
) | [virtual] |
display the first nh * nw samples of dataset ds at coordinates (h0, w0), with zoom <zoom>. If a window id <wid> is specified, use that window, otherwise create a new window and reuse it. <wname> is an optional window title.