openpixi/openpixi — pull request #15 by kstrel (2012-05-17 19:15:25+00:00)
Title: Decoupling of display-resize and simulation-resize

This decouples the resize of the gui-window from the resize of the simulation by introducing scaling variables sx and sy.

Previously the particle radius was used directly to display the particles, therefore this quantity needed to be set accordingly to the window size and the number of particles. This has been removed, the simulation now determines automatically what size should be displayed according to the total number of particles.

I have not thought much about performance or functionality because obviously we will have to rewrite big parts of the display method (look at all those ifs and the arrow display, all of this is also not compatible with the actual arrangment of fields on the grid) anyway.