~ubuntu-branches/ubuntu/precise/grass/precise

« back to all changes in this revision

Viewing changes to gui/wxpython/nviz/draw.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine
  • Date: 2011-04-13 17:08:41 UTC
  • mfrom: (8.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110413170841-ss1t9bic0d0uq0gz
Tags: 6.4.1-1
* New upstream version.
* Now build-dep on libjpeg-dev and current libreadline6-dev.
* Removed patch swig: obsolete.
* Policy bumped to 3.9.2, without changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
   \file nviz/draw.cpp
3
 
   
4
 
   \brief wxNviz extension (3D view mode) - draw map objects to GLX context
5
 
   
6
 
   This program is free software under the GNU General Public
7
 
   License (>=v2). Read the file COPYING that comes with GRASS
8
 
   for details.
9
 
   
10
 
   (C) 2008-2009 by Martin Landa, and the GRASS development team
11
 
   
12
 
   \author Martin Landa <landa.martin gmail.com> (Google SoC 2008)
13
 
*/
14
 
 
15
 
#include "nviz.h"
16
 
 
17
 
/*!
18
 
  \brief Draw map
19
 
 
20
 
  Draw quick mode:
21
 
   - DRAW_QUICK_SURFACE
22
 
   - DRAW_QUICK_VLINES
23
 
   - DRAW_QUICK_VPOINTS
24
 
   - DRAW_QUICK_VOLUME
25
 
   
26
 
  \param quick if true draw in wiremode
27
 
  \param quick_mode quick mode
28
 
*/
29
 
void Nviz::Draw(bool quick, int quick_mode)
30
 
{
31
 
    Nviz_draw_cplane(data, -1, -1); // ?
32
 
 
33
 
    if (quick) {
34
 
        Nviz_draw_quick(data, quick_mode);
35
 
    }
36
 
    else {
37
 
        Nviz_draw_all (data); 
38
 
    }
39
 
 
40
 
    G_debug(1, "Nviz::Draw(): quick=%d",
41
 
            quick);
42
 
    
43
 
    return;
44
 
}
45
 
 
46
 
/*!
47
 
  \brief Erase map display (with background color)
48
 
*/
49
 
void Nviz::EraseMap()
50
 
{
51
 
    GS_clear(data->bgcolor);
52
 
 
53
 
    G_debug(1, "Nviz::EraseMap()");
54
 
 
55
 
    return;
56
 
}