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

◆ VolumeCapture() [1/2]

MayaFlux::IO::VolumeCapture::VolumeCapture ( Vruta::TaskScheduler scheduler,
std::shared_ptr< Buffers::VolumeGridBuffer volume,
std::string  path_pattern,
std::vector< std::string >  field_names = {},
VolumeWriteOptions  options = {},
VolumeWriteHook  write = nullptr 
)
Parameters
schedulerScheduler the capture routine is added to.
volumeVolume to record. Held for the capture's lifetime.
path_patternDestination with one std::format index field, such as "smoke.{:04}.vdb". Zero padding matters: an unpadded pattern sorts frame 10 before frame 2. The extension selects the writer.
field_namesFields to record. Empty means every declared field.
optionsWriter options, applied to every frame.
writeOptional hook to move the VolumeData onto a worker

Definition at line 239 of file VolumeTransfer.cpp.

246 : m_scheduler(scheduler)
247 , m_volume(std::move(volume))
248 , m_pattern(std::move(path_pattern))
249 , m_fields(std::move(field_names))
250 , m_options(std::move(options))
251 , m_write(write ? std::move(write)
252 : [](Kakshya::VolumeData&& d, const std::string& p,
253 const VolumeWriteOptions& o) {
254 return save_volume(d, p, o);
255 })
256{
257}
std::vector< std::string > m_fields
std::shared_ptr< Buffers::VolumeGridBuffer > m_volume
Vruta::TaskScheduler & m_scheduler
bool save_volume(const Kakshya::VolumeData &data, const std::string &filepath, const VolumeWriteOptions &options)
Save already-downloaded VolumeData to disk via the registry.
@ Kakshya
Containers[Signalsource, Stream, File], Regions, DataProcessors.

References MayaFlux::IO::save_volume().

+ Here is the call graph for this function: