libeblearngui
ebl::labeled_datasource_gui< Tnet, Tdata, Tlabel > Class Template Reference

#include <datasource_gui.h>

Inheritance diagram for ebl::labeled_datasource_gui< Tnet, Tdata, Tlabel >:
ebl::labeled_pair_datasource_gui< Tnet, Tdata, Tlabel >

List of all members.

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_guicopy ()

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

Detailed Description

template<class Tnet, class Tdata, class Tlabel>
class ebl::labeled_datasource_gui< Tnet, Tdata, Tlabel >

labeled_datasource_gui


Member Function Documentation

template<class Tnet , class Tdata , class Tlabel >
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.


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