MayaFlux 0.2.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 117 of file RegionProcessors.cpp.

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

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