draw.cpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*!
  2. \file draw.cpp
  3. \brief Experimental C++ wxWidgets Nviz prototype -- Draw map objects to GLX context
  4. COPYRIGHT: (C) 2008 by the GRASS Development Team
  5. This program is free software under the GNU General Public
  6. License (>=v2). Read the file COPYING that comes with GRASS
  7. for details.
  8. Based on visualization/nviz/src/draw.c and
  9. visualization/nviz/src/togl_flythrough.c
  10. \author Updated/modified by Martin Landa <landa.martin gmail.com> (Google SoC 2008)
  11. \date 2008
  12. */
  13. #include "nviz.h"
  14. /*!
  15. \brief Draw map
  16. \param quick true for forcing coarse draw mode
  17. */
  18. void Nviz::Draw(bool quick, bool quick_vlines, bool quick_vpoints)
  19. {
  20. Nviz_draw_cplane(data, -1, -1); // ?
  21. if (quick) {
  22. Nviz_draw_quick(data, quick_vlines, quick_vpoints);
  23. }
  24. else {
  25. Nviz_draw_all (data);
  26. }
  27. G_debug(1, "Nviz::Draw(): quick=%d",
  28. quick);
  29. return;
  30. }
  31. /*!
  32. \brief Erase map display (with background color)
  33. */
  34. void Nviz::EraseMap()
  35. {
  36. GS_clear(data->bgcolor);
  37. G_debug(1, "Nviz::EraseMap()");
  38. return;
  39. }