local_proto.h 2.4 KB

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