Re: [Avogadro-devel] Getting an Atom from an RWAtom (Avo2)
> 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.. -Geoff -- 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 Avogadro-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avogadro-devel
Re: [Avogadro-devel] Getting an Atom from an RWAtom (Avo2)
On Fri, May 27, 2016 at 11:22 AM, Marcus D. Hanwellwrote: > On Tue, May 24, 2016 at 11:54 AM, Geoffrey Hutchison > wrote: >>> I thought that ideally HydrogenTools would operate on the RWMolecule, >>> but RWMolecule is now a lightweight class. There is not currently a >>> way to get the Atom from an RWAtom, but the code would be very simple >>> so if we want to add it we can. >> 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()); If you have an example where that doesn't seem to work I can take a better look. The call to undoMolecule on molecule is cheap, no object creation/destruction, and the rwAtom object creation should also be really cheap. There is also atomByUniqueId if you want it, but the index version should be faster and safe in the context you want it. 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 Avogadro-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avogadro-devel
Re: [Avogadro-devel] Getting an Atom from an RWAtom (Avo2)
On Tue, May 24, 2016 at 11:54 AM, Geoffrey Hutchisonwrote: >> I thought that ideally HydrogenTools would operate on the RWMolecule, >> but RWMolecule is now a lightweight class. There is not currently a >> way to get the Atom from an RWAtom, but the code would be very simple >> so if we want to add it we can. > > Just a follow-up.. Can you point me in the direction here? > Sorry, I knew I owed you something. I will take a look at it, too much travel... 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 Avogadro-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avogadro-devel
Re: [Avogadro-devel] Getting an Atom from an RWAtom (Avo2)
> I thought that ideally HydrogenTools would operate on the RWMolecule, > but RWMolecule is now a lightweight class. There is not currently a > way to get the Atom from an RWAtom, but the code would be very simple > so if we want to add it we can. Just a follow-up.. Can you point me in the direction here? Thanks, -Geoff -- Mobile security can be enabling, not merely restricting. Employees who bring their own devices (BYOD) to work are irked by the imposition of MDM restrictions. Mobile Device Manager Plus allows you to control only the apps on BYO-devices by containerizing them, leaving personal data untouched! https://ad.doubleclick.net/ddm/clk/304595813;131938128;j ___ Avogadro-devel mailing list Avogadro-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avogadro-devel
[Avogadro-devel] Getting an Atom from an RWAtom (Avo2)
Hi Marcus, I'm trying to fix up the draw tool so that it does automatic hydrogen adjustment on the atoms in the edit, etc. (The new catch is that it will "snap to" standard bond lengths and ideally angles as well.) But I keep coming back to the pain of the hydrogentools code operating on Atom classes and Editor having RWAtom. Is there a way to get the Atom that corresponds to an RWAtom, or does the hydrogen tools code need to be updated to only work on RWAtoms - or something else? Thanks, -Geoff -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ Avogadro-devel mailing list Avogadro-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/avogadro-devel