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

オープン
#1,359 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
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分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

FriendsofECCE/ECCE のほかの issue

FriendsofECCE/ECCE の issue をすべて見る

似ている issue

C の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。