started base transition type

Like the base "Block" type, the "Transition" type will not be a node used on its
own, it will have to be derived. This type defines some basic behavior for a
transition (e.g. how much it overlaps its "from" and "to" blocks).
This commit is contained in:
itsmattkc
2019-12-07 02:49:30 +11:00
parent eac89cd685
commit 0c6ec926b6
7 changed files with 130 additions and 4 deletions
+5 -4
View File
@@ -42,7 +42,8 @@ public:
enum Type {
kClip,
kGap,
kTrack
kTrack,
kTransition
};
virtual Type type() const = 0;
@@ -54,9 +55,9 @@ public:
void set_in(const rational& in);
void set_out(const rational& out);
const rational &length() const;
void set_length(const rational &length);
void set_length_and_media_in(const rational &length);
const rational& length() const;
virtual void set_length(const rational &length);
virtual void set_length_and_media_in(const rational &length);
Block* previous();
Block* next();