Jonathan,

Absolutely.

I'm not sure unbinding and binding normal drag is the best. On our 
independent movement of two fragments, we unbind and bind 
Shift-Click-Drag. That was not based on any experimentation - just a gut 
feel about leaving normal drag alone.

I'm not sure that I understand the rotation that you are going for here. 
We are using a simple emulation of a bond conformation rotation. In 
other words, all the atoms on one side of the defined bond rotate and 
all the atoms on the other side remain stationary. Well, actually, my 
colleague insists on providing a way to make one group rotate cw while 
the other rotates ccw because he thinks it makes the rotation look more 
"real." I think the two moving reference frames confuse the issue, but 
either is easy to do with the defined bond. It sounds like you may have 
a more complex selection in mind - only a subset of all the atoms on one 
side???

For our conformation rotation, it's pretty simple once you have the two 
atoms defined. In JavaScript it's:

rotateSelected {" + rot1 + "} {" + rot2 + "} " + rJ + ";delay " + del + ""

rot1 and rot2 are selected atoms, rJ is the angle of rotation, del is 
the delay that can be set to run the function that holds this statement 
in a loop. We don't do that, we trigger it repeatedly with a link.

Sorry about the JavaScript, but I think the Jmol Script in the above is 
easy enough to pick out.

So, the trick is triggering this smoothly with a mouse, and that's where 
I am now. I'd like to make it a simple hover over the model once the 
axis is defined, but I'm dealing with some fussiness in my code that I 
have not tracked down yet.

Am I correct about your selection process being more complex then ours? 
Are you interested in subsets on a given branch rather than the whole branc.

Otis

On 4/14/2010 2:25 PM, Jonathan Gutow wrote:
> Otis,
>
> Your thoughts are helpful. Your comments on needing to click on two
> atoms to select the bond, suggests to me that if we could accept bond
> selection by clicking in the middle of the bond, you think it would be
> better.
>
> My colleague is looking for something that works inside the
> application not on a web page.
>
> So here's what I'm thinking so far (to be implemented in the
> application and in some way in the applet as well):
>
> 1) The user selects a group of atoms by clicking on the atoms.
> 2) The user selects a bond to rotate the group about by clicking the
> center of the bond (ideally) or selects the bond by clicking on either
> end (this will require some way of telling the program that this is a
> bond selection).
> 3) The rotation  group is set to just be the selected atoms so the
> normal mouse drag can be used for the rotation.
>
> Does that sound good?
>
> Jonathan
> On Apr 14, 2010, at 12:44 PM, [email protected]
> wrote:
>
>    
>> Message: 4
>> Date: Wed, 14 Apr 2010 13:43:25 -0400
>> From: Otis Rothenberger<[email protected]>
>> Subject: Re: [Jmol-users] Want some opinions on rotation about bond
>>      before posting a feature request...
>> To: [email protected]
>> Message-ID:<[email protected]>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> Hi Jonathan,
>>
>> I'm working on this right now. Currently, we use unbind and bind to
>> allow mouse rotation and translation of separate models in a Jmol
>> window. In the same application, we use the two atom click system that
>> you mention for bond rotation definition. This is followed by the need
>> to click a rotate button. I'm trying to use the same logic that we use
>> with the independent movement of molecules via mouse movement. I think
>> it's doable.
>>
>> While the feature (independent movement of two model) must be turned
>> on
>> and off, it's painless once it's on. A hover callback does all the
>> required selection. That's the part of the code that I'm working on
>> now
>> for bond rotation. Writing an appropriate hover callback for the bond
>> rotation. I will say that so far I see no way around the two atom
>> click
>> definition of the bond axis. If anyone has an idea of how a hover
>> callback could define this, please send suggestions. In the case of
>> using hover to define (select) one or the other model of a two model
>> system, it's pretty easy. They are not connected. For a single
>> connected
>> system, hover could select the hovered atom and maybe even pick up the
>> required second atom, but subsequent mouse movement could easily screw
>> up these selections.
>>
>> Otis
>>      
>                            Dr. Jonathan H. Gutow
> Chemistry Department                                 [email protected]
> UW-Oshkosh                                           Office:920-424-1326
> 800 Algoma Boulevard                                 FAX:920-424-2042
> Oshkosh, WI 54901
>                    http://www.uwosh.edu/facstaff/gutow
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>    

-- 
Otis Rothenberger
chemagic.com




------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to