nviz.h 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #ifndef GRASS_NVIZDEFS_H
  2. #define GRASS_NVIZDEFS_H
  3. /* change_view.c */
  4. int Nviz_resize_window(int, int);
  5. int Nviz_update_ranges(nv_data *);
  6. int Nviz_set_viewpoint_position(double, double);
  7. void Nviz_get_viewpoint_position(double *, double *);
  8. int Nviz_set_viewpoint_height(double);
  9. void Nviz_get_viewpoint_height(double *);
  10. int Nviz_set_viewpoint_persp(int);
  11. int Nviz_set_viewpoint_twist(int);
  12. int Nviz_change_exag(nv_data *, double);
  13. int Nviz_look_here(double, double);
  14. void Nviz_get_modelview(double *);
  15. void Nviz_set_rotation(double, double, double, double);
  16. void Nviz_unset_rotation(void);
  17. void Nviz_init_rotation(void);
  18. void Nviz_flythrough(nv_data *, float *, int *, int);
  19. /* cplanes_obj.c */
  20. int Nviz_new_cplane(nv_data *, int);
  21. int Nviz_on_cplane(nv_data *, int);
  22. int Nviz_off_cplane(nv_data *, int);
  23. int Nviz_draw_cplane(nv_data *, int, int);
  24. int Nviz_num_cplanes(nv_data *);
  25. int Nviz_get_current_cplane(nv_data *);
  26. int Nviz_set_cplane_rotation(nv_data *, int, float, float, float);
  27. int Nviz_get_cplane_rotation(nv_data *, int, float *, float *, float *);
  28. int Nviz_set_cplane_translation(nv_data *, int, float, float, float);
  29. int Nviz_get_cplane_translation(nv_data *, int, float *, float *, float *);
  30. int Nviz_set_fence_color(nv_data *, int);
  31. int Nviz_set_cplane_here(nv_data *, int, float, float);
  32. /* draw.c */
  33. int Nviz_draw_all_surf(nv_data *);
  34. int Nviz_draw_all_vect(void);
  35. int Nviz_draw_all_site(void);
  36. int Nviz_draw_all_vol(void);
  37. int Nviz_draw_all(nv_data *);
  38. int Nviz_draw_quick(nv_data *, int);
  39. int Nviz_load_image(GLubyte *, int, int, int);
  40. void Nviz_draw_image(int, int, int, int, int);
  41. void Nviz_set_2D(int, int);
  42. void Nviz_del_texture(int);
  43. void Nviz_get_max_texture(int *);
  44. /* exag.c */
  45. int Nviz_get_exag_height(double *, double *, double *);
  46. double Nviz_get_exag();
  47. /* lights.c */
  48. int Nviz_set_light_position(nv_data *, int, double, double, double, double);
  49. int Nviz_set_light_bright(nv_data *, int, double);
  50. int Nviz_set_light_color(nv_data *, int, int, int, int);
  51. int Nviz_set_light_ambient(nv_data *, int, double);
  52. int Nviz_init_light(nv_data *, int);
  53. int Nviz_new_light(nv_data *);
  54. void Nviz_draw_model(nv_data *);
  55. /* map_obj.c */
  56. int Nviz_new_map_obj(int, const char *, double, nv_data *);
  57. int Nviz_set_attr(int, int, int, int, const char *, double, nv_data *);
  58. void Nviz_set_surface_attr_default();
  59. int Nviz_set_vpoint_attr_default();
  60. int Nviz_set_volume_attr_default();
  61. int Nviz_unset_attr(int, int, int);
  62. /* nviz.c */
  63. void Nviz_init_data(nv_data *);
  64. void Nviz_destroy_data(nv_data *);
  65. void Nviz_set_bgcolor(nv_data *, int);
  66. int Nviz_get_bgcolor(nv_data *);
  67. int Nviz_color_from_str(const char *);
  68. struct fringe_data *Nviz_new_fringe(nv_data *, int, unsigned long,
  69. double, int, int, int, int);
  70. struct fringe_data *Nviz_set_fringe(nv_data *, int, unsigned long,
  71. double, int, int, int, int);
  72. void Nviz_draw_fringe(nv_data *data);
  73. int Nviz_draw_arrow(nv_data *);
  74. int Nviz_set_arrow(nv_data *, int, int, float, unsigned int);
  75. void Nviz_delete_arrow(nv_data *);
  76. struct scalebar_data * Nviz_new_scalebar(nv_data *, int, float *, float, unsigned int);
  77. struct scalebar_data * Nviz_set_scalebar(nv_data *, int , int, int, float, unsigned int);
  78. void Nviz_draw_scalebar(nv_data *);
  79. void Nviz_delete_scalebar(nv_data *, int);
  80. /* position.c */
  81. void Nviz_init_view(nv_data *);
  82. int Nviz_set_focus_state(int);
  83. int Nviz_set_focus_map(int, int);
  84. int Nviz_has_focus(nv_data *);
  85. int Nviz_set_focus(nv_data *, float, float, float);
  86. int Nviz_get_focus(nv_data *, float *, float *, float *);
  87. float Nviz_get_xyrange(nv_data *);
  88. int Nviz_get_zrange(nv_data *, float *, float *);
  89. float Nviz_get_longdim(nv_data *);
  90. /* render.c */
  91. struct render_window *Nviz_new_render_window();
  92. void Nviz_init_render_window(struct render_window *);
  93. void Nviz_destroy_render_window(struct render_window *);
  94. int Nviz_create_render_window(struct render_window *, void *, int, int);
  95. int Nviz_make_current_render_window(const struct render_window *);
  96. #endif /* GRASS_NVIZDEFS_H */