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

◆ RelaxationGridCapture() [1/3]

MayaFlux::IO::RelaxationGridCapture::RelaxationGridCapture ( std::shared_ptr< Buffers::RelaxationGridBuffer grid,
std::string  stream_name,
float  extent,
ToAttributes  to_attributes 
)
Parameters
gridSource grid. Held for the capture's lifetime.
stream_nameStream name within the target archive.
extentNDC half-span, forwarded to relaxation_grid_positions().
to_attributesConverts one snapshot's raw bytes into named attributes. Called only from write_snapshot(), only while capturing.

Definition at line 159 of file SpatialTransfer.cpp.

164 : m_grid(std::move(grid))
165 , m_stream_name(std::move(stream_name))
166 , m_to_attributes(std::move(to_attributes))
167{
169}
std::shared_ptr< Buffers::RelaxationGridBuffer > m_grid
bool relaxation_grid_positions(const std::shared_ptr< Buffers::RelaxationGridBuffer > &grid, float extent, std::vector< glm::vec3 > &positions, std::vector< uint64_t > &ids)
Generate the fixed grid positions and cell ids a RelaxationGridBuffer's cells occupy,...

References m_grid, m_ids, m_positions, and MayaFlux::IO::relaxation_grid_positions().

+ Here is the call graph for this function: