Well, we also have in AtomCollection:
public BitSet findAtomsInRectangle(Rectangle rect, BitSet bsModels) {
bsFoundRectangle.and(bsEmpty);
for (int i = atomCount; --i >= 0;) {
Atom atom = atoms[i];
if (bsModels.get(atom.modelIndex) && atom.isVisible(0)
&& rect.contains(atom.screenX, atom.screenY))
bsFoundRectangle.set(i);
}
return bsFoundRectangle;
}
What exactly are you thinking you need to do?
On Wed, Jun 13, 2012 at 12:32 PM, Benn Snyder <benn.sny...@gmail.com> wrote:
> How do I select a particular molecule based on x and y position in the
> view window? Perhaps by simulating a mouse click? I've seen 'select
> within(distance, {x y z})' but that refers to internal 3D coordinates, not
> coordinates in the 2D view window.
>
>
> Regards,
> Benn
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users