|
void | init () |
|
| View (const char *title, WinGeom *wg=NULL) |
|
| View (char *title, WinGeom *wg=NULL) |
|
int | create () |
|
void | close () |
|
void | refresh () |
| Refreshes views.
|
|
void | set_title (const char *title) |
| Changes the window name (in its title-bar) to 'title'.
|
|
void | set_min_max_range (double min, double max) |
|
void | auto_min_max_range () |
|
void | get_min_max_range (double &min, double &max) |
|
void | show_scale (bool show=true) |
|
void | set_scale_position (int horz, int vert) |
|
void | set_scale_size (int width, int height, int numticks) |
|
void | set_scale_format (const char *fmt) |
|
void | fix_scale_width (int width=80) |
|
void | save_screenshot (const char *bmpname, bool high_quality=false) |
|
void | save_numbered_screenshot (const char *format, int number, bool high_quality=false) |
|
void | set_palette (ViewPaletteType type) |
|
void | set_num_palette_steps (int num) |
|
void | set_palette_filter (bool linear) |
|
void | wait_for_keypress (const char *text=NULL) |
| Waits for keypress. Deprecated.
|
|
void | wait_for_close () |
|
void | wait_for_draw () |
|
void | draw_help () |
|
virtual void | reset_view (bool force_reset) |
| Resets view based on the axis-aligned bounding box of the mesh. Assumes that the bounding box is set up. Does not reset if view_not_reset is false.
|
|
|
void | draw_fps () |
| draws current FPS
|
|
virtual void | on_create (int output_id) |
|
virtual void | on_display () |
|
virtual void | on_reshape (int width, int height) |
|
virtual void | on_mouse_move (int x, int y) |
|
virtual void | on_left_mouse_down (int x, int y) |
|
virtual void | on_left_mouse_up (int x, int y) |
|
virtual void | on_left_mouse_double_click (int x, int y) |
|
virtual void | on_right_mouse_down (int x, int y) |
|
virtual void | on_right_mouse_up (int x, int y) |
|
virtual void | on_right_mouse_double_click (int x, int y) |
|
virtual void | on_middle_mouse_down (int x, int y) |
|
virtual void | on_middle_mouse_up (int x, int y) |
|
virtual void | on_middle_mouse_double_click (int x, int y) |
|
virtual void | on_key_down (unsigned char key, int x, int y) |
|
virtual void | on_special_key (int key, int x, int y) |
|
virtual void | on_entry (int state) |
|
virtual void | on_close () |
|
virtual void | update_layout () |
| Updates layout, i.e., centers mesh.
|
|
void | create_gl_palette () |
| Creates pallete texture in OpenGL. Assumes that view_sync is locked.
|
|
virtual void | get_palette_color (double x, float *gl_color) |
| Fills gl_color with palette color. Assumes that gl_color points to a vector of three components (RGB).
|
|
double | transform_x (double x) |
|
double | transform_y (double y) |
|
double | untransform_x (double x) |
|
double | untransform_y (double y) |
|
virtual void | clear_background () |
| Clears background.
|
|
void | pre_display () |
|
void | display_antialiased () |
|
void | set_ortho_projection (bool no_jitter=false) |
|
void | set_3d_projection (int fov, double znear, double zfar) |
|
void | draw_text (double x, double y, const char *text, int align=-1) |
|
int | get_text_width (const char *text) |
|
char * | get_screenshot_file_name () |
|
void | save_screenshot_internal (const char *filename) |
|
virtual void | scale_dispatch () |
|
virtual int | measure_scale_labels () |
|
void | draw_continuous_scale (char *title, bool righttext) |
|
void | draw_discrete_scale (int numboxes, const char *boxnames[], const float boxcolors[][3]) |
|
void | update_tex_adjust () |
|
virtual const char * | get_help_text () const =0 |
|
|
void | on_display_stub (void) |
|
void | on_reshape_stub (int, int) |
|
void | on_mouse_move_stub (int, int) |
|
void | on_mouse_click_stub (int, int, int, int) |
|
void | on_key_down_stub (unsigned char, int, int) |
|
void | on_special_key_stub (int, int, int) |
|
void | on_entry_stub (int) |
|
void | on_idle_stub () |
|
void | on_close_stub () |
|
int | add_view_in_thread (void *) |
| Adds a new view. Function has to be called just from the inside of view thread with a locked sync_view.
|
|
int | remove_view_in_thread (void *) |
| Removes a new view. Function has to be called just from the inside of view thread with a locked sync_view.
|
|
void | on_create (int) |
|
Represents a simple visualization window.
View is a base class providing a simple OpenGL visualization window. Its task is to define basic functionality, such as the ability of the window to be responsive even when the main program thread is busy with calculations (ie., the windows are run in a background thread), to provide zooming and panning capabilities for use by the descendant classes, etc.
Definition at line 84 of file view.h.