TracktionEngine
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tracktion::engine::TrackSection Struct Reference

Defines a time raneg sectin of a Track. More...

Public Member Functions

bool merge (const TrackItem &c)
 Merges an overlapping TrackItem track/time range with this section. More...
 

Static Public Member Functions

template<typename TrackItemArray >
static juce::Array< TrackSectionfindSections (const TrackItemArray &trackItems)
 Returns a set of TrackSections for the given TrackItems. More...
 

Public Attributes

Tracktrack = nullptr
 The Track this section refers to. More...
 
TimeRange range
 The time range this section refers to. More...
 

Detailed Description

Defines a time raneg sectin of a Track.

Member Function Documentation

◆ merge()

bool tracktion::engine::TrackSection::merge ( const TrackItem c)

Merges an overlapping TrackItem track/time range with this section.

Returns
true if this item was from the same track and overlapping time range and could be merged. false if it didn't intersect and should be its own section.

References tracktion::engine::TrackItem::getEditTimeRange(), tracktion::engine::TrackItem::getTrack(), range, and track.

◆ findSections()

template<typename TrackItemArray >
static juce::Array<TrackSection> tracktion::engine::TrackSection::findSections ( const TrackItemArray &  trackItems)
static

Returns a set of TrackSections for the given TrackItems.

References range, and track.

Member Data Documentation

◆ track

Track* tracktion::engine::TrackSection::track = nullptr

The Track this section refers to.

Referenced by findSections(), and merge().

◆ range

TimeRange tracktion::engine::TrackSection::range

The time range this section refers to.

Referenced by findSections(), and merge().


The documentation for this struct was generated from the following file: