/*
* Show all as backbone before doing superposition(s)
* (residues used for matching will be shown as ribbon)
+ * while remembering to hide any chains unselected for display
*/
// todo better way to ensure synchronous than setting getReply true!!
executeCommands(commandGenerator.showBackbone(), true, null);
+ hideHiddenChains();
/*
* superpose each (other) structure to the reference in turn
StructureCommandI cmd = getCommandGenerator().showStructures(model);
executeCommand(cmd, false);
- /*
- * and hide any chains selected _not_ to be shown
- * (whether mapped to sequence in the alignment or not)
- */
+ hideHiddenChains();
+
+ if (refocus)
+ {
+ focusView();
+ }
+ }
+
+ /**
+ * Hides any chains selected _not_ to be shown
+ * (whether mapped to sequence in the alignment or not)
+ */
+ protected void hideHiddenChains()
+ {
+ StructureCommandI cmd;
for (String pdbChain : chainsToHide)
{
String modelNo = getModelIdForFile(getFileForChain(pdbChain));
executeCommand(cmd, false);
}
}
-
- if (refocus)
- {
- focusView();
- }
}
/**