writeascii.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /****************************************************************************
  2. *
  3. * MODULE: r.out.vtk
  4. *
  5. * AUTHOR(S): Original author
  6. * Soeren Gebbert soerengebbert@gmx.de
  7. * 08 23 2005 Berlin
  8. * PURPOSE: Converts raster maps into the VTK-Ascii format
  9. *
  10. * COPYRIGHT: (C) 2005 by the GRASS Development Team
  11. *
  12. * This program is free software under the GNU General Public
  13. * License (>=v2). Read the file COPYING that comes with GRASS
  14. * for details.
  15. *
  16. *****************************************************************************/
  17. #ifndef __R_OUT_VTK_WRITEASCII_H__
  18. #define __R_OUT_VTK_WRITEASCII_H__
  19. struct Cell_head; /*Definition needed here */
  20. void write_vtk_normal_header(FILE * fp, struct Cell_head region,
  21. double elevation, int type);
  22. void write_vtk_structured_elevation_header(FILE * fp,
  23. struct Cell_head region);
  24. void write_vtk_polygonal_elevation_header(FILE * fp, struct Cell_head region);
  25. void write_vtk_celldata_header(FILE * fp, struct Cell_head region);
  26. void write_vtk_pointdata_header(FILE * fp, struct Cell_head region);
  27. void write_vtk_data(int fd, FILE * fp, char *varname, struct Cell_head region,
  28. int out_type, char *null_value, int dp);
  29. void write_vtk_rgb_image_data(int redfd, int greenfd, int bluefd, FILE * fp,
  30. const char *varname, struct Cell_head region,
  31. int out_type, int dp);
  32. void write_vtk_vector_data(int xfd, int yfd, int zfd, FILE * fp,
  33. const char *varname, struct Cell_head region,
  34. int out_type, int dp);
  35. void write_vtk_structured_coordinates(int fd, FILE * fp, char *varname,
  36. struct Cell_head region, int out_type,
  37. char *null_value, double scale, int dp);
  38. void write_vtk_polygonal_coordinates(int fd, FILE * fp, char *varname,
  39. struct Cell_head region, int out_type,
  40. char *null_value, double scale,
  41. int polytype, int dp);
  42. #endif