MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ choose_volume()

MAYAFLUX_API std::shared_ptr< Buffers::VolumeGridBuffer > MayaFlux::choose_volume ( )

Present a native open-file dialog filtered to volume formats and load the chosen file via IOManager::load_volume().

Blocks until the user confirms or cancels. Returns nullptr on cancellation, backend error, or if Portal::System is not initialized.

Definition at line 291 of file Depot.cpp.

292{
293 if (!require_portal("choose_volume"))
294 return nullptr;
295
296 return Portal::System::Dialog::open_file<std::shared_ptr<Buffers::VolumeGridBuffer>>(
297 [](const fs::path& p) { return get_io_manager()->load_volume(p.string()); },
298 [](Core::SystemDialogError) { },
299 k_volume_filters);
300}
std::shared_ptr< IO::IOManager > get_io_manager()
Retrieves the global IOManager instance for file loading and buffer management.
Definition Depot.cpp:575

References get_io_manager().

Referenced by MayaFlux::Creator::read_volume().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: