Example #1
0
        public void Add(FTrack track)
        {
            int id = _tracks.Count;

            _tracks.Add(track);

            track.SetContainer(this);
            track.SetId(id);
        }
Example #2
0
        /// @brief Adds new timeline at the end of the list.
        /// @param timeline New timeline.
        public void Add(FTrack track)
        {
            int id = _tracks.Count;

            _tracks.Add(track);
            track.SetId(id);

            //			timeline.SetSequence( this );
            track.SetContainer(this);
        }
Example #3
0
        public void Add(FTrack track)
        {
            int id = _tracks.Count;

            _tracks.Add(track);

            track.SetTimeline(this);
            track.SetId(id);

            if (!Sequence.IsStopped)
            {
                track.Init();
            }
        }
Example #4
0
        /**
         * @brief Adds a new track to the timeline
         * @param range A track by default is added with 1 event
         * @T Event type that the track will hold
         * @sa RemoveTrack
         */
        public FTrack AddTrack <T>(FrameRange range) where T : FEvent
        {
            FTrack track = FTrack.Create <T>();

            int id = _tracks.Count;

            _tracks.Add(track);

            track.SetTimeline(this);
            track.SetId(id);

            if (!Sequence.IsStopped)
            {
                track.Init();
            }

            FEvent evt = FEvent.Create <T>(range);

            track.Add(evt);

            return(track);
        }