Repository navigation
volume_grid: VolumeGridRover as an Ariadne node and component (P8 part 2) - #1401
Merged
Merged
Conversation
…ures, sessions (P8 part 1) The data side of VolumeGridRover (docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md section 4, P8), with no GL in it, in inc/cvc/volume/volume_grid.h: - the node's parameter tables: volume_grid_params (view, tool, slice.x/y/z), volume_grid_display_params, volume_grid_source_params; - cvc::point_class_editor: mark, toggle (VolumeGridRover's double-click), select by point and rubber band, move the selection (cut short at the edge, merging), delete, undo, one plane at a time and only the shown variable and timestep's classes; - cvc::point_class_gestures: a slice view's picks (down, drag, up, Shift / Ctrl / Alt) turned into those edits as the legacy slice canvases turned mouse events: click marks, drag selects, Shift+Ctrl drag moves, navigate moves the other planes; - the class rows a list: binds, reconciled with the classes as rows are edited, added and removed; - sessions: the keys, the transfer function and the classes in one JSON file. volume_grid_test (ports lane, native and wasm-mt; and SAN_CXX_TESTS) covers the tables and rows on the tree (T8), the editor and gestures, sessions with bad and truncated files (T9, T5), and two editors, threads and apps sharing nothing (T6). pycvc binds all of it (pycvc_volume_grid.i, test_pycvc_volume_grid.py).
…t 2) docs/roadmap/VOLROVER-LIBRARY-PORTS-ROADMAP.md section 4, P8, on part 1's core: - type: volume_grid (cvc::gl::VolumeGridNode, volume_grid_nodes.h): three volume_slice planes of one volume, realized as <id>_slice_xy/_xz/_zy and tagged with the grid's id and their names, each drawing its points as disks, the selection's rings, crosshairs (in the colour of the axis they run along) and a rubber band; an empty <id>_surfaces group for P9 and P10. Keys under <node>.grid: the parameter tables, the class rows a list: binds, picks run as gestures under the tool, the pointer filling the probe, requests (load, save / load classes and points, delete_selected, select_all / none, undo, step, save / load session), the job keys; grid.points, grid.selection and grid.volume on the data channel; <node>.transfer_function colours all three planes and follows a load, display.grey draws them grey. - The viewport writes a pick's keys as the pointer moves (pointer: <key>, phase hover; hover: is the loader's), and a pick names its slice's axis. - slider_int / slider_float range: key: the range is the bound key's min and max properties, read each frame. - volume_slice_nodes.h exposes transfer_function_prop for both node types. - volume_grid.ari: the volume_grid window, volume_grid_views and volume_grid_tools; the legacy XY / XZ / ZY switch layout (the default) and quad; the tool and the Probe, Point classes and Transfer function tabs, the tab container ending in slot: tabs (P9's Segmentation tab, P10's Contours). - The demo examples/ariadne/documents/volume_grid.ari and its gallery entry; goldens volume_grid.ari and volume_grid_quad.ari (the golden harness reads the source tree's components); an arigl-web case that clicks once through state writes and waits for the mark. Tests: cvcgl_volume_grid (headless picks through state writes, requests, rows, data channel, sessions, two grids in one document; the overlays rendered), cvcgl_ariadne_volume_grid (the component over two grids, one per layout, with real mouse events), ariadne_loader_test's VolumeGrid* and SliderRangeFromKey, ariadne_runtime_test's SliderRangeFromTheKeysProperties.
… golden The quad layout's 2 x 2 grid was a table with fixed 200 px columns. A table with no outer size still spans the rest of the window, so in the window's horizontal flow it pushed the tools panel past the right edge, behind a scrollbar (CI's llvmpipe render of volume_grid_quad.ari showed it, and so did the local one). The quad is now two horizontal rows, XY | XZ over ZY | 3D, each flowing side by side as the switch layout does, so the panel sits beside the views. volume_grid.png is CI's llvmpipe render of volume_grid.ari (Windows, package-windows / libcvc-release); Linux's (libcvc-release-grpc) matches it to within 1 per channel. volume_grid_quad.png follows from the next run.
volume_grid_quad.png is CI's llvmpipe render of volume_grid_quad.ari at 7efe873 (package-linux / libcvc-release, LLVM 20): the four views in two rows with the tools panel beside them. volume_grid.png, taken from the Windows lane, matched this run's Linux render to within 1 per channel.
Conflicts were both sides adding a neighbour: the demo list and entries, the extensions header comment, the web smoke cases, the cvcGL test targets and the node-type registrations. Both kept.
…id-node demos.json lists volume_grid_ari and skeleton_lab_ari, each with its entry; arigl_web_smoke.mjs runs both cases.
transfix
added a commit
that referenced
this pull request
Nov 21, 2026
…id-data demos.json lists volume_grid_ari and skeleton_lab_ari and arigl_web_smoke.mjs runs both cases, as on #1401. scene_views.cpp: shown_bounds keeps master's subtree entries and counts a hidden node it lets in, with no bounds, so a view waits while a volume_grid's planes wait for their volume.
transfix
added a commit
that referenced
this pull request
Nov 21, 2026
#1401 landed as a squash; this branch already holds its commits (all but its own merge of master's P2, which 37a7356 repeated here). The tree is this branch merged with master's fcee28e, the commit before the squash (clean, docs/ARIADNE.md the only file both touched), so every conflict with the squash takes this branch's side. Against master the diff is exactly #1423's own: the same 31 files and lines as against #1401's head.
This was referenced Nov 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part 2 of P8 in VOLROVER-LIBRARY-PORTS-ROADMAP.md: VolumeGridRover rebuilt as an Ariadne component, over a new
volume_gridscene node. It is stacked on part 1 (#1400), which has the editing core. It targets master so CI runs; once part 1 lands I merge master in.The node:
type: volume_gridcvc::gl::VolumeGridNodeandvolume_grid_nodes.h. Keys are under<node>.grid.*; the full table is in docs/ARIADNE.md §5.4.volume_sliceplanes of one volume, realized as<id>_slice_xy,_xzand_zy. Each is tagged with the grid's id and its own name, so a view withshow: [<id>]shows that grid alone.<id>_surfacesgroup, where P9 and P10 will draw surfaces.grid.pick.*run part 1's gestures undergrid.tool.grid.pointer.*fills the probe (grid.cursor.*).grid.classes.*are the rows alist:binds. Editing, adding or removing a row edits the classes.grid.points,grid.selectionandgrid.volume. Apoint_classeswritten togrid.pointsfrom outside replaces the classes.load,save_classes,load_classes,load_points,delete_selected,select_all,select_none,undo,step <n>,save_sessionandload_session.<node>.transfer_functioncolours all three planes and follows aload.display.greyswitches to grey.busy,progressand the rest are published for P9's segmentation job.Pieces the views needed
pointer: <key>: the view writes a pick's fields, with phasehover, as the pointer moves over it with no button down. I couldn't usehover:, because the loader already consumes that key for a group's highlight.axison a pick: the axis of the slice it landed on.range: keyonslider_intandslider_float: the slider takes its range from the bound key'sminandmaxproperties, read each frame. The node keeps each slice key's range at the volume's planes.transfer_function_prop:volume_slice_nodes.hnow exposes it, sovolume_gridparsestransfer_function:the wayvolume_slicedoes.The component:
volume_grid.arivolume_grid: one window;volume_grid_viewsandvolume_grid_tools: groups for a document that lays out its own windows.switch, the default (roadmap §9, 2026-11-08): one slice view under the XY / XZ / ZY switch bound togrid.view, beside a 3D view;quad: the three slice views and the 3D view in a 2×2 grid.slot: tabsat the end of the tab container. P9's Segmentation tab and P10's Contours tab go into it, and a document can add its own there.Demo, goldens, gallery, web
examples/ariadne/documents/volume_grid.ari, with the bunny's SDF, two classes, and PageUp / PageDown / Delete bound to requests. It also has a gallery entry,volume_grid_ari.src/cvcGL/test/golden/volume_grid.ari(switch, Point classes tab) andvolume_grid_quad.ari, plusvolume_grid.vgr. Their PNGs come from CI's llvmpipe render, as orthoslicer demo: three volume_slice planes beside a volren, a slice view down any axis (P7) #1257's did:volume_grid.pngis the first run's Windows render; Linux's matches it to within 1 per channel.volume_grid_quad.pngfollows from the next run's render.app/volume_grid.ariclicks once through state writes and waits for the node's "added (10, 15, 12) to seeds".Tests
cvcgl_volume_grid(new, headless plus an offscreen part):cvcgl_ariadne_volume_grid(new) loads the component over two grids, one per layout, and drives them with real ImGui mouse events:grid.view;ariadne_loader_test:VolumeGridDrivesItsNodesKeys,VolumeGridDemoLoadsCleanandSliderRangeFromKey.ShippedComponentsLoadCleancovers the new component.ariadne_runtime_test:SliderRangeFromTheKeysProperties.Local results (Windows, MSVC Release, Intel GPU,
CVC_REQUIRE_RENDER=1)Before the rebase onto master 75aff9c:
cvcgl_volume_grid: 64/64 checks, the rendered overlay part included.cvcgl_ariadne_volume_grid: 16/16.ariadne_loader_test(245) andariadne_runtime_test(342);volume_grid_test(21),volume_slice_test(9),point_classes_test(16);tabs_list_test(6) andparam_table_test(20).cvcgl_volume_slice,cvcgl_ariadne_slice_view,cvcgl_ariadne_pick,cvcgl_ariadne_views,cvcgl_ariadne_realize,cvcgl_ariadne_scenes,cvcgl_imgui_tabs_list,cvcgl_tf_bindingandcvcgl_camera_sliceall pass.cvcgl_ari_golden: both new documents load without warnings and settle. They failed only on the missing PNGs, as expected. In the local renders the points, crosshairs, rows and 3D views all draw; I missed the quad panel's overflow there, which CI's render caught (fixed in 7efe873;cvcgl_ariadne_volume_gridandariadne_loader_testpass again after it).arigl snapshoton the docset'svolume_grid.ariprintsvolume_grid: 32 32 32, slice view down y, added (10, 15, 12) to seeds. The browser itself is CI's arigl-web lane.git-clang-format18 leaves the changed lines unchanged.GeometryNode::setGeometryre-picks the render mode from the geometry, so a lines-only geometry falls back to a surface and draws nothing. The lines overlay therefore sets LINES after eachsetGeometry.Not run here: Linux, macOS, the arigl-web lane, and the goldens against llvmpipe.