Lumiera  0.pre.03
»edityourfreedom«
proc/mobject/session/clip.hpp
Go to the documentation of this file.
1 /*
2  CLIP.hpp - a Media Clip
3 
4  Copyright (C) Lumiera.org
5  2008, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
31 #ifndef PROC_MOBJECT_SESSION_CLIP_H
32 #define PROC_MOBJECT_SESSION_CLIP_H
33 
35 #include "lib/time/timevalue.hpp"
36 #include "lib/p.hpp"
37 
38 
39 namespace proc {
40 namespace asset {
41  class Media;
42  class Clip;
43 }
44 
45 namespace mobject {
46 namespace session {
47 
48  using asset::Media;
49  using lib::time::TimeVar;
50 
51  class Clip;
52 
55 
57 
58 
71  class Clip
72  : public AbstractMO
73  {
74  string
75  initShortID() const
76  {
77  return buildShortID("Clip");
78  }
79 
80  void setupLength();
81 
82 
83 
84  protected:
87 
95  const Media & mediaDef_;
97 
98  Clip (const asset::Clip&, const Media&);
99  friend class MObjectFactory;
100 
101 
102  public:
103  bool isValid() const;
104 
106  PMedia getMedia () const;
107 
112  PClipAsset findClipAsset () const;
113 
115 
116  };
117 
118 
119 
120 
121 }}} // namespace proc::mobject::session
122 #endif
ChPredicate isValid(is_alnum() or is_any_of("-_.+$()@"))
characters to be retained
a mutable time value, behaving like a plain number, allowing copy and re-accessing ...
Definition: timevalue.hpp:142
bookkeeping (Asset) view of a media clip.
A user visible/editable Clip is a reference to a contiguous sequence of media data loaded as Asset in...
The asset subsystem of the Proc-Layer.
Definition: id-scheme.hpp:64
Customised refcounting smart pointer.
Base class of all BuilderTools, used according to the visitor pattern: each Tool contains the concret...
TimeVar start_
start position in source
abstract base class of all MObjects for providing common services.
Definition: abstractmo.hpp:48
Namespace of Session and user visible high-level objects.
Customised refcounting smart pointer template, built upon std::shared_ptr, but forwarding type relati...
Definition: trait.hpp:76
#define DEFINE_PROCESSABLE_BY(TOOL)
mark a Visitable subclass as actually treat-able by some "visiting tool" base interface.
Definition: visitor.hpp:231
Proc-Layer implementation namespace root.
Definition: id-scheme.hpp:63
a family of time value like entities and their relationships.
key abstraction: media-like assets
Definition: media.hpp:72