[GRASS-dev] NVIZ state file format (was GRASS6.3 on Windows, nviz)
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.
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);
> To move to a view position ...
> tmp = 100.;
> tmp = 100.;
> tmp = 2500.;
> Hope this helps.
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
More information about the grass-dev