#include <View.h>
Public Methods | |
View () | |
openGL aspect used by reshape constructor. More... | |
unsigned int | get_currstep () |
get the value of current timestep. More... | |
void | next_step () |
display the next timestep. More... | |
void | set_solo_chunk (int chunk) |
set the solo chunk. More... | |
void | prev_step () |
display the previous timestep. More... | |
void | animate (int direction) |
animate the timestaps. More... | |
void | action_view () |
void | recenter () |
translate object to be centered on origin. More... | |
void | display_step (unsigned int) |
display the timestep step. More... | |
void | display_first () |
display the first timestep. More... | |
void | display () |
display the current timestep. More... | |
void | redisplay_step (unsigned int step) |
do redisplay if the calllist exists. More... | |
bool | loadfile (const char *filename) |
load a tetrahedron data file. More... | |
void | note_update () |
all our timesteps need updating. More... | |
void | toggle_fillpoly () |
change fillpoly. More... | |
void | toggle_showlabel () |
change showlabel. More... | |
void | toggle_showlength () |
change showlength. More... | |
void | toggle_opaque () |
change opaque. More... | |
void | toggle_pointmode () |
change pointmode. More... | |
void | zoomin () |
zoom in by scaling up. More... | |
void | zoomout () |
zoom out by scaling down. More... | |
void | rotatecolormap () |
cycle the color map. More... | |
void | rotate () |
void | rotate_x (int direction) |
rotate around X. More... | |
void | rotate_y (int direction) |
rotate around Y. More... | |
void | rotate_z (int direction) |
rotate around Z. More... | |
void | move_x (float direction) |
translate X. More... | |
void | move_y (float direction) |
translate Y. More... | |
void | move_z (float direction) |
translate Z. More... | |
void | make_random_color_set () |
set one random color for each unique point. More... | |
Public Attributes | |
double | scale |
the unique points of all tetras in all timesteps. More... | |
int | ScreenWidth |
control scaling. More... | |
int | ScreenHeight |
control scaling. More... | |
float | aspect_ratio |
openGL window size. More... | |
Private Attributes | |
unsigned int | fillpoly |
unsigned int | colormap |
fill mode or line mode. More... | |
bool | showlabel |
random, chunk, or point. More... | |
bool | showlength |
to show labels or not. More... | |
bool | opaque |
to show edge length or not. More... | |
bool | pointmode |
to view opaque with wire mode. More... | |
double | xtri |
to show only the vertices. More... | |
double | ytri |
control rotation around X axis. More... | |
double | ztri |
control rotation around Y axis. More... | |
double | ztran |
control rotation around Z axis. More... | |
double | xtran |
control z translation. More... | |
double | ytran |
control x translation. More... | |
unsigned int | currstep |
control y translation. More... | |
int | filenum |
current timestep. More... | |
int | solo_chunk |
count of loaded files. More... | |
map< unsigned int, RGB > | chunks |
view a single chunk. More... | |
vector< bool > | uptodate_step |
map of chunks to colors. More... | |
map< unsigned int, Timestep > | timesteps |
flag if we need to rebuild the display for the timestep. More... | |
map< unsigned int, Timestep >::iterator | now |
the timesteps. More... | |
vector< Coordinate > | points |
the current timestep iterator. More... |
Does all the actual work of loading and displaying the tetrahedrons.
Definition at line 42 of file View.h.
|
openGL aspect used by reshape constructor.
Definition at line 74 of file View.h. References colormap, currstep, filenum, fillpoly, now, opaque, pointmode, scale, showlabel, showlength, solo_chunk, timesteps, uptodate_step, xtri, ytri, and ztri. |
|
|
|
animate the timestaps.
Definition at line 123 of file View.h. References display_step, now, and timesteps. Referenced by keyboard. |
|
display the current timestep.
Definition at line 158 of file View.h. References currstep, and display_step. Referenced by bcallback, chunkcallback, display, keyboard, nochunkcallback, and set_solo_chunk. |
|
display the first timestep.
Definition at line 151 of file View.h. References display_step, now, and timesteps. Referenced by main. |
|
display the timestep step. uses redisplay if it can otherwise calls the timestep's display Definition at line 114 of file View.C. References aspect_ratio, colormap, currstep, fillpoly, now, opaque, pointmode, scale, ScreenHeight, ScreenWidth, showlabel, showlength, solo_chunk, timesteps, uptodate_step, xtran, xtri, ytran, ytri, ztran, and ztri. Referenced by animate, display, display_first, next_step, prev_step, redisplay_step, and timecallback. |
|
get the value of current timestep.
Definition at line 95 of file View.h. References currstep. Referenced by keyboard, and timecallback. |
|
load a tetrahedron data file. Filename is the (path included) string of the file to load. Format of the filename should be baseChunknum.Timestamp where Chunknum and Timestamp are integers. E.g dbg_msh1.1. Loading multiple chunks at one timestep is best done with shell wildcards. Such as: dbg_msh[0-9]*.1 check chunk map, if present use the chunk color if not present add new color to chunk map create new timestep call loadfile on the timestep Definition at line 41 of file View.C. References chunks, filenum, timesteps, and uptodate_step. Referenced by main. |
|
set one random color for each unique point. iterate through all timesteps and get all the points. assign a color for each point Definition at line 156 of file View.C. References points, and timesteps. Referenced by main. |
|
translate X.
Definition at line 259 of file View.h. References note_update, and xtran. Referenced by keyboard. |
|
translate Y.
Definition at line 265 of file View.h. References note_update, and ytran. Referenced by keyboard. |
|
translate Z.
Definition at line 271 of file View.h. References note_update, and ztran. Referenced by keyboard. |
|
display the next timestep.
Definition at line 101 of file View.h. References display_step, and now. |
|
all our timesteps need updating.
Definition at line 175 of file View.h. References uptodate_step. Referenced by move_x, move_y, move_z, rotate_x, rotate_y, rotate_z, rotatecolormap, set_solo_chunk, toggle_fillpoly, toggle_opaque, toggle_pointmode, toggle_showlabel, toggle_showlength, zoomin, and zoomout. |
|
display the previous timestep.
Definition at line 116 of file View.h. References display_step, and now. Referenced by keyboard. |
|
translate object to be centered on origin.
Definition at line 139 of file View.C. References points, and timesteps. Referenced by main. |
|
do redisplay if the calllist exists.
Definition at line 164 of file View.h. References display_step. |
|
|
|
rotate around X.
Definition at line 241 of file View.h. References note_update, and xtri. Referenced by movers. |
|
rotate around Y.
Definition at line 247 of file View.h. References note_update, and ytri. Referenced by movers. |
|
rotate around Z.
Definition at line 253 of file View.h. References note_update, and ztri. Referenced by movers. |
|
cycle the color map.
Definition at line 230 of file View.h. References colormap, and note_update. Referenced by keyboard. |
|
set the solo chunk.
Definition at line 108 of file View.h. References display, note_update, and solo_chunk. Referenced by chunkcallback, keyboard, and nochunkcallback. |
|
change fillpoly.
Definition at line 181 of file View.h. References fillpoly, and note_update. Referenced by keyboard. |
|
change opaque.
Definition at line 202 of file View.h. References note_update, and opaque. Referenced by keyboard. |
|
change pointmode.
Definition at line 209 of file View.h. References note_update, and pointmode. Referenced by keyboard. |
|
change showlabel.
Definition at line 188 of file View.h. References note_update, and showlabel. Referenced by keyboard. |
|
change showlength.
Definition at line 195 of file View.h. References note_update, and showlength. Referenced by keyboard. |
|
zoom in by scaling up.
Definition at line 216 of file View.h. References note_update, and scale. Referenced by keyboard. |
|
zoom out by scaling down.
Definition at line 223 of file View.h. References note_update, and scale. Referenced by keyboard. |
|
openGL window size.
Definition at line 72 of file View.h. Referenced by display_step, and reshape. |
|
view a single chunk.
Definition at line 60 of file View.h. Referenced by loadfile. |
|
fill mode or line mode.
Definition at line 46 of file View.h. Referenced by display_step, rotatecolormap, and View. |
|
control y translation.
Definition at line 57 of file View.h. Referenced by display, display_step, get_currstep, and View. |
|
current timestep.
|
|
Definition at line 45 of file View.h. Referenced by display_step, toggle_fillpoly, and View. |
|
the timesteps.
Definition at line 66 of file View.h. Referenced by animate, display_first, display_step, next_step, prev_step, and View. |
|
to show edge length or not.
Definition at line 49 of file View.h. Referenced by display_step, toggle_opaque, and View. |
|
to view opaque with wire mode.
Definition at line 50 of file View.h. Referenced by display_step, toggle_pointmode, and View. |
|
the current timestep iterator.
Definition at line 67 of file View.h. Referenced by make_random_color_set, and recenter. |
|
the unique points of all tetras in all timesteps.
Definition at line 70 of file View.h. Referenced by display_step, View, zoomin, and zoomout. |
|
control scaling.
Definition at line 71 of file View.h. Referenced by display_step, and reshape. |
|
control scaling.
Definition at line 71 of file View.h. Referenced by display_step, and reshape. |
|
random, chunk, or point.
Definition at line 47 of file View.h. Referenced by display_step, toggle_showlabel, and View. |
|
to show labels or not.
Definition at line 48 of file View.h. Referenced by display_step, toggle_showlength, and View. |
|
count of loaded files.
Definition at line 59 of file View.h. Referenced by display_step, set_solo_chunk, and View. |
|
flag if we need to rebuild the display for the timestep. note, vector<bool> is not a proper container so do not expect &uptodate_step[0] to work. Definition at line 65 of file View.h. Referenced by animate, display_first, display_step, loadfile, make_random_color_set, recenter, and View. |
|
map of chunks to colors.
Definition at line 61 of file View.h. Referenced by display_step, loadfile, note_update, and View. |
|
control z translation.
Definition at line 55 of file View.h. Referenced by display_step, and move_x. |
|
to show only the vertices.
Definition at line 51 of file View.h. Referenced by display_step, rotate_x, and View. |
|
control x translation.
Definition at line 56 of file View.h. Referenced by display_step, and move_y. |
|
control rotation around X axis.
Definition at line 52 of file View.h. Referenced by display_step, rotate_y, and View. |
|
control rotation around Z axis.
Definition at line 54 of file View.h. Referenced by display_step, and move_z. |
|
control rotation around Y axis.
Definition at line 53 of file View.h. Referenced by display_step, rotate_z, and View. |