eclipse-sumo / sumo

Eclipse SUMO is an open source, highly portable, microscopic and continuous traffic simulation package designed to handle large networks. It allows for intermodal simulation including pedestrians and comes with a large set of tools for scenario creation.
https://eclipse.dev/sumo
Eclipse Public License 2.0
2.44k stars 1.38k forks source link

Selection rectangle rotates with the viewport #14421

Open m-kro opened 4 months ago

m-kro commented 4 months ago

As a user I expect the selection rectangle to remain parallel to the window border when the viewport is rotated. In some occasions it helps to rotate the viewport to select some objects which are aligned to e.g. 45 degrees. Too bad that at the moment the selection rectangle is rotated as well.

namdre commented 4 months ago

Drawing a non-rotated rectangle is easy enough (diff.txt) but actually doing the selection in a rectangle that is rotated w.r.t the coordinate system is a lot more involved. It basically amounts to permitting selection within an arbitrary polygon (a useful feature).