Ah, interesting question. OK. Let's see. You can now!
version=12.3.30
# new feature: atom properties sx, sy, sz, and sxyz -- screen coordinates
select sx 200 sx 205
etc.
Bob
On Fri, Jun 15, 2012 at 10:43 AM, Benn Snyder benn.sny...@gmail.com wrote:
Basically, I have xyz
Brilliant! Any way to draw a point at sx, sy so I can see what I'm doing?
Also, can the socket interface send messages back, e.g. Jmol's current
resolution? This would allow me to convert from one coordinate system to
the other. No rush on these; I won't get a chance to continue work until
draw pt [100 200]
the [ ] means 2D coordinate
Ah, but I see a slight problem there. That's from the bottom, not the top,
in Y. I'm not sure I want to futz with that. Yes I do. I will fix sy to
be screenHeight - what it is now.
On Fri, Jun 15, 2012 at 2:42 PM, Benn Snyder benn.sny...@gmail.com
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
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)
5 matches
Mail list logo