local_proto.h 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. #ifndef __LOCAL_PROTO_H__
  2. #define __LOCAL_PROTO_H__
  3. #include <grass/nviz.h>
  4. /* module flags and parameters */
  5. struct GParams
  6. {
  7. struct Flag *mode_all;
  8. struct Option
  9. /* surface */
  10. *elev_map, *elev_const, *color_map, *color_const,
  11. *mask_map, *transp_map, *transp_const, *shine_map, *shine_const,
  12. *emit_map, *emit_const,
  13. /* surface draw mode */
  14. *mode, *res_fine, *res_coarse, *style, *shade, *wire_color, *surface_pos,
  15. /* vector lines */
  16. *vlines, *vline_width, *vline_color, *vline_mode, *vline_height, *vline_pos,
  17. *vline_layer, *vline_color_column, *vline_width_column,
  18. /* vector points */
  19. *vpoints, *vpoint_size, *vpoint_marker, *vpoint_color, *vpoint_width, *vpoint_pos,
  20. *vpoint_layer, *vpoint_size_column, *vpoint_marker_column, *vpoint_color_column, *vpoint_width_column,
  21. /* volumes */
  22. *volume, *volume_mode, *volume_shade, *volume_pos, *volume_res, *isosurf_level,
  23. *isosurf_color_map, *isosurf_color_const, *isosurf_transp_map, *isosurf_transp_const,
  24. *isosurf_shine_map, *isosurf_shine_const, *slice_pos, *slice, *slice_transp,
  25. /* misc */
  26. *exag, *bgcolor,
  27. /* cutting planes */
  28. *cplane, *cplane_pos, *cplane_rot, *cplane_tilt, *cplane_shading,
  29. /* viewpoint */
  30. *pos, *height, *persp, *twist, *focus,
  31. /* output */
  32. *output, *format, *size,
  33. /* lighting */
  34. *light_pos, *light_color, *light_bright, *light_ambient,
  35. /* fringe */
  36. *fringe, *fringe_color, *fringe_elev,
  37. /* north arrow */
  38. *north_arrow, *north_arrow_size, *north_arrow_color;
  39. };
  40. /* args.c */
  41. void parse_command(int, char **, struct GParams *);
  42. int color_from_cmd(const char *);
  43. int opt_get_num_answers(const struct Option *);
  44. void check_parameters(const struct GParams *);
  45. /* surface.c */
  46. int load_rasters(const struct GParams *, nv_data *);
  47. void surface_set_draw_mode(const struct GParams *);
  48. /* vector.c */
  49. int load_vlines(const struct GParams *, nv_data *);
  50. int load_vpoints(const struct GParams *, nv_data *);
  51. int vlines_set_attrb(const struct GParams *);
  52. int vpoints_set_attrb(const struct GParams *);
  53. int check_thematic(const struct GParams *, int);
  54. /* volume.c */
  55. int load_rasters3d(const struct GParams *, nv_data *);
  56. int add_isosurfs(const struct GParams *, nv_data *);
  57. int add_slices(const struct GParams *, nv_data *);
  58. /* cutting planes */
  59. void draw_cplane(const struct GParams *, nv_data *);
  60. /* write_img.c */
  61. int write_img(const char *, int);
  62. #endif /* __LOCAL_PROTO_H__ */