home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / listings / v_10_08 / qc.doc < prev    next >
Text File  |  1992-09-19  |  3KB  |  59 lines

  1. This package is the source and executable files for my quadcode
  2. implementation, including a simple demo program, as published in
  3. The C Users Journal, August 1992.  Author:
  4.   Kenneth Van Camp
  5.   RD #1 Box 1255
  6.   East Stroudsburg, PA 18301
  7.   (717)223-8620
  8.  
  9. Briefly, a quadcode is a hierarchical data structure that can be used
  10. to represent graphical areas.  They make it easy and fast to relate
  11. territory boundaries to their interiors, which is quite a bit more
  12. complicated than it sounds.  The demo supplied demonstrates this
  13. ability by displaying a familiar territory and allowing the user to
  14. move a cursor over the display.  Every time the cursor is moved, a
  15. small status box at the upper-left corner of the display is updated
  16. to show whether the cursor is inside or outside of the territory.
  17. This is done by interrogating the entire quadcode list, rather than
  18. using any graphical shorcuts, to prove that quadcodes are indeed fast
  19. to access.
  20.  
  21. To run the demo under Windows, just type:
  22.   win qcdemow
  23. There are no command-line options on the Windows version, but you
  24. can toggle quadcode shrinkage with the Options menu.  The shrinkage
  25. option shrinks the size of each quadcode before it is displayed, so
  26. the boundaries between quadcodes can be easily seen.  This is
  27. strictly a display option, and has no effect on the interrogation
  28. of the quadcode list.
  29.  
  30. To run the demo under DOS, you must have the *.BGI files in your
  31. current directory (or in a directory named by the environment
  32. variable BGIDIR).  Then type:
  33.   qcdemod
  34. Alternatively, type 'qcdemod -n' to plot without quadcode shrinkage.
  35. Press Escape to exit, or press 's' to toggle the cursor speed between
  36. fast and slow.
  37.  
  38. Following are the contents of this diskette:
  39.  
  40. qc.doc               This file
  41. makefile             Makefile to compile the EXE's using Borland C++
  42. qc.cpp               Quadcode class source
  43. qc.h                 Quadcode & region header file
  44. qcreg.cpp            Region class source
  45. qcdemod.cpp          Demo program source for MSDOS
  46. qcdemod.exe          Demo program executable for MSDOS
  47. qcdemow.cpp          Demo program source for Windows
  48. qcdemow.h            Header file for windows demo
  49. qcdemow.exe          Demo program executable for Windows
  50. qcdemow.rc           Resource file for Windows program
  51. qcdemow.def          Windows definition file for QCDemoW
  52. winincl.cpp          Used to precompile Windows header file
  53. att.bgi              Borland Graphic Interface file (used by QCDemoD)
  54. cga.bgi               /
  55. egavga.bgi             /
  56. herc.bgi                /
  57. ibm8514.bgi              /
  58. pc3270.bgi                /
  59.