#include <unistd.h>
#include <GL/glut.h>
#include <mui/mui.h>
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <utility>
#include <vector>
#include <string>
#include "Controller.h"
#include "View.h"
Go to the source code of this file.
Functions | |
void | init (void) |
initialize openGL. More... | |
void | display (void) |
handle the display event. More... | |
void | motion (int x, int y) |
handle motion events. More... | |
void | reshape (int w, int h) |
handle cube window reshape events. More... | |
void | keyboard (unsigned char key, int x, int y) |
respond to keyboard commands in console. More... | |
void | movers (int key, int x, int y) |
handle special keyboard events (arrows and page up/down). More... | |
void | interpclick (int click) |
void | bcallback (muiObject *obj, enum muiReturnValue r) |
callback for buttons, maps buttons to keyboard commands. More... | |
void | chunkcallback (muiObject *obj, enum muiReturnValue r) |
void | nochunkcallback (muiObject *obj, enum muiReturnValue r) |
void | timecallback (muiObject *obj, enum muiReturnValue r) |
void | idle (void) |
handle idle event. More... | |
int | main (int argc, char **argv) |
initialize openGL, display instructs, load the files, call event loop. More... | |
Variables | |
View | view |
Initialize glut stuff for mui. create mui controller window create button area in window create entry for chunk selection create entry for timestep selection. More... | |
Controller | controller |
int | subwindow |
|
callback for buttons, maps buttons to keyboard commands.
Definition at line 279 of file Tetraviewer.C. References keyboard. |
|
Definition at line 285 of file Tetraviewer.C. References Controller::chunkbox, View::display, View::set_solo_chunk, and subwindow. |
|
handle the display event.
Definition at line 93 of file Tetraviewer.C. References View::display. Referenced by main. |
|
handle idle event.
Definition at line 318 of file Tetraviewer.C. Referenced by main. |
|
initialize openGL.
Definition at line 82 of file Tetraviewer.C. Referenced by main. |
|
Definition at line 272 of file Tetraviewer.C. References keyboard. |
|
respond to keyboard commands in console.
Definition at line 131 of file Tetraviewer.C. References View::animate, View::display, View::get_currstep, View::move_x, View::move_y, View::move_z, View::next_step, View::prev_step, View::rotatecolormap, View::set_solo_chunk, subwindow, Controller::timestep_number, Controller::timestring, View::toggle_fillpoly, View::toggle_opaque, View::toggle_pointmode, View::toggle_showlabel, View::toggle_showlength, View::zoomin, and View::zoomout. Referenced by bcallback, interpclick, and main. |
|
initialize openGL, display instructs, load the files, call event loop.
Definition at line 324 of file Tetraviewer.C. References display, View::display_first, idle, init, keyboard, View::loadfile, View::make_random_color_set, motion, movers, View::recenter, reshape, and subwindow. |
|
handle motion events.
Definition at line 101 of file Tetraviewer.C. Referenced by main. |
|
handle special keyboard events (arrows and page up/down).
Definition at line 244 of file Tetraviewer.C. References View::rotate_x, View::rotate_y, View::rotate_z, and subwindow. Referenced by main. |
|
Definition at line 295 of file Tetraviewer.C. References View::display, View::set_solo_chunk, and subwindow. |
|
handle cube window reshape events.
Definition at line 109 of file Tetraviewer.C. References View::aspect_ratio, View::ScreenHeight, and View::ScreenWidth. Referenced by main. |
|
Definition at line 305 of file Tetraviewer.C. References View::display_step, View::get_currstep, Controller::seltimebox, subwindow, Controller::timestep_number, and Controller::timestring. |
|
Definition at line 79 of file Tetraviewer.C. |
|
Definition at line 80 of file Tetraviewer.C. Referenced by chunkcallback, keyboard, main, movers, nochunkcallback, and timecallback. |
|
Initialize glut stuff for mui. create mui controller window create button area in window create entry for chunk selection create entry for timestep selection. Draw all the buttons. next prev fill mode emphasis line mode vertex view mode colormap, chunk, random, point transparency vertex labels edge length labels zoom in zoom out quit animate faster or slower animation Definition at line 78 of file Tetraviewer.C. |