From: Oliver M. <ol...@me...> - 2004-02-07 15:23:42
|
Matt: at the moment, we have Timeline Tracks and Static Tracks, no Event Tracks class Package contains: //! Add a timeline track to the package TrackPtr AddTrack(ULPtr DataDef, Uint32 TrackNumber, Rational EditRate, std::string TrackName = "", Uint32 TrackID = 0); //! Add a static track to the package TrackPtr AddTrack(ULPtr DataDef, Uint32 TrackNumber, std::string TrackName = "", Uint32 TrackID = 0); and then specifically for DM: TrackPtr AddDMTrack(Rational EditRate, std::string TrackName = "Descriptive Track", Uint32 TrackID = 0); TrackPtr AddDMTrack(Uint32 TrackNumber, Rational EditRate, std::string TrackName = "Descriptive Track", Uint32 TrackID = 0) // Add a STATIC DM Track TrackPtr AddDMTrack(std::string TrackName = "Descriptive Track", Uint32 TrackID = 0); TrackPtr AddDMTrack(Uint32 TrackNumber, std::string TrackName = "Descriptive Track", Uint32 TrackID = 0); I propose adding: const Int64 EventUnspecified = -1; const Int64 EventInstantaneous = 0; //! Add an event track to the package TrackPtr AddTrack(ULPtr DataDef, Uint32 TrackNumber, Rational EditRate, Int64 DefaultDuration = EventUnspecified, std::string TrackName = "", Uint32 TrackID = 0); /* this has 6 arguments to distinguish it from the others. the default value of DefaultDuration is the const EventUnspecified which has the distinguished value, and (I suppose) should be used when adding a DMSegment, if SetDuration() has not been called. */ // Add an EVENT DM Track TrackPtr AddDMTrack(Rational EditRate, Int64 DefaultDuration = EventUnspecified, std::string TrackName = "Descriptive Track", Uint32 TrackID = 0); TrackPtr AddDMTrack(Uint32 TrackNumber, Rational EditRate, Int64 DefaultDuration = EventUnspecified, std::string TrackName = "Descriptive Track", Uint32 TrackID = 0) Does this work for you? If so, when is the right moment to add to SF? Should we make another release first (especially since asdcplib is now building upon the current HEAD revision)? thanks Oliver |