mask_functions.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /***************************************************************************
  2. * MODULE: this structs/functions are used by r3.mask and r3.null
  3. *
  4. * AUTHOR(S): Roman Waupotitsch, Michael Shapiro, Helena Mitasova,
  5. * Bill Brown, Lubos Mitas, Jaro Hofierka
  6. *
  7. * COPYRIGHT: (C) 2005 by the GRASS Development Team
  8. *
  9. * This program is free software under the GNU General Public
  10. * License (>=v2). Read the file COPYING that comes with GRASS
  11. * for details.
  12. *
  13. *****************************************************************************/
  14. /*Headerfile for global structs and funcktions */
  15. #ifndef __MASK_FUNCTIONS_H__
  16. #define __MASK_FUNCTIONS_H__
  17. #include <grass/raster.h>
  18. /*Structures */
  19. typedef struct _d_interval
  20. {
  21. double low, high;
  22. int inf;
  23. struct _d_interval *next;
  24. } d_Interval;
  25. typedef struct _d_mask
  26. {
  27. d_Interval *list;
  28. } d_Mask;
  29. /*Prototypes for mask_functions.c */
  30. int mask_d_select(DCELL * x, d_Mask * mask);
  31. extern DCELL mask_match_d_interval(DCELL x, d_Interval * I);
  32. void parse_vallist(char **vallist, d_Mask ** d_mask);
  33. #endif