MayaFlux 1.0.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 82 of file InfluxProcessor.cpp.

83{
85
86 const glm::vec3 lo = get_volume()
87 ? get_volume()->get_lattice().bounds.min
88 : glm::vec3(0.0F);
89
90 float radius = m_radius;
91 if (m_auto_radius && get_volume()) {
92 const glm::vec3 extent = get_volume()->get_lattice().bounds.max - lo;
93 radius = 0.08F * std::min({ extent.x, extent.y, extent.z });
94 }
95
96 const InfluxTail tail {
97 .center_x = m_center.x,
98 .center_y = m_center.y,
99 .center_z = m_center.z,
100 .radius = radius,
101 .rate = m_rate,
102 .time_step = m_time_step,
103 .falloff = m_falloff,
104 .pad1 = 0.0F,
105 .bounds_min_x = lo.x,
106 .bounds_min_y = lo.y,
107 .bounds_min_z = lo.z,
108 .pad2 = 0.0F,
109 };
110
111 write_param_tail(k_tail_offset, &tail, sizeof(tail));
112}
float radius
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(), m_auto_radius, m_center, m_elapsed, m_falloff, m_radius, m_rate, m_time_step, radius, MayaFlux::Buffers::VolumeFieldProcessor::write_lattice_word7(), and MayaFlux::Buffers::VolumeFieldProcessor::write_param_tail().

Referenced by configure(), 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: