On Sun, May 29, 2016 at 4:39 PM, Geoffrey Hutchison
<[email protected]> wrote:
>> So I was just taking another look, and I think all you need assuming
>> you have the QtGui::Molecule, and the Atom object you want to access:
>>
>> RWAtom rwAtom = molecule->undoMolecule()->atom(atom.index());
>
> No, no. It's the reverse. I want the Atom from an RWAtom..
>
Sorry, I misunderstood. Something in the reverse should be equally
valid though, i.e.

Atom a = molecule->atom(rwAtom.index());

The two atom types derive from a common template, I can add some
examples and test this out more. I didn't try compiling this, but am
pretty certain it will work as expected.

Marcus

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Avogadro-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/avogadro-devel

Reply via email to