Builder: code that sets m_atomHighLight without setSelection or a SelectionChanged event selects nothing visibly

Ouverte
#1,359 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
48/100
Type d'issue
Bug
Clarté
Clairement spécifiée
Activité
Active
Stack technique
c

Piste de recherche

Start with the SelectionChanged handler in src/apps/builder/Builder.C, then trace writes to m_atomHighLight under src/apps/builder, src/viz/sgcommands, and src/wxviz. Prioritize EigenValPanel, PartialCharges, VecAtomSpectrum, EnsemblePropertyPanel, TrajectoryPanel, and BuilderVinaBox; each fixed path should report the Open Inventor selection count after the action.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

bug

The 3-D viewer draws the Open Inventor selection, not Fragment::m_atomHighLight. Writing to m_atomHighLight changes what later commands act on, but the view shows the change only when one of two things follows:

  • a call to Builder::setSelection(m_atomHighLight, m_bondHighLight), or
  • publishing the "SelectionChanged" event, which the Builder handles by calling setSelection (src/apps/builder/Builder.C, the "SelectionChanged" branch of the event handler).

Code that does neither leaves the user with a selection they cannot see. Delete, Copy, the docking box and the constraint panel then act on atoms that do not look selected.

This defect has already appeared twice, in code written a day apart: the #1297 ligand placement (fixed in 9311d9373, which now calls setSelection) and the #1320 pocket picker (fixed there in the same way).

There are about 120 write sites in src/apps/builder, src/viz/sgcommands and src/wxviz. Many are inside commands whose callers redraw afterwards, so most are probably fine. The task is to find the ones reachable from the GUI or a script hook with no setSelection or SelectionChanged after them. Candidates to check first are the panel row-click handlers: EigenValPanel, PartialCharges, VecAtomSpectrum, EnsemblePropertyPanel and TrajectoryPanel, plus BuilderVinaBox.

Test: for each fixed path, a hook that reports the Open Inventor selection count (not m_atomHighLight.size()) after the action.

Langage dominant
C
Étoiles
10
Forks
8
Merge moyen
6 h 32 min
PR mergées (30 j)
1

Préparer son environnement

Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de FriendsofECCE/ECCE

Toutes les issues de FriendsofECCE/ECCE

Issues similaires

Plus d'issues C

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.