writeVTKData.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /****************************************************************************
  2. *
  3. * MODULE: r3.out.vtk
  4. *
  5. * AUTHOR(S): Original author
  6. * Soeren Gebbert soerengebbert at gmx de
  7. * 27 Feb 2006 Berlin
  8. * PURPOSE: Converts 3D raster maps (RASTER3D) 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 __R3_OUT_VTK_WRITE_DATA_H__
  18. #define __R3_OUT_VTK_WRITE_DATA_H__
  19. struct input_maps;
  20. /*Write the point coordinates of type point (1) or celldata (0) */
  21. void write_vtk_points(input_maps * in, FILE * fp, RASTER3D_Region region, int dp,
  22. int type, double scale);
  23. /*Write the uGrid Cells */
  24. void write_vtk_unstructured_grid_cells(FILE * fp, RASTER3D_Region region);
  25. /*Write the outputdata */
  26. void write_vtk_data(FILE * fp, void *map, RASTER3D_Region region, char *varname,
  27. int dp);
  28. /*Write the rgb voxel data to the output */
  29. void write_vtk_rgb_data(void *map_r, void *map_g, void *map_b, FILE * fp,
  30. const char *string, RASTER3D_Region region, int dp);
  31. /*Write the vector data to the output */
  32. void write_vtk_vector_data(void *map_x, void *map_y, void *map_z, FILE * fp,
  33. const char *string, RASTER3D_Region region, int dp);
  34. #endif