> Hi Miguel,
>
> We would like to be able to get and set orientation of molecules through
> the API, but
> the method does not seem to be public:
>
>   String getOrientationText() {
>     return transformManager.getOrientationText();
>   }
>
> I guess this method returns 4 numbers: the first three are the coordinates
> of the
> axis about which the molecule is to be rotated, the last one is the angle.
>
> Is it possible to make this method public? And better, have a symmetrical
> public method
> setOrientation(String s) that receives 4 numbers (three coordinates and
> one angle)
> to set the orientation of the molecule?
>
> Thank you very much in advance,
> Charles

The right way to access this is through the script command 'show orientation'

You can then take the results and feed them back into the moveTo command

Be advised that the results may be many more than 4 numbers. Zoom &
translations are included. Currently it does not behave correctly when the
center of rotation has been shifted away from the default. I anticipate
that more parameters will be added to this in the future.

I strongly recommend that you consider it a text script that you can
subsequently execute.


Miguel


--------------------------------------------------
Michael T. Howard              [EMAIL PROTECTED]
23 Algonquin Avenue            tele 978-474-4559
Andover,  MA 01810-5527        cell 978-886-3697
USA                            fax  978-662-3126
--------------------------------------------------


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Jmol-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to