lumiera_/src/proc/mobject/placement.hpp

68 lines
1.6 KiB
C++
Raw Normal View History

/*
PLACEMENT.hpp - Key Abstraction: a way to place and locate a Media Object
Copyright (C) CinelerraCV
2007, Christian Thaeter <ct@pipapo.org>
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_PLACEMENT_H
#define MOBJECT_PLACEMENT_H
#include "common/time.hpp"
#include "common/factory.hpp"
#include "proc/mobject/mobject.hpp"
#include "proc/mobject/session/chainplacement.hpp"
#include "proc/mobject/session/track.hpp"
namespace mobject
{
class ExplicitPlacement;
template<class OBJ> /////TODO: unsolved design problem here!
class Placement : public shared_ptr<OBJ>
{
protected:
typedef cinelerra::Time Time;
typedef session::Track Track;
public:
ChainPlacement chain;
/** resolve the network of placement and
* provide the resulting (explicit) placement.
*/
ExplicitPlacement resolve () ;
protected:
Placement ();
};
} // namespace mobject
#endif