summaryrefslogtreecommitdiff
path: root/meme/gui.c
AgeCommit message (Collapse)AuthorFilesLines
2016-05-12meme/gui.c, README: add "sticky" contrast enhancement modeWerner Almesberger1-3/+4
2016-05-11meme/gui.c: output "B" marker as "A" on marker_nextWerner Almesberger1-5/+17
This lets log2mark.pl keep track of the marker change.
2016-02-15meme/gui.c: use SDL_GetError when reporting an SDL problemWerner Almesberger1-4/+5
2016-02-15meme/: non-interactive screen dumps with -D ...Werner Almesberger1-7/+82
2016-02-14meme/gui.c (gui), README: O also toggles markers (in addition to overlays)Werner Almesberger1-2/+3
2016-02-14meme/gui.c (draw_overlay): don't try to draw overlays if we don't have anyWerner Almesberger1-2/+3
This caused a segfault.
2016-02-14meme/: use adaptive outline instead of rectangle for marker textWerner Almesberger1-10/+37
2016-02-14meme/gui.c (TEXT_OFFSET_X, TEXT_OFFSET_Y): better center the textWerner Almesberger1-2/+2
2016-02-14meme/: add little "T" marks at the ends of measurementsWerner Almesberger1-1/+8
2016-02-14meme/gui.c (marker_line): also correct "ok" logic, inherited from "lineto"Werner Almesberger1-2/+7
2016-02-14meme/gui.c (lineto): finally fix confused "ok" logicWerner Almesberger1-5/+7
GCC warned for very good reasons but I somehow completely missed that :-(
2016-02-14meme/: add marker system (for documentation); option -m marker.gp to add markersWerner Almesberger1-1/+56
2016-02-14meme/: add screen dumps with "D"; option "-d dump.bmp" to set dump nameWerner Almesberger1-2/+6
2015-03-17meme/: N moves marker B to marker A (for sequential capture)Werner Almesberger1-0/+10
2015-03-16meme/: R reloads all overlaysWerner Almesberger1-3/+7
2015-03-16meme/, vispcb/: separate paths from "struct overlay"Werner Almesberger1-6/+6
2015-03-14meme/: support multiple overlaysWerner Almesberger1-5/+23
2015-03-14meme/gui.h: give gui.c its proper headerWerner Almesberger1-1/+3
2015-03-14meme/: generalize overlay handling (no globals, support multiple overlays)Werner Almesberger1-4/+4
2015-03-14meme/gui.c (lineto): only alpha-blend the overlay when displaying meshWerner Almesberger1-11/+10
2015-03-14meme/: M toggles mesh display (e.g., for make the overlay more visible)Werner Almesberger1-1/+6
2015-03-13meme/: add overlays (option -o, key O); clean up log file implementationWerner Almesberger1-0/+55
2015-03-13meme/: new option "-l logfile" to append marker/measurement data to fileWerner Almesberger1-7/+24
2015-03-13meme/gui.c (set_marker): move text output to new function print_markerWerner Almesberger1-15/+21
2014-12-16meme/gui.c: clip profiles more aggressivelyWerner Almesberger1-11/+15
Note the we can still get artefacts. To eliminate them completely, we could further constrain out-of-area coordinates but at the price of losing many partial lines at high zoom levels. What we'd really want to do is adjust coordinates such that we clip right at the area boundary. Maybe another time ;)
2014-12-16meme/gui.c (show_xz_profile, show_yz_profile): wrap long linesWerner Almesberger1-2/+4
2014-12-16meme/gui.c: roll back change in reverse orderWerner Almesberger1-19/+33
This should remove all artefacts caused by wrong ordering. We can still get artefacts caused by lack of clipping.
2014-09-27meme/gui.c, README: keep track of last mouse position; + and - keys zoom in/outWerner Almesberger1-7/+33
2014-09-27meme/gui.c (button_event): move zoom in/out to separate functionsWerner Almesberger1-18/+30
2014-09-27meme/gui.c (button_event, clear_markers), README: right-click clears both ↵Werner Almesberger1-0/+9
markers
2014-09-17meme/gui.c (surface_draw): draw contour for equality (more precise), change ↵Werner Almesberger1-12/+106
color to purple
2014-09-17meme/gui.c: add equal highlighting mode when pressing "e"Werner Almesberger1-3/+37
2014-09-15meme/gui.c: add contrast enhancement mode (hold down C and turn wheel)Werner Almesberger1-9/+100
2014-09-15meme/gui.c (change): drop zero- or negative-sized change areas; better error ↵Werner Almesberger1-1/+4
reporting
2014-09-14meme/gui.c (surface_draw): pre-compute depth gradientWerner Almesberger1-7/+27
The run-time saving seems negligible but this also allows us to use more expensive mapping functions.
2014-09-14meme/: use SDL_GetVideoInfo to set up SDL_AllocSurface, instead of ↵Werner Almesberger1-13/+3
SDL_DisplayFormat
2014-09-14meme/: show measurement results on screenWerner Almesberger1-0/+76
2014-09-13meme/gui.c; autoscale on "*" (and enable Unicode translation)Werner Almesberger1-0/+9
2014-09-13meme/gui.c: auto-scale (maximize zoom to 90% of window width/height) at startWerner Almesberger1-3/+14
2014-09-13meme/gui.c: make window resizable and reduce initial size to 640 x 480Werner Almesberger1-5/+12
2014-09-13meme/gui.c (XRES, YRES): use variables for current resolutionWerner Almesberger1-21/+25
2014-09-13meme/gui.c (event_loop): we don't need the "redraw" flag - just return 0Werner Almesberger1-9/+5
2014-09-13meme/gui.c: toggle profiles with PWerner Almesberger1-2/+13
2014-09-13meme/gui.c: add markers and distance measurementsWerner Almesberger1-1/+97
2014-09-13meme/gui.c (show_cursor): add cursor crossWerner Almesberger1-0/+4
2014-09-13meme/: add YZ plane cutWerner Almesberger1-0/+55
All this doesn't look very good. Should sort facets for drawing from differnent angles then do depth grading.
2014-09-13meme/gui.c (button_event): button 2 (middle) centers the current mouse positionWerner Almesberger1-0/+4
2014-09-13meme/gui.c: use SDL_HWSURFACE; time redrawsWerner Almesberger1-2/+8
Redraws with SDL_HWSURFACE are about 10-20% faster than with SDL_SWSURFACE.
2014-09-13meme/gui.c: clean up color handling; increase contrast of depth gradingWerner Almesberger1-5/+11
2014-09-13meme/gui.c (show_grid): don't show grid by defaultWerner Almesberger1-1/+1