Repository navigation
volume_grid core: point classes edited on a volume's planes, the gestures, sessions (P8 part 1) - #1400
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).
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 1 of P8 in VOLROVER-LIBRARY-PORTS-ROADMAP.md,
volume_gridv1. It is the data side of VolumeGridRover, with no GL in it, so every edit is testable here and runs the same natively, in wasm and from pycvc. Part 2 is thevolume_gridnode and its component; it is stacked on this one.New header:
inc/cvc/volume/volume_grid.h.Parameter tables (§1.5)
Three tables, for the keys under
<node>.grid:volume_grid_params:view:xy,xzorzy, VolumeGridRover's switch;tool:navigate,pointsorprobe;slice.x,slice.y,slice.z.volume_grid_display_params:point_scale,show_points,crosshairs,grey.volume_grid_source_params:file,var,time.cvc::point_class_editorPoint classes on the planes of a volume:
cvc::point_class_gesturesTurns the picks a slice view writes (down, drag, up, with modifiers) into those edits, the way VolumeGridRover's slice canvases handled the mouse:
Class rows
These are the rows a
list:widget binds (classes.<i>.{name,color,radius,variable,timestep,points}).reconcile_point_class_rowsturns edited, added and removed rows back into classes. Each row keeps its points across a rename, and across another row's add or remove.Sessions
A node's keys, its transfer function and its classes, in one JSON file.
grid.classes.currentgo in.Tests
volume_grid_test(new, in the ports lane, and added to the sanitizer lanes'SAN_CXX_TESTS):test_pycvc_volume_grid.py(new): the bindings (pycvc_volume_grid.i):Local results (Windows, MSVC Release)
volume_grid_test: 21/21 natively, and 21/21 as wasm-mt under node 22.pycvc_volume_grid,pycvc_volume_sliceandpycvc_point_classespass, as do 10 neighbouring pycvc tests.git-clang-format18 leaves the changed lines unchanged.ci.ymlis still CRLF; its only change is the oneSAN_CXX_TESTSline.