[GRASS5] Re: gis.m: Zoom and region overhaul, bindings

Michael Barton michael.barton at asu.edu
Wed May 3 22:33:11 EDT 2006


Wow. This and the packaging sounds like a great improvement--turning my
amature attempt at interface building into something quite slick. You should
stick your name on the headers if you haven't yet done so. I'm looking
forward to trying it out. Can I just download all the gis.m directory or is
there stuff elsewhere?

Michael
__________________________________________
Michael Barton, Professor of Anthropology
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



> From: Cedric Shock <cedricgrass at shockfamily.net>
> Date: Wed, 3 May 2006 18:39:44 -0700
> To: <grass5 at grass.itc.it>
> Cc: Michael Barton <michael.barton at asu.edu>, Glynn Clements
> <glynn at gclements.plus.com>
> Subject: gis.m: Zoom and region overhaul, bindings
> 
> Hey,
> 
> I tossed some more changes to mapcanvas.tcl the CVS direction.
> 
> I eliminated almost all of the usage of g.region in mapcanvas.tcl. It is now
> used for the following:
> 1. Saving the current region as gism_temp_region before rendering
> 2. Setting the region to match the zoom before rendering
> 2. Loading gism_temp_region after rendering to get the current region back
> 4. Getting zoom boxes from the current region / default region / saved
> regions.
> 
> There is no longer any need for the mon_* regions (they are no longer made).
> 
> The region previous_zoom is no longer used. Previous zooms are now independent
> of each other on each display.
> 
> The bounds for zooming and panning are stored in a mapcanvas variable
> "moitor_zooms" instead of in regions. There is a history of previous zooms.
> It is currently set to 7 (arbitrary).
> 
> The background changed region affecting rendering bug is gone.
> 
> I cleaned up and greatly simplified the bindings for switching trees in the
> gis.m main window. Clicking on windows or "alt-tabbing" to them now brings up
> their tree in the gis.m main window.
> 
> --Cedric




More information about the grass-dev mailing list