From: mth <mt...@mt...> - 2002-11-16 01:36:18
|
I have been working on the code which does drives the transformations for rotation, zooming, and translation. By learning the code I hope to be able to fix some of the bugs in this area. I just checked in some code which correctly calculates the initial screen scaling factor so that the initial zoom scaling factor is the maximum possible size which still allows all atoms to remain completely on the screen when the molecule is rotated. The goal is to use the window space in its entirety without having the atoms clipped off the edge of the window. The previous calculations were an estimate and were generally quite a bit too small. This is calculated & applied when the molecule is first loaded and when the "Home" button is pressed. I did not change the following because I want feedback from the rest of the team: - the calculation of the "center" of the molecule is still the same - vectors/boxes are still *not* included in the calculation - the zoom size is not changed when the window is resized Please give me your opinions on these items. Miguel |