Main Page   Namespace List   Compound List   File List   Compound Members   File Members  

Tetraviewer.C File Reference

#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


Function Documentation

void bcallback muiObject *    obj,
enum muiReturnValue    r
 

callback for buttons, maps buttons to keyboard commands.

Definition at line 279 of file Tetraviewer.C.

References keyboard.

void chunkcallback muiObject *    obj,
enum muiReturnValue    r
 

Definition at line 285 of file Tetraviewer.C.

References Controller::chunkbox, View::display, View::set_solo_chunk, and subwindow.

void display void   
 

handle the display event.

Definition at line 93 of file Tetraviewer.C.

References View::display.

Referenced by main.

void idle void   
 

handle idle event.

Definition at line 318 of file Tetraviewer.C.

Referenced by main.

void init void   
 

initialize openGL.

Definition at line 82 of file Tetraviewer.C.

Referenced by main.

void interpclick int    click
 

Definition at line 272 of file Tetraviewer.C.

References keyboard.

void keyboard unsigned char    key,
int    x,
int    y
 

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.

int main int    argc,
char **    argv
 

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.

void motion int    x,
int    y
 

handle motion events.

Definition at line 101 of file Tetraviewer.C.

Referenced by main.

void movers int    key,
int    x,
int    y
 

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.

void nochunkcallback muiObject *    obj,
enum muiReturnValue    r
 

Definition at line 295 of file Tetraviewer.C.

References View::display, View::set_solo_chunk, and subwindow.

void reshape int    w,
int    h
 

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.

void timecallback muiObject *    obj,
enum muiReturnValue    r
 

Definition at line 305 of file Tetraviewer.C.

References View::display_step, View::get_currstep, Controller::seltimebox, subwindow, Controller::timestep_number, and Controller::timestring.


Variable Documentation

Controller controller
 

Definition at line 79 of file Tetraviewer.C.

int subwindow
 

Definition at line 80 of file Tetraviewer.C.

Referenced by chunkcallback, keyboard, main, movers, nochunkcallback, and timecallback.

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.

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.


Generated on Wed Oct 29 10:01:52 2003 for Tetraviewer by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002