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

◆ write_tail()

void MayaFlux::Buffers::InfluxProcessor::write_tail ( )
private

Write every parameter past the shared prefix.

Definition at line 63 of file InfluxProcessor.cpp.

64{
66
67 const glm::vec3 lo = get_volume()
68 ? get_volume()->get_lattice().bounds.min
69 : glm::vec3(0.0F);
70
71 const InfluxTail tail {
72 .center_x = m_center.x,
73 .center_y = m_center.y,
74 .center_z = m_center.z,
75 .radius = m_radius,
76 .rate = m_rate,
77 .time_step = m_time_step,
78 .falloff = m_falloff,
79 .pad1 = 0.0F,
80 .bounds_min_x = lo.x,
81 .bounds_min_y = lo.y,
82 .bounds_min_z = lo.z,
83 .pad2 = 0.0F,
84 };
85
86 write_param_tail(k_tail_offset, &tail, sizeof(tail));
87}
float lo
void write_param_tail(size_t offset, const void *data, size_t size)
Write subclass parameters past the shared prefix.
void write_lattice_word7(float value)
Write word seven of the parameter prefix, at byte offset 28.
const std::shared_ptr< VolumeGridBuffer > & get_volume() const
The attached volume, or null if attachment failed validation.

References MayaFlux::Buffers::VolumeFieldProcessor::get_volume(), lo, m_center, m_elapsed, m_falloff, m_radius, m_rate, m_time_step, MayaFlux::Buffers::VolumeFieldProcessor::write_lattice_word7(), and MayaFlux::Buffers::VolumeFieldProcessor::write_param_tail().

Referenced by on_volume_ready(), set_center(), set_falloff(), set_radius(), set_rate(), and set_time_step().

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