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

未關閉
#1,359 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
48/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
活躍
技術堆疊
c

研究方向

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.

由索引模型根據 Issue 內容生成。

描述

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.

主要語言
C
星號
10
分支
8
平均合併
6 小時 32 分鐘
30 天內合併 PR
1

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

FriendsofECCE/ECCE 的其他 Issue

查看 FriendsofECCE/ECCE 的全部 Issue

相似的 Issue

更多 C Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。