Beispiel #1
0
        public FTrack Add <T>(FrameRange range) where T : FEvent
        {
            FTrack track = FTrack.Create <T>();

            Add(track);

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

            track.Add(evt);

            return(track);
        }
Beispiel #2
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 Add <T>(FrameRange range) where T : FEvent
        {
            FTrack track = FTrack.Create <T>();

            Add(track);
//			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);
        }