Signals |
EXPORT void | gui_drawImage (idx< ubyte > *img, uint h0, uint w0) |
EXPORT void | gui_draw_mask (idx< ubyte > *img, uint h0, uint w0, ubyte r, ubyte g, ubyte b, ubyte a) |
EXPORT void | appquit () |
EXPORT void | gui_clear () |
EXPORT void | gui_clear_resize () |
EXPORT void | gui_save_window (const string *filename, int wid) |
EXPORT void | gui_new_window (const char *wname, uint h, uint w) |
EXPORT void | gui_new_window3d (const char *wname, uint h, uint w) |
EXPORT void | gui_select_window (int wid) |
EXPORT void | gui_add_text (const string *s) |
EXPORT void | gui_add_arrow (int h1, int w1, int h2, int w2) |
EXPORT void | gui_add_flow (idx< float > *flow, int h, int w) |
EXPORT void | gui_add_box (float h0, float w0, float h, float w, ubyte r, ubyte g, ubyte b, ubyte a, string *s) |
EXPORT void | gui_add_cross (float h0, float w0, float length, ubyte r, ubyte g, ubyte b, ubyte a, string *s) |
EXPORT void | gui_add_ellipse (float h0, float w0, float h, float w, ubyte r, ubyte g, ubyte b, ubyte a, string *s) |
EXPORT void | gui_set_text_origin (uint h0, uint w0) |
EXPORT void | gui_set_text_colors (unsigned char fg_r, unsigned char fg_g, unsigned char fg_b, unsigned char fg_a, unsigned char bg_r, unsigned char bg_g, unsigned char bg_b, unsigned char bg_a) |
EXPORT void | gui_set_bg_colors (unsigned char r, unsigned char g, unsigned char b) |
EXPORT void | gui_set_font_size (int) |
EXPORT void | gui_set_silent (const std::string *filename) |
EXPORT void | gui_set_wupdate (bool update) |
EXPORT void | gui_freeze_style (bool freeze) |
EXPORT void | gui_freeze_window_size (uint h, uint w) |
EXPORT void | gui_add_scroll_box (scroll_box0 *sb) |
EXPORT void | gui_set_title (const string *s) |
EXPORT void | gui_add_sphere (float, float, float, float, string *s, int, int, int, int) |
EXPORT void | gui_add_cylinder (float x, float y, float z, float length, float top_radius, float base_radius, float a1, float a2, string *s, int r, int g, int b, int a, bool tops) |
EXPORT void | gui_draw_text_3d (float x, float y, float z, string *s, int r, int g, int b, int a) |
EXPORT void | gui_draw_line_3d (float x, float y, float z, float x1, float y1, float z1, string *s, int r, int g, int b, int a) |
Public Member Functions |
EXPORT void | init (int argc_, char **argv_, const uint *nwindows, gui_thread *gt_) |
EXPORT int | new_window (const char *wname=NULL, uint h=0, uint w=0) |
| creates a new window.
|
EXPORT int | new_window3d (const char *wname=NULL, uint h=0, uint w=0) |
| creates a new window with 3D display.
|
EXPORT void | select_window (int wid) |
| selects window wid.
|
EXPORT void | draw_arrow (int h1, int w1, int h2, int w2) |
| draws an arrow from (h1, w1) to (h2, w2).
|
EXPORT void | draw_flow (idx< float > &flow, int h, int w) |
| draws a 'flow' at (h,w), where flow is 2xHxW flow field.
|
EXPORT void | draw_box (float h0, float w0, float h, float w, ubyte r=255, ubyte g=255, ubyte b=255, ubyte a=255, string *s=NULL) |
EXPORT void | draw_cross (float h0, float w0, float length, ubyte r=255, ubyte g=255, ubyte b=255, ubyte a=255, string *s=NULL) |
EXPORT void | draw_ellipse (float h0, float w0, float h, float w, ubyte r=255, ubyte g=255, ubyte b=255, ubyte a=255, string *s=NULL) |
EXPORT void | set_silent () |
| do not show windows, instead save them in png files in current dir.
|
EXPORT void | set_silent (const std::string *filename) |
| do not show windows, instead save them in png files in current dir.
|
EXPORT void | set_silent (const char *filename) |
| do not show windows, instead save them in png files in current dir.
|
EXPORT void | disable_updates () |
EXPORT void | enable_updates () |
EXPORT void | quit () |
| closes all windows.
|
EXPORT void | clear () |
| Clears the window but does not resizes it to 1x1.
|
EXPORT void | clear_resize () |
| Clears the window and resizes it to 1x1.
|
EXPORT void | save_window (const char *filename, int wid=-1) |
template<class T > |
void | draw_matrix (idx< T > &im, uint h0, uint w0, double zoomh, double zoomw, T minv=0, T maxv=0) |
template<class T > |
void | draw_matrix (idx< T > &im, uint h0=0, uint w0=0) |
EXPORT void | draw_matrix_unsafe (idx< ubyte > &im, uint h0=0, uint w0=0) |
template<class T > |
void | draw_matrix_frame (idx< T > &im, ubyte r, ubyte g, ubyte b, uint h0=0, uint w0=0, double zoomh=1.0, double zoomw=1.0, T minv=0, T maxv=0) |
| same as draw_matrix but draws a frame of color (r,g,b) around it.
|
template<class T > |
void | draw_matrix (idx< T > &im, const char *str, uint h0=0, uint w0=0, double zoomh=1.0, double zoomw=1.0, T minv=0, T maxv=0) |
| same a draw_matrix but overlays the string <str> in the top left corner.
|
template<class T > |
void | draw_mask (idx< T > &im, uint h0=0, uint w0=0, double zoomh=1.0, double zoomw=1.0, ubyte r=255, ubyte g=0, ubyte b=0, ubyte a=127, T threshold=0.0) |
| Draws a mask from image.
|
EXPORT void | draw_text (std::string *s) |
EXPORT void | draw_text (std::string *s, uint h0, uint w0) |
EXPORT void | set_text_origin (uint h0, uint w0) |
EXPORT void | set_text_colors (unsigned char fg_r, unsigned char fg_g, unsigned char fg_b, unsigned char fg_a, unsigned char bg_r, unsigned char bg_g, unsigned char bg_b, unsigned char bg_a) |
EXPORT void | set_text_colors (int fg_r, int fg_g, int fg_b, int fg_a, int bg_r, int bg_g, int bg_b, int bg_a) |
| see unsigned char version.
|
EXPORT void | set_bg_colors (unsigned char r, unsigned char g, unsigned char b) |
| Set color of background.
|
EXPORT void | set_font_size (int sz) |
| Set size of font.
|
EXPORT void | set_cout_and_gui () |
EXPORT void | set_gui_only () |
EXPORT void | add_scroll_box (scroll_box0 *sb) |
EXPORT void | set_window_title (const char *s) |
| Set the title of the currently selected window.
|
EXPORT void | freeze_style (bool freeze) |
EXPORT void | freeze_window_size (uint h, uint w) |
| Force window size to hxw and forbid any resizing.
|
EXPORT int | pop_key_pressed () |
EXPORT bool | busy_drawing () |
| Return true if the gui is busy drawing, false otherwise.
|
EXPORT void | draw_sphere (float x, float y, float z, float radius, const char *s=NULL, int r=255, int g=255, int b=255, int a=255) |
| Add a sphere at position (x,y,z) with 'radius' and color (r,g,b,a).
|
EXPORT void | draw_cylinder (float x, float y, float z, float length, float top_radius, float base_radius, float a1, float a2, const char *s=NULL, int r=255, int g=255, int b=255, int a=255, bool tops=false) |
EXPORT void | draw_text_3d (float x, float y, float z, const char *s, int r=255, int g=255, int b=255, int a=255) |
| Draw 3d text 's' at (x,y,z) with color (r,g,b,a).
|
EXPORT void | draw_line_3d (float x, float y, float z, float x1, float y1, float z1, const char *s=NULL, int r=255, int g=255, int b=255, int a=255) |
template<class T > |
void | draw_matrix (idx< T > &im, unsigned int h0, unsigned int w0, double zoomh, double zoomw, T minv, T maxv) |
template<class T > |
void | draw_matrix (idx< T > &im, unsigned int h0, unsigned int w0) |
template<class T > |
void | draw_matrix (idx< T > &im, const char *str, unsigned int h0, unsigned int w0, double zoomh, double zoomw, T minv, T maxv) |
template<class T > |
void | draw_matrix_frame (idx< T > &im, ubyte r, ubyte g, ubyte b, unsigned int h0, unsigned int w0, double zoomh, double zoomw, T minv, T maxv) |
Public Attributes |
bool | thread_init |
bool | cout_output |
int(* | run_main )(int, char **) |
bool | main_done |
Protected Member Functions |
virtual void | run () |
Friends |
template<class T > |
idxgui & | operator<< (idxgui &r, const T val) |
| operator<< for text drawing on the gui.
|