MayaFlux 0.1.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 109 of file RegionProcessors.cpp.

113{
114 auto region_it = std::ranges::find_if(m_organized_regions, [&](OrganizedRegion& region) {
115 return region.group_name == group_name && region.region_index == region_index;
116 });
117
118 if (region_it != m_organized_regions.end()) {
119 region_it->transition_type = type;
120 region_it->transition_duration_ms = duration_ms;
121 }
122}
std::vector< OrganizedRegion > m_organized_regions

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