[email protected] wrote: > Send FloatCanvas mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of FloatCanvas digest..." > > > Today's Topics: > > 1. Re: MultiLayer and in-touch edit in FloatCanvas? > (Christopher Barker) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 13 Jul 2009 08:51:17 -0700 > From: Christopher Barker <[email protected]> > Subject: Re: [fc] MultiLayer and in-touch edit in FloatCanvas? > To: "Mailing List for the wxPython Float Canvas." > <[email protected]> > Message-ID: <[email protected]> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Yiyang Tsui wrote: > >> I'm looking for Canvas Widget based on wxPython. After trying >> the FloatCanvas Demo, the zooming function works >> quite well. But since this is for gis map application, it would be nice >> that the multilayer(overlaping images?) >> > > I'm not exactly sure what you mean by this. FloatCanvas supports two > primary layers, the background and foreground. The idea for hat is that > if you have a complex drawing that takes a while to render, you can put > that in the background (the default), and then put something that is > changing in the foreground, and only the foreground needs to be redrawn. > > Other than that, you can built your own "layers" by using a group > object. A group object is an object that holds any number of other > DrawObjects that can be shown and hidden, added an removed, etc, as a > single object. > > For example, the map in gis application, first layer is the road, second layer is the river ...etc, then the final map with all these information can be displayed layer by layer , the properties in each layer can be edited, and layers can be enabled or disabled. So it sounds that the idea of group object will work in this case. It would be great if there is an example available! Thanks!
Yiyang > > and in-touch edit (such as > >> clicking a point on the plot can trigger a property editing dialog) be >> done easily. >> > > yes, there are a full set of event on either the canvas itself or on a > given object. > > >> Any >> examples? if not, any suggestion that I can follow to start with? >> > > The main demo is a bit busy, but most of the features are there. There > is also a set of stand alone demos, each using a couple features. They > can be found in SVN here: > > http://svn.wxwidgets.org/svn/wx/wxPython/3rdParty/FloatCanvas/Demos/ > > -Chris > > > -- Yiyang Tsui [email protected] www.sjgeophysics.com Phone: +1-604-582-1100 _______________________________________________ FloatCanvas mailing list [email protected] http://paulmcnett.com/cgi-bin/mailman/listinfo/floatcanvas
