|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| bool MayaFlux::IO::SpatialCache::write | ( | const std::string & | stream_name, |
| const SpatialSample & | sample | ||
| ) |
Append one sample to a named stream.
Creates the stream's underlying Alembic object on first call for this stream_name (applying any tags queued by write_metadata) and declares each attribute's OGeomParam at that point. Subsequent calls for the same stream_name must keep passing the same topology and the same attributes (same names, types, scopes, same order): declaration is one-time, only values change per sample.
| stream_name | Name this stream is written under. |
| sample | This sample's data. See SpatialSample's own doc for which fields apply to which topology. |
Definition at line 335 of file SpatialCache.cpp.
References MayaFlux::Journal::FileIO, get_last_error(), MayaFlux::IO::SpatialSample::ids, MayaFlux::Journal::IO, m_impl, MF_ERROR, MayaFlux::IO::SpatialSample::positions, set_error(), MayaFlux::IO::SpatialSample::topology, MayaFlux::IO::SpatialSample::velocities, MayaFlux::IO::SpatialSample::vertex_counts_per_curve, write_curves_sample(), and write_vertex_sample().
Referenced by MayaFlux::IO::write_operator_sample().
Here is the call graph for this function:
Here is the caller graph for this function: