2007-08-08 04:50:02 +02:00
|
|
|
/*
|
2008-01-07 18:16:03 +01:00
|
|
|
TRACK.hpp - A grouping device within the EDL.
|
2007-08-08 04:50:02 +02:00
|
|
|
|
2008-03-10 04:25:03 +01:00
|
|
|
Copyright (C) Lumiera.org
|
|
|
|
|
2008, Hermann Vosseler <Ichthyostega@web.de>
|
2007-08-08 04:50:02 +02:00
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
|
modify it under the terms of the GNU General Public License as
|
|
|
|
|
published by the Free Software Foundation; either version 2 of the
|
|
|
|
|
License, or (at your option) any later version.
|
|
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
|
along with this program; if not, write to the Free Software
|
|
|
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
2007-08-09 18:51:47 +02:00
|
|
|
#ifndef MOBJECT_SESSION_TRACK_H
|
|
|
|
|
#define MOBJECT_SESSION_TRACK_H
|
2007-08-08 04:50:02 +02:00
|
|
|
|
2008-01-07 18:16:03 +01:00
|
|
|
#include "proc/mobject/session/meta.hpp"
|
2007-08-08 04:50:02 +02:00
|
|
|
|
|
|
|
|
|
2008-01-07 18:16:03 +01:00
|
|
|
|
|
|
|
|
namespace asset { class Track; }
|
|
|
|
|
|
2009-05-29 07:10:54 +02:00
|
|
|
namespace mobject {
|
|
|
|
|
namespace session {
|
|
|
|
|
|
2008-05-19 08:46:19 +02:00
|
|
|
using lumiera::P;
|
|
|
|
|
|
2008-04-07 03:19:24 +02:00
|
|
|
class Track;
|
|
|
|
|
typedef asset::Track TrackAsset;
|
|
|
|
|
|
2008-05-19 08:46:19 +02:00
|
|
|
typedef P<Track> PTrack;
|
|
|
|
|
typedef P<TrackAsset> PTrackAsset;
|
2009-05-29 07:10:54 +02:00
|
|
|
|
|
|
|
|
|
2007-08-09 18:51:47 +02:00
|
|
|
/**
|
2008-01-07 18:16:03 +01:00
|
|
|
* A Track is grouping device within the EDL.
|
2009-05-29 07:10:54 +02:00
|
|
|
* The corresponding Placement by which this Track object is referred
|
2008-01-07 18:16:03 +01:00
|
|
|
* defines fallback placing properties to be used by all objects placed on this track
|
|
|
|
|
* in case they don't specify more concrete placements.
|
2008-02-14 04:12:30 +01:00
|
|
|
* Typically, tracks are used do make default processing pipe connections,
|
2008-01-07 18:16:03 +01:00
|
|
|
* define a layer or pan for sound and for for disabling groups
|
|
|
|
|
* of clips. Note tracks are grouped in a tree like fashion.
|
2008-04-11 06:24:27 +02:00
|
|
|
* \par
|
2009-05-29 07:10:54 +02:00
|
|
|
* This Media Object (often referred to as "track-MO") is always dealt with
|
2008-04-11 06:24:27 +02:00
|
|
|
* locally within one EDL. Client code normally doesn't have to care for creating
|
2009-05-29 07:10:54 +02:00
|
|
|
* or retrieving track-MO. Rather, it refers to the global track-asset-ID. The same
|
2008-04-11 06:24:27 +02:00
|
|
|
* holds true when placing some other Media Object onto a track: the corresponding
|
|
|
|
|
* placement just refers the global trackID, while the builder automatically retrieves
|
|
|
|
|
* the matching track-MO for the EDL in question. If some EDL contains several instances
|
2009-05-29 07:10:54 +02:00
|
|
|
* (track-MO) referring to the same trackID (asset), then this causes all objects placed
|
2008-04-11 06:24:27 +02:00
|
|
|
* onto this track to be included several times in the resulting render nodes network
|
2009-05-29 07:10:54 +02:00
|
|
|
* (possibly with varying placement properties)
|
2007-08-09 18:51:47 +02:00
|
|
|
*/
|
2008-01-07 18:16:03 +01:00
|
|
|
class Track : public Meta
|
2007-08-08 04:50:02 +02:00
|
|
|
{
|
2008-01-07 18:16:03 +01:00
|
|
|
Time start_;
|
|
|
|
|
PTrackAsset trackDef_;
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
Track (PTrackAsset&);
|
|
|
|
|
friend class MObjectFactory;
|
2009-05-29 07:10:54 +02:00
|
|
|
|
2008-01-07 18:16:03 +01:00
|
|
|
public:
|
|
|
|
|
/** Child tracks in a tree structure */
|
2008-04-07 03:19:24 +02:00
|
|
|
vector<Placement<Track> > subTracks; ////TODO: it should really work with Placements! this here is just a decoy!!!!!!!
|
2008-01-07 18:16:03 +01:00
|
|
|
|
|
|
|
|
virtual bool isValid() const;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-08-09 18:51:47 +02:00
|
|
|
} // namespace mobject::session
|
2008-01-07 18:16:03 +01:00
|
|
|
|
2009-05-29 07:10:54 +02:00
|
|
|
/** Placement<Track> defined to be subclass of Placement<Meta> */
|
|
|
|
|
template class Placement<session::Track, session::Meta>;
|
|
|
|
|
|
2007-08-09 18:51:47 +02:00
|
|
|
} // namespace mobject
|
2007-08-08 04:50:02 +02:00
|
|
|
#endif
|