Where to click on a hydrogen

Hey there,

I used an automated GUI tester to investigate where Avogadro accepts
clicks on a hydrogen:


(see comments there also for a discussion of the issues).

I would argue that the centre of the hydrogen is the logical place,
but it seems that the sweet spot has been pushed towards the end of
the bond.

  • Noel

On Tue, Mar 5, 2013 at 4:24 AM, Noel O’Boyle baoilleach@gmail.com wrote:

Hey there,

I used an automated GUI tester to investigate where Avogadro accepts
clicks on a hydrogen:
Noel O'Blog: Avogadro hydrogen-clicking craziness with Sikuli
(see comments there also for a discussion of the issues).

I would argue that the centre of the hydrogen is the logical place,
but it seems that the sweet spot has been pushed towards the end of
the bond.

I see Geoff’s comments on the post already, and he added this to
Avogadro. It never felt right to me either, but it was hard to gauge
how many people were wanting to click on a hydrogen to do stuff (such
as change element type to build up a larger molecule with add
hydrogens). I would argue that for many structures drawing the
backbone and adding hydrogens at the end is the quickest way, but we
obviously want to be as flexible as we can here and many people like
the addition of hydrogens as they go.

It looks to me like the center is just pushed to where the center of
the sphere is, with a smaller radius, due to the perspective
projection. I once changed the code a little to look at rendered
versus picking, it wouldn’t be hard to render that to show more
clearly what is happening and perhaps at least tweak if not remove
this. It probably wouldn’t take much to add an option to turn this on
and off, as we did for the navigation rendering you didn’t like.

Marcus

(“Reply all” not enabled on list?)

Not sure about the perspective issue, but you know best. To be clear,
the bond attached to the hydrogen is in the plane of the screen and to
the left of the hydrogen.

It shouldn’t be necessary in normal use to have to visualise the pick
point, but probably would be useful to resolve (or not) this issue.

  • Noel

On 5 March 2013 12:42, Marcus D. Hanwell marcus.hanwell@kitware.com wrote:

On Tue, Mar 5, 2013 at 4:24 AM, Noel O’Boyle baoilleach@gmail.com wrote:

Hey there,

I used an automated GUI tester to investigate where Avogadro accepts
clicks on a hydrogen:
Noel O'Blog: Avogadro hydrogen-clicking craziness with Sikuli
(see comments there also for a discussion of the issues).

I would argue that the centre of the hydrogen is the logical place,
but it seems that the sweet spot has been pushed towards the end of
the bond.

I see Geoff’s comments on the post already, and he added this to
Avogadro. It never felt right to me either, but it was hard to gauge
how many people were wanting to click on a hydrogen to do stuff (such
as change element type to build up a larger molecule with add
hydrogens). I would argue that for many structures drawing the
backbone and adding hydrogens at the end is the quickest way, but we
obviously want to be as flexible as we can here and many people like
the addition of hydrogens as they go.

It looks to me like the center is just pushed to where the center of
the sphere is, with a smaller radius, due to the perspective
projection. I once changed the code a little to look at rendered
versus picking, it wouldn’t be hard to render that to show more
clearly what is happening and perhaps at least tweak if not remove
this. It probably wouldn’t take much to add an option to turn this on
and off, as we did for the navigation rendering you didn’t like.

Marcus


Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb


Avogadro-Discuss mailing list
Avogadro-Discuss@lists.sourceforge.net
avogadro-discuss List Signup and Options