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

◆ set_region_transition()

void MayaFlux::Kakshya::RegionOrganizationProcessor::set_region_transition ( const std::string &  group_name,
size_t  region_index,
RegionTransition  type,
double  duration_ms = 0.0 
)

Configures the transition between regions.

Parameters
group_nameName of the group containing the region.
region_indexIndex of the region within the group.
typeType of transition to apply (e.g., IMMEDIATE, FADE).
duration_msDuration of the transition in milliseconds.

Definition at line 116 of file RegionProcessors.cpp.

120{
121 auto region_it = std::ranges::find_if(m_organized_regions, [&](OrganizedRegion& region) {
122 return region.group_name == group_name && region.region_index == region_index;
123 });
124
125 if (region_it != m_organized_regions.end()) {
126 region_it->transition_type = type;
127 region_it->transition_duration_ms = duration_ms;
128 }
129}
std::vector< OrganizedRegion > m_organized_regions

References MayaFlux::Kakshya::OrganizedRegion::group_name, MayaFlux::Kakshya::RegionProcessorBase::m_organized_regions, and MayaFlux::Kakshya::OrganizedRegion::region_index.