| 1580 | } |
| 1581 | |
| 1582 | std::expected<void, std::string> VisualizerImpl::addSplatFile(const std::filesystem::path& path) { |
| 1583 | if (!initialize()) { |
| 1584 | return std::unexpected("Failed to initialize visualizer"); |
| 1585 | } |
| 1586 | try { |
| 1587 | data_loader_->addSplatFileToScene(path); |
| 1588 | return {}; |
| 1589 | } catch (const std::exception& e) { |
| 1590 | return std::unexpected(std::format("Failed to add splat file: {}", e.what())); |
| 1591 | } |
| 1592 | } |
| 1593 | |
| 1594 | std::expected<void, std::string> VisualizerImpl::loadDataset(const std::filesystem::path& path) { |
| 1595 | LOG_TIMER("LoadDataset"); |
nothing calls this directly
no test coverage detected