I am wondering how a 2D canvas would be implemented. I think of the following steps as its core design.<br><ol><li>For all the objects to be displayed create a Spatial Index</li><li>At the time of display, iterate through all shapes that overlap the view area and zoom</li>
<li>Display these in the drawing area after appropriate transformation.</li></ol>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.<br>
<br>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.<br><br>Thanks in advance.<br>
Manavan<br>