Repository navigation
Ariadne components: the node a panel drives is an arg; viewer_settings - #990
Merged
Merged
Conversation
The node-scoped components bound one hardcoded node, so a second node of a kind meant copying the file. They take it as an arg now, defaulting to the name they always bound, so every existing document loads unchanged: - volren_controls, volslice_controls, mesh_tools, fe_controls: node - forest/sea/sky/world_controls, raster_view: keys (the key root) - camera_controls: viewer - each window component: title and id forest_trees, wave_sea, cloud_sky and generated_world keep their live keys scene-wide (forest.* ...). A node's `keys:` prop now moves them under a root of its own (cvc::ariadne::node_key), which the panel's keys arg names, so two forests have two panels. viewer_settings is one window for a viewer: the FpsHud readout, the UI size, the grid / origin axis / scene bounds, the camera and the shadows. It reuses camera_controls' and scene_controls' widgets through their new window-less units (camera_settings, shadow_settings).
…e_controls Settings > Viewer opens one window with the frame-rate readout, UI size, grid / axis / scene bounds, camera and shadows. Sky moves to a second column, since the stack below the taller window would run off a laptop screen.
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.
What
The node-scoped components in
src/cvc/ariadne/components/bound one hardcoded node (bunny_volume,mesh,domain) or one scene-wide key root (forest.*,sea.*,sky.*,world.*). So a second node of a kind meant copying the file. Each one now takes what it drives as a unit arg. The default is the name it always bound, so a bareinclude:and every existing document load unchanged.volren_controls,volslice_controlsnode(bunny_volume),title,idmesh_toolsnode(mesh),title,idfe_controlsnode(domain),title,idforest_controls,sea_controls,sky_controls,world_controlskeys(forest/sea/sky/world),title,idraster_viewkeys(raster),title,idcamera_controlsviewer(main),title,idscene_controlstitle,idkeys:on a node. The forest, sea, sky and world realizers read scene-wide keys. A node's newkeys:prop moves them under a root of its own (cvc::ariadne::node_keyinscene.h), which the panel'skeysarg names:viewer_settings.ari(new) is one window for a viewer (argviewer, defaultmain). It holds:FpsHudreadout (viewers.<v>.hud.enabled/.fps) and the UI size (viewers.<v>.ui.scale);graphics.root.children.grid.visible,.axis.visible,graphics.root.show_bbox);It reuses camera_controls' and scene_controls' widgets through their new window-less units,
camera_settingsandshadow_settings.terrain_lab.ariuses it: Settings > Viewer replaces its Camera and Scene windows.Compatibility
One instance id changes. The
tf_editorinsidemesh_toolsandfe_controlswasmesh_field_colors/fe_field_colors; it is now{id}_colors(mesh_tools_colors/fe_controls_colors), so that two includes don't share one editor's view state. The only effect is that a saved zoom and layer toggles for that editor start over. Nothing in the repo refers to the old ids.Tests
On Windows Release, with cvcGL off:
ariadne_loader_test.AriadneComponents.NodeComponentsTakeTheirNodeAsAnArg: each of the 10 components is included both bare and with args. Every bind, script and id has its args filled in, and the default name is gone where an arg replaced it.AriadneComponents.ViewerSettingsBindsTheViewersKeys.AriadneScene.NodeKeysPropRootsATypesLiveKeys.ShippedComponentsLoadCleannow coversviewer_settings. Suite totals: loader 217, runtime 248, host 42, media 34, requires 15, tf_editor 38, plus the bind, scene_tf and doc_fetch suites.lsystem_nodes.cpp/world_nodes.cpp, and the newcvcgl_ariadne_realizecheck (acloud_skywithkeys: stormseedsstorm.*). CI builds and runs both.