[GRASS-dev] NVIZ state file format (was GRASS6.3 on Windows, nviz)

Michael Barton michael.barton at asu.edu
Thu Aug 30 11:17:27 EDT 2007


Thanks for making this available Bob. There has been considerable progress
recently in compiling wxPython on various systems by folks on the dev list,
and a number of new pre-compiled packages out.

What kind system are you using? Maybe there is someone who can help.


Michael


On 8/30/07 7:24 AM, "Bob Covill" <bcovill at tekmap.ns.ca> wrote:

> I have uploaded my grass_gtk Glade project which includes the ogsf code
> to http://www.tekmap.ns.ca/tekmap_download/grass_gtk.tar.bz2 . The ogsf
> calls are made in src/visualization. These include ogsf initialization,
> raster loading, vector loading, setting lights, fast draw, and full
> draw, navigation, etc. For example, to load a raster ....
> new_id = GS_new_surface();
> ret = GS_load_att_map(new_id, name, ATT_TOPO);
> ...
> calc resolutions
> ...
> GS_set_drawres(new_id, max2, max2, max, max);
> GS_set_drawmode(new_id, DM_GOURAUD | DM_POLY | DM_GRID_SURF );
> ret = GS_load_att_map(new_id, name, ATT_COLOR); /* set color */
> ret = GS_set_att_const(new_id, ATT_TRANSP, 0.0);
> GS_set_global_exag(5.0);
> GS_set_focus_center_map(new_id);
> 
> To move to a view position ...
> tmp[0] = 100.;
> tmp[1] = 100.;
> tmp[2] = 2500.;
> GS_moveto(tmp);
> 
> Hope this helps.
> 
> --
> Bob
> 

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list