From: Jim Procter Date: Fri, 28 Oct 2022 14:49:34 +0000 (+0100) Subject: JAL-4086 commented out attempt to create measurement lines between aligned residues... X-Git-Tag: Release_2_11_4_0~520^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e08144b41bce8e324a9cfad1b4d54960c594e71e;p=jalview.git JAL-4086 commented out attempt to create measurement lines between aligned residues in different chains --- diff --git a/src/jalview/ext/jmol/JalviewJmolBinding.java b/src/jalview/ext/jmol/JalviewJmolBinding.java index 9436209..21a19ae 100644 --- a/src/jalview/ext/jmol/JalviewJmolBinding.java +++ b/src/jalview/ext/jmol/JalviewJmolBinding.java @@ -278,7 +278,31 @@ public abstract class JalviewJmolBinding extends AAStructureBindingModel highlightAtom(atom.getAtomIndex(), atom.getPdbResNum(), atom.getChain(), atom.getPdbFile(), useScriptWait); } + // Highlight distances between atoms with a 'measure' command - not yet + // working + // if (atoms.size() >= 2) + // { + // StringBuilder sb = new StringBuilder(); + // for (int a = 0; a < atoms.size(); a++) + // { + // AtomSpec speca = atoms.get(a); + // String a_model = getModelIdForFile(speca.getPdbFile()); + // for (int b = a + 1; b < atoms.size(); b++) + // { + // AtomSpec specb = atoms.get(b); + // String b_model = getModelIdForFile(speca.getPdbFile()); + // sb.append("measure ALL (" + speca.getAtomIndex() + " and */" + // + a_model + ") (" + specb.getAtomIndex() + " and */" + // + b_model + ");"); + // } + // } + // jmolHistory(false, useScriptWait); + // jmolScript(sb.toString(), useScriptWait); + // jmolHistory(true, useScriptWait); + // } + } + } // jmol/ssm only