MayaFlux 1.0.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 160 of file SpatialTransfer.cpp.

165 : m_grid(std::move(grid))
166 , m_stream_name(std::move(stream_name))
167 , m_to_attributes(std::move(to_attributes))
168{
170}
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, m_stream_name, m_to_attributes, and MayaFlux::IO::relaxation_grid_positions().

Referenced by operator=(), operator=(), RelaxationGridCapture(), and RelaxationGridCapture().

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