MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / selectNode

Function selectNode

src/visualizer/gui_capabilities.cpp:498–513  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496 }
497
498 std::expected<void, std::string> selectNode(SceneManager& scene_manager,
499 const std::string& name,
500 const std::string_view mode) {
501 if (!scene_manager.getScene().getNode(name))
502 return std::unexpected("Node not found: " + name);
503
504 if (mode == "add") {
505 scene_manager.addToSelection(name);
506 return {};
507 }
508 if (mode != "replace")
509 return std::unexpected("Unsupported node selection mode: " + std::string(mode));
510
511 scene_manager.selectNode(name);
512 return {};
513 }
514
515 std::expected<void, std::string> selectNodes(SceneManager& scene_manager,
516 const std::vector<std::string>& names,

Callers 12

register_gui_scene_toolsFunction · 0.85
loadSplatFileMethod · 0.85
addSplatFileMethod · 0.85
selectNodeMethod · 0.85
switchToEditModeMethod · 0.85
addGeneratedSplatNodeMethod · 0.85
handleAddCropBoxMethod · 0.85
invokeMethod · 0.85
handleMouseButtonMethod · 0.85
selectCameraByUidMethod · 0.85

Calls 4

getNodeMethod · 0.80
getSceneMethod · 0.80
addToSelectionMethod · 0.45
selectNodeMethod · 0.45

Tested by

no test coverage detected