1
0
mirror of git://projects.qi-hardware.com/ben-scans.git synced 2024-11-25 01:46:16 +02:00
Commit Graph

43 Commits

Author SHA1 Message Date
Werner Almesberger
85855ec5ac Overlapping now has an OSD, too.
- solidify/overlap.c (BORDER, sx, sy), solidify/style.h (OVERLAP_BORDER):
  moved and renamed
- solidify/overlap.c (r_center, scroll_event): moved center radius
  calculation to separate function
- solidify/overlap.c (draw_image): renamed to draw_map
- solidify/overlap.c (draw_image): draw an on-screen display (OSD)
- solidify/level.c (expose_event, overlap): propagate OSD on/off switch
- solidify/overlap.c (osd_proximity, scroll_event, motion_notify_event,
  overlap): enable OSD when approaching the center circle or a diagonal
- solidify/overlap.c (scroll_event): reversed the direction of rotation
2010-09-24 02:54:04 -03:00
Werner Almesberger
edb12b6e95 When leveling, the center circle is now shown when the pointer approaches it.
- solidify/Makefile: added util.o
- solidify/util.h, solidify/util.c (draw_circle): wrapper for gdk_draw_arc
- solidify/Makefile: added style.o
- solidify/style.h, solidify/style.c, solidify/solidify.c (main): GUI style
  parameters and items
- solidify/level.c (scroll_z. scroll_xy, scroll_event, level),
  solidify/overlap.c (scroll_event, overlap): renamed "da" to "darea", to
  avoid confusion with "da" for GdkDrawable in style.c
- solidify/level.c (r_center, scroll_event): moved center radius
  calculation to separate function
- solidify/level.c (draw_image): renamed to draw_map
- solidify/level.c (draw_image): draw an on-screen display (OSD)
- solidify/level.c (scroll_z, scroll_xy, expose_event, level): propagate
  OSD on/off switch
- solidify/level.c (scroll_event, motion_notify_event, level): enable OSD
  when approaching the center circle
2010-09-24 02:04:04 -03:00
Werner Almesberger
d49f349fa0 The top face can now be shifted.
- solidify/overlap.c (scroll_event): use center of canvas as center, not
  center of the top face
- solidify/overlap.c (do_shift, shift, scroll_event): added translation
  (shifting)
2010-09-24 01:11:57 -03:00
Werner Almesberger
525e1557ec Use two faces and show how they overlap (in progress)
- solidify/face.h (face_z0): calculate height of z0 plane
- solidify/level.c (draw_image): use face_z0 instead of open-coding the
  calculation
- solidify/overlap.c (draw_image, point): moved per-point processing from
  draw_image() to point()
- solidify/overlap.c (point): show differences between both faces
- solidify/solidify.c (usage, main): load both faces
- solidify/solidify.c (usage, main): accept distance between faces as third
  argument
2010-09-24 00:43:56 -03:00
Werner Almesberger
1fa23c574e Introduce a solid data type and use it, mainly in overlap()
- solidify/solid.h: definition of a solid made from two opposing faces
- solidify/overlap.h (overlap), solidify/overlap.c (draw_image,
  scroll_event, overlap): operate on solid instead of face
- solidify/overlap.c (sx, sy, draw_image, overlap): helper functions sx()
  and sy() to determine canvas size
- solidify/overlap.c (BORDER, sx, sy): added a border around the piece,
  to help with positioning
- solidify/solidify.c (clicked, gui_buttons, gui, main): use solid instead
  of faces
2010-09-23 23:41:35 -03:00
Werner Almesberger
b8bba1d3ab The GUI can now switch among operations.
- solidify/level.c (key_press_event, make_screen), solidify/solidify.c
  (key_press_event): moved "q" handler to solidify.c
- solidify/level.h (level), solidify/level.c (make_screen, level): removed
  root window initialization and merged remainder into "level"
- solidify/overlap.h (overlap), solidify/overlap.c (make_screen, overlap):
  removed root window initialization and merged remainder into "overlap"
- solidify/solidify.c (gui): initialize the root window
- solidify/solidify.c (gui, gui_buttons, clicked): added buttons to select
  operation
2010-09-23 23:18:46 -03:00
Werner Almesberger
fbbbd29a28 Minor level.c cleanup.
- solidify/level.c (draw_map): remove, and use draw_image instead
- solidify/level.c (scroll_z): removed commented-out root->window
  initialization
2010-09-23 22:30:47 -03:00
Werner Almesberger
cef7cd5e18 Added interactive 2D transformation (working towards overlapping)
- solidify/Makefile (OBJS): added overlap.o
- solidify/Makefile (CFLAGS): added -O9 to speed up rotation a little
- solidify/array.h, solidify/array.c (get_bounded): like get(), but returns
  UNDEF if the indices are outside the array
- solidify/face.h (struct face, struct matrix), solidify/face.c (read_file):
  added a 2D transformation matrix to "struct face"
- solidify/overlap.h, solidify/overlap.c: show a face with 2D transformation
2010-09-23 22:17:19 -03:00
Werner Almesberger
598df91d9f Added copyright headers all over the place. (GPLv2+) 2010-09-23 20:13:48 -03:00
Werner Almesberger
8eed5e3ecb Makefile cleanup and instrumentation (verbosity, dependencies, etc.)
- solidify/Makefile: added verbosity control (default is silent, enable
  verbose output with V=1)
- solidify/Makefile: added "spotless" target
- solidify/Makefile (CFLAGS): moved warning options to CFLAGS_WARN
- solidify/Makefile: added dependency use and generation, with friendly
  permission from fped/Makefile
2010-09-23 20:05:25 -03:00
Werner Almesberger
06b1b08c47 Added red and green band to blue band as further visual clues.
- solidify/level.c (draw_map): moved open-coded "almost at the same height"
  parameter to constant NEAR
- solidify/level.c (draw_map): draw green and red band next to the "near"
  blue band
2010-09-23 19:55:11 -03:00
Werner Almesberger
77a2b2d8c6 ben-lcdframe-front is done at 1 mm and 500 um X/Y resolution. 2010-09-23 13:48:01 -03:00
Werner Almesberger
ca1e348731 ben-lcdframe-back-100um is done. 2010-09-23 08:19:16 -03:00
Werner Almesberger
b5a2d5d8ef Files can now be specified as HTTP/HTTPS URLs.
- solidify/face.c (read_face): moved code into new function read_file
- solidify/face.c (read_face): added wrapper for cached wget of http: and
  https: URLs
2010-09-23 07:22:05 -03:00
Werner Almesberger
6ac06aab7c Control inclination of the z0 plane. (Needs more work.)
- solidify/face.h (struct face), solidify/face.c (read_face),
  solidify/level.c (draw_map, draw_image): introduce inclination of the z0
  plane
- solidify/level.c (draw_map): make blue z == z0 display more continuous
- solidify/level.c (scroll_event): moved z0 shift to scroll_z
- solidify/level.c (scroll_event, scroll_xy): added manipulation of the
  z0 plane's inclination
2010-09-22 19:20:29 -03:00
Werner Almesberger
ecf993e0f2 solidify: set the initial height to the median; uncompress .bz2 on the fly.
- solidify/Makefile, solidify/histo.h, solidify/histo.c: generate a Z
  histogram and find the median height
- solidify/face.c (read_face): set z_ref to the median, not the average
- solidify/face.c (read_face): uncompress .bz2 files on the fly
- solidify/face.c (read_face): don't close standard input (for style)
2010-09-22 17:40:03 -03:00
Werner Almesberger
5f84394774 solidify: fast interactive face to solid converter 2010-09-22 17:04:43 -03:00
Werner Almesberger
d5001c6c4a ben-lcdframe-back-500um is done. 2010-09-21 13:23:15 -03:00
Werner Almesberger
6186a7202e ben-lcdframe-back-1mm is done. 2010-09-21 06:23:21 -03:00
Werner Almesberger
2cf011dcfb ben-baseframe-bottom-100um is done. 2010-09-21 03:57:29 -03:00
Werner Almesberger
3b14f67b31 Put scans on index page in top-down order and added placeholders for still
pending scans.

- web/index.sh: put scans of individual parts in top-down order
- web/index.sh: added placeholders for scans still missing
- index.html: regenerated with changes above
2010-09-19 20:00:56 -03:00
Werner Almesberger
1fd036ec31 ben-baseframe-bottom-500um is done. 2010-09-19 09:54:31 -03:00
Werner Almesberger
b9747fb0a3 ben-baseframe-bottom-1mm is done. 2010-09-18 11:49:26 -03:00
Werner Almesberger
16fab72914 ben-baseframe-top-100um is done. 2010-09-18 09:55:00 -03:00
Werner Almesberger
c7468bda69 Scan main page is now http://downloads.qi-hardware.com/people/werner/ben-scans/
Assorted cleanup.

- web/Makefile: added index upload to downloads.qi-hardware.com
- web/index.sh, index.html: a <P> got abbreviated to just <
- data/jpg/ben-dispshell-inside-100um.jpg: image was a uncropped screenshot,
  oops !
2010-09-17 18:43:21 -03:00
Werner Almesberger
750e72098b ben-baseframe-top: 1 mm and 500 um scans. 2010-09-16 19:18:52 -03:00
Werner Almesberger
d6cbffc7cd ben-dispshell-inside, 500 um and 100 um are done. 2010-09-16 14:42:28 -03:00
Werner Almesberger
65644231a2 ben-dispshell-inside-1mm is done. 2010-08-31 04:31:39 -03:00
Werner Almesberger
1462d9d72f ben-dispshell-outside-100um is done. 2010-08-31 04:23:28 -03:00
Werner Almesberger
aedcb76633 ben-dispshell-outside: 1 mm and 500 um scans are done. 2010-08-29 11:00:08 -03:00
Werner Almesberger
a939369de4 ben-kbd-bottom-100um is not pretty but it's done. (Data files and Web index.) 2010-08-27 15:57:53 -03:00
Werner Almesberger
42f6a9966e Index page update for recent completions.
- web/Makefile: make test.html and index.html phony so that they're rebuilt
  each time we run make (make doesn't know all the dependencies)
- web/index.sh: added ben-bottom-nobat-100um
- web/index.sh: added ben-kbd-top-1mm and ben-kbd-top-500um
- web/index.sh: added complete ben-bottom-inside2 series
- web/index.sh: added pointer to ben-bottom-inside2 to ben-bottom-inside
- web/style.sh (scan_set): add name anchor for each series
2010-08-26 02:11:42 -03:00
Werner Almesberger
988d3f4b70 ben-kbd-bottom, 1mm and 500 um data. 2010-08-26 02:05:32 -03:00
Werner Almesberger
827c705233 ben-bottom-inside2-* data files. 2010-08-26 00:57:10 -03:00
Werner Almesberger
cd3a3b96fd ben-bottom-nobat-100um data files. 2010-08-26 00:34:35 -03:00
Werner Almesberger
32b314875a Index page update for ben-dispbase-back-100um completion.
- web/index.sh: ben-dispbase-back-100um has completed
- web/index.sh: ben-bottom-nobat-100um is running
- index.html: generated from latest index,sh
- bz: path generation was all wrong
2010-08-18 23:28:08 -03:00
Werner Almesberger
7d7fb57fb4 ben-dispbase-back-100um is done. Pushing data files ... 2010-08-18 23:05:12 -03:00
Werner Almesberger
a339d67968 Work around the problem of not being able to just put index.html into Qi, and
have the brower interpret it as HTML when browsing the repository through the
Web interface: generate a test.html by default, with local paths, and generate
the real index.html, with remote URLs, when uploading.

- web/style.sh: only set BASE if not set already in the environment
- web/Makefile: added test.html target and made it the default
- web/index.sh: ben-dispbase-back-100um is running now, switch to "in progress"
- web/index.sh: switched 100 um ben-bottom-nobat scan from "under
  consideration" to "planned". In fact, it's the next in line.
2010-08-04 22:23:57 -03:00
Werner Almesberger
0381184366 Removed obsolete partially done bottom scan. 2010-08-03 14:14:35 -03:00
Werner Almesberger
ae2f7aca9b One more scan, plus some cleanup.
- added ben-dispbase-back-500um
- bz: added "git add" of all the new files (untested)
- index.html: renamed back from index.htm. The sneaky work-around only worked
  halfway.
2010-08-03 13:55:55 -03:00
Werner Almesberger
c7ef1cd6ac Rename index.html to index.htm, in an attempt to work around InDefero's source
highlighting.
2010-08-03 11:46:46 -03:00
Werner Almesberger
8013711504 The git to SVN gateway presents index.html as source and not as plain HTML at
the moment, so we keep the old page on www.almesberger.net for now.

- web/style.sh (BASE): introduced URL prefix
- web/Makefile: upload only index.html to www.almesberger.net
- index.html: regenerated, for consistency (it currently doesn't serve any
  purpose)
2010-08-03 11:00:29 -03:00
Werner Almesberger
1d82537272 Initial commit. (~105 MB) 2010-08-03 09:44:59 -03:00