stash.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /****************************************************************************
  2. *
  3. * MODULE: r.cost
  4. *
  5. * AUTHOR(S): Antony Awaida - IESL - M.I.T.
  6. * James Westervelt - CERL
  7. * Pierre de Mouveaux <pmx audiovu com>
  8. * Eric G. Miller <egm2 jps net>
  9. *
  10. * PURPOSE: Outputs a raster map layer showing the cumulative cost
  11. * of moving between different geographic locations on an
  12. * input raster map layer whose cell category values
  13. * represent cost.
  14. *
  15. * COPYRIGHT: (C) 2006-2009 by the GRASS Development Team
  16. *
  17. * This program is free software under the GNU General Public
  18. * License (>=v2). Read the file COPYING that comes with GRASS
  19. * for details.
  20. *
  21. ***************************************************************************/
  22. #ifndef __STASH_H__
  23. #define __STASH_H__
  24. #include <stdio.h>
  25. #define CUM_COST_LAYER 1
  26. #define COST_LAYER 2
  27. #define START_PT 3
  28. #define MOVE_DIR_LAYER 4
  29. struct start_pt
  30. {
  31. int row;
  32. int col;
  33. int value;
  34. struct start_pt *next;
  35. };
  36. extern char cum_cost_layer[], move_dir_layer[];
  37. extern char cost_layer[];
  38. extern struct start_pt *head_start_pt;
  39. extern struct start_pt *head_end_pt;
  40. int process_answers(char **, struct start_pt **, struct start_pt **);
  41. int time_to_stop(int, int);
  42. #endif /* __STASH_H__ */