|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::save_volume | ( | const std::shared_ptr< Buffers::VolumeGridBuffer > & | volume, |
| const std::string & | filepath, | ||
| const VolumeWriteOptions & | options = {}, |
||
| const std::vector< std::string > & | field_names = {} |
||
| ) |
Save a volume directly to disk via the VolumeWriter registry.
Combines download_volume() with VolumeWriterRegistry::create_writer(). The file extension selects the writer. Whether a given writer can express a given field is the writer's responsibility: a format with no vector grid type rejects a vector field rather than dropping it.
Inherits download_volume's thread requirements.
| volume | Volume to save. |
| filepath | Destination path with extension. |
| options | Format-specific writer options. |
| field_names | Fields to save. Empty means every declared field. |
Definition at line 217 of file VolumeTransfer.cpp.
References download_volume(), and save_volume().
Here is the call graph for this function: