/* TRACK.hpp - A grouping device within the EDL. Copyright (C) CinelerraCV 2007, Hermann Vosseler 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. */ #ifndef MOBJECT_SESSION_TRACK_H #define MOBJECT_SESSION_TRACK_H #include "proc/mobject/session/meta.hpp" namespace asset { class Track; } namespace mobject { namespace session { typedef shared_ptr PTrackAsset; /** * A Track is grouping device within the EDL. * The corresponding Placement by which this Track object is refered * defines fallback placing properties to be used by all objects placed on this track * in case they don't specify more concrete placements. * Typically, tracks are used do make default Port connections, * define a layer or pan for sound and for for disabling groups * of clips. Note tracks are grouped in a tree like fashion. */ class Track : public Meta { Time start_; PTrackAsset trackDef_; protected: Track (PTrackAsset&); friend class MObjectFactory; public: /** Child tracks in a tree structure */ vector > subTracks; // TODO: Placement!!!!!!! virtual bool isValid() const; }; } // namespace mobject::session /** Placement defined to be subclass of Placement */ DEFINE_SPECIALIZED_PLACEMENT (session::Track); } // namespace mobject #endif