Hello,
Let's say I have a JmolViewer in a panel and a CDKmolecule like this:
JmolViewer viewer;
CDKMolecule mol2;
How do I load the molecule in the viewer?
Something like
viewer.loadMolecule(mol2);
similar to when opening a file with
'viewer.openFile(filename)'
Is this possible? I do not really get your previous explanation (see
below). Could you maybe provide some example-source?
Thanks for a great viewer!
.../Ola
On Mon, 2004-09-06 at 20:47, Miguel wrote:
> Martin wrote:
>
> > Is there a way to directly display a CDK molecule in Jmol?
>
> Yes
>
> > Or do I have
> > to write the CDK molecule to a file and read the file from Jmol?
>
> No, you do not need to write out a file.
>
> Jmol reads molecular models through the org.model.api.ModelAdapter API.
>
> File IO is normally done using an implementation of this API called the
> SmarterModelAdapter.
>
> Jmol can read CDK molecular structures using the
> org.jmol.adapter.cdk.CdkModelAdapter class, another implementation of the
> ModelAdapter API. The fundamental features work fine, but there may be
> advanced features that are not yet in this implementation.
>
> A developer can easily implement this interface so that any molecular
> model with any representation can be displayed in Jmol.
>
> Write Egon or me if you have questions.
>
>
> Miguel
>
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by BEA Weblogic Workshop
> FREE Java Enterprise J2EE developer tools!
> Get your free copy of BEA WebLogic Workshop 8.1 today.
> http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
> _______________________________________________
> Cdk-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/cdk-user
-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Jmol-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-users