Tommi Hassinen wrote:

Hello.

After a while I thought to pick up the comp.chem. plugin again. Earlier I
was told to look at JmolModelAdapter interface for accessing atoms and
bonds from jmol.

But now I'm stuck because I see no way how I can access JmolModelAdapter
or JmolViewer objects from the plugin ; the plugin only has access to
a CDKEditBus object, which has methods

        public ChemModel getChemModel();
        public ChemFile getChemFile();

but how can I access JmolViewer or JmolModelAdapter using these?

Tommi,


you cannot access any application-specific code, since any CDK plugin is supposed to work in any CDKEditBus implementation, like in Jmol or JChemPaint. So, all you can do at the moment is get a ChemModel/File from the application, do whatever you want to do with it, and pass it back to the application. Of course your plugin can also just do one-way-things, like parse a structure from an exotic file format and pass it to the app, or get a structure from the application and calculated and display descriptor for it.
The above does not mean that the EditBus API is final. We can discuss adding further sensible methods, but those must not be application-specifiy by any means.


If you want to do something that makes onyl sense in the context of Jmol, then you will have to write code for the main Jmol code base.

Cheers,

Chris

--
Dr. rer. nat. habil. Christoph Steinbeck ([EMAIL PROTECTED])
Groupleader Junior Research Group for Applied Bioinformatics
Cologne University BioInformatics Center (http://www.cubic.uni-koeln.de)
Z�lpicher Str. 47, 50674 Cologne
Tel: +49(0)221-470-7426   Fax: +49 (0) 221-470-7786

What is man but that lofty spirit - that sense of enterprise.
... Kirk, "I, Mudd," stardate 4513.3..


------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click _______________________________________________ Jmol-developers mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jmol-developers

Reply via email to