~ubuntu-branches/ubuntu/vivid/grass/vivid-proposed

« back to all changes in this revision

Viewing changes to visualization/nviz/src/quick_draw.c

  • Committer: Package Import Robot
  • Author(s): Bas Couwenberg
  • Date: 2015-02-20 23:12:08 UTC
  • mfrom: (8.2.6 experimental)
  • Revision ID: package-import@ubuntu.com-20150220231208-1u6qvqm84v430b10
Tags: 7.0.0-1~exp1
* New upstream release.
* Update python-ctypes-ternary.patch to use if/else instead of and/or.
* Drop check4dev patch, rely on upstream check.
* Add build dependency on libpq-dev to grass-dev for libpq-fe.h.
* Drop patches applied upstream, refresh remaining patches.
* Update symlinks for images switched from jpg to png.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* quick_draw:
2
 
 ** uses libgsf to draw wire frame surfaces
3
 
 */
4
 
#include <stdlib.h>
5
 
#include <grass/gis.h>
6
 
#include "tk.h"
7
 
#include "interface.h"
8
 
 
9
 
int Nquick_draw_cmd(Nv_data * dc, Tcl_Interp * interp)
10
 
{
11
 
    int i, max;
12
 
    int *surf_list, *vol_list;
13
 
 
14
 
    GS_set_draw(GSD_BACK);
15
 
    GS_clear(dc->BGcolor);
16
 
    GS_ready_draw();
17
 
    surf_list = GS_get_surf_list(&max);
18
 
 
19
 
    max = GS_num_surfs();
20
 
    for (i = 0; i < max; i++) {
21
 
        if (check_blank(interp, surf_list[i]) == 0) {
22
 
            GS_draw_wire(surf_list[i]);
23
 
        }
24
 
    }
25
 
 
26
 
    G_free(surf_list);
27
 
 
28
 
    vol_list = GVL_get_vol_list(&max);
29
 
    max = GVL_num_vols();
30
 
    for (i = 0; i < max; i++) {
31
 
        if (check_blank(interp, vol_list[i]) == 0) {
32
 
            GVL_draw_wire(vol_list[i]);
33
 
        }
34
 
    }
35
 
 
36
 
    GS_done_draw();
37
 
 
38
 
/*** ACS_MODIFY flythrough  ONE LINE ***************/
39
 
    flythrough_postdraw_cb();
40
 
 
41
 
    return (TCL_OK);
42
 
}