cost.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 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. /***************************************************************/
  23. /* */
  24. /* cost.h in ~/src/Gcost */
  25. /* */
  26. /* This header file defines the data structure of a */
  27. /* point structure containing various attributes of */
  28. /* a grid cell. */
  29. /* */
  30. /***************************************************************/
  31. #ifndef __COST_H__
  32. #define __COST_H__
  33. struct cost
  34. {
  35. double min_cost;
  36. unsigned int age;
  37. int row;
  38. int col;
  39. };
  40. /* heap.c */
  41. struct cost *insert(double, int, int);
  42. struct cost *get_lowest(void);
  43. int delete(struct cost *);
  44. int init_heap(void);
  45. int free_heap(void);
  46. #endif /* __COST_H__ */