Commit c17a57a
feat(ferritin-bevy): interactive protein viewer with orbit camera, cartoon, and color fixes (#161)
* feat(ferritin-bevy): migrate Structure from AtomCollection to Model
Add `load_model` to ferritin-core (CIF-backed, returns the new
Arc<AtomicHierarchy>-based Model from ferritin-4tl). Update
ferritin-bevy's Structure to hold Model instead of AtomCollection,
replacing all AtomCollection API calls with their Model equivalents
(residues_aminoacid, atoms, hierarchy.bonds SoA, coord()).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(ferritin-bevy): absorb ferritin-structure-mesh, port StructurePlugin to Model
Move StructurePlugin/StructureSettings/LoadProteinEvent into ferritin-bevy
(updated to load_model), port ToRerun conversions behind rerun feature,
update all 4 bevy examples to import from ferritin-bevy, and delete the
now-redundant ferritin-structure-mesh crate from the workspace.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix(ferritin-bevy): use load_model in StructurePlugin, drop AtomCollection
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(ferritin-examples): add interactive protein viewer with bevy_feathers UI
Adds bevy_interactive_viewer example that lets the user switch between
all five RenderOptions (Wireframe, Cartoon, BallAndStick, Solid, Putty)
and four ColorScheme presets via a feathers-themed bottom control panel.
Updated from the worktree prototype to use the ferritin-bevy APIs
introduced in this branch (load_model, Model instead of AtomCollection).
- Add bevy_feathers = "0.19.0" dependency
- New example: crates/ferritin-examples/examples/bevy/interactive_viewer.rs
- FeathersPlugins + dark theme for panel background theming
- ViewerState resource drives mesh rebuild via resource_changed condition
- ButtonAction component on each button drives state mutations
- Standard Bevy Interaction system for hover/press feedback
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* fix: add fix bevy example
* chore(beads): close 4 bevy_interactive_viewer issues
Close ferritin-0iy, ferritin-pvg, ferritin-hn9, ferritin-jbs —
all implemented in the preceding commit.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 511793e commit c17a57a
27 files changed
Lines changed: 537 additions & 1340 deletions
File tree
- .beads
- crates
- ferritin-bevy
- src
- ferritin-core/src
- io
- ferritin-examples
- examples/bevy
- ferritin-structure-mesh
- src
- wasm-examples/simpleweb
- ferritin
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
15 | 20 | | |
16 | 21 | | |
File renamed without changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
7 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
| 77 | + | |
83 | 78 | | |
84 | 79 | | |
85 | | - | |
| 80 | + | |
86 | 81 | | |
87 | 82 | | |
88 | 83 | | |
| |||
0 commit comments