I am wondering how a 2D canvas would be implemented. I think of the following steps as its core design.
1. For all the objects to be displayed create a Spatial Index 2. At the time of display, iterate through all shapes that overlap the view area and zoom 3. Display these in the drawing area after appropriate transformation. Please advice if there is a better way that is adopted. If this is the usual technique, which kind of Spatial index is usually used for a zoomable canvas widget. I googled for this with different key words. Though there are many canvas implementations available to download, I could not find any writings on the subject. Please point me if there is one you know. Thanks in advance. Manavan
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
