void GeometryDihedral::set_pick(void) {
  // set the Tcl values
  if (objIndex[0] == objIndex[1] && objIndex[1] == objIndex[2] &&
      objIndex[2] == objIndex[3]) {
    set_pick_selection(objIndex[0], 4, comIndex);
  } else {
    set_pick_selection();
  }
  set_pick_value(geomValue);
}
Example #2
0
void GeometryBond::set_pick(void) {

  // set the Tcl values
  if(objIndex[0] == objIndex[1]) {  // selections must be from the same molid
    set_pick_selection(objIndex[0], 2, comIndex);
  } else {
    set_pick_selection();  // if bad, set to the "nothing" molecule
  }
  set_pick_value(geomValue);
}