Comment 2 for bug 621627

Revision history for this message
Maximilian Albert (cilix) wrote :

This shouldn't be very hard to implement. I won't have time to do it myself in the next 1-2 months, but here are a few random comments/questions that come to mind just from reading this.

One way to implement it is as an extension that simply counts the items inside the outline as described in the original request. However, it might be much more useful to provide a way to *select* the items instead of counting them directly. The number of selected items would then be displayed in the status bar, which solves the original request. But in addition, they can easily be manipulated further, which might be quite useful for all kinds of other use cases not related to public transport consulting. Perhaps it would even be worthwhile to include this kind of functionality in the Edit menu (e.g., 'Select all within object' or something to that effect), although it might be too specific to warrant a menu entry on its own.

A couple of further thoughts:

- Apart from counting *all* item swithin the given outline, there should be a way to filter them - say, by type (path, ellipse, rectangle, etc.) or based on their id (e.g., if it contains a given regular expression).

- What should it mean for an item to lie 'inside' the outline? E.g., an item could be considered inside if it lies fully within the outline, or if its center lies within (but its boundary might cross the outline), etc. There should be an option to specify this.