I changed the thread title to avoid confusement :)
Thanks for the info, I understand the mechanism a bit better now. I
already have a request:
Exporter.initialize gets the information from Viewer passed to it.
Povray needs to get its default window size from there, it's currently
done like this:
float zoom = viewer.getRotationRadius() * 2;
zoom *= 1.1f; // for some reason I need a little more margin
zoom /= viewer.getZoomPercentFloat() / 100f;
transformMatrix = viewer.getUnscaledTransformMatrix();
if ((screenWidth <= 0) || (screenHeight <= 0)) {
screenWidth = viewer.getScreenWidth();
screenHeight = viewer.getScreenHeight();
}
int minScreenDimension =
screenWidth < screenHeight ? screenWidth : screenHeight;
Could you put a similar call in Exporter.initialize? Later on one
would also like to give the output picture size as an option to the
export command, of course.
And could you add a function to get the date string as well, just to
print in the header of the exported files?
--
Greetings, Pim
http://www.molmod.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers