Moo
mooclip.h
Go to the documentation of this file.
1 
4 
5 #ifndef __mooclip__
6 #define __mooclip__
7 
8 #include "mooplatform.h"
9 #include "moomediatypes.h"
10 
15 
16 //-----------------------------------------------------------------------------
17 class MooClip
18 {
19 public:
20  MooClip () {}
21  virtual ~MooClip () {}
22 
24  virtual mooUInt getID () = 0;
25 
27  virtual const mooChar* getName () = 0;
28 
30  virtual const mooChar* getMediaFileName () = 0;
31 
33  virtual mooMediaType getMediaType () = 0;
34 
36 
44  virtual mooDouble getTime () = 0;
45 
47  virtual mooDouble getOffset () = 0;
48 
50  virtual mooDouble getDuration () = 0;
51 
53  virtual mooBool setClipTimes (mooDouble time, mooDouble offset, mooDouble duration) = 0;
54 
56  virtual MooClip** getClips (mooInt& count) = 0;
57 };
58 
59 #endif
unsigned short mooChar
Definition: mooplatform.h:35
virtual mooDouble getOffset()=0
get the clip offset into its media file
mooMediaType
Moo Media Types
Definition: moomediatypes.h:14
A Moo Media Clip
Definition: mooclip.h:17
virtual const mooChar * getMediaFileName()=0
get the local media file name
__int64 mooInt
All signed ints are 64 bit wide.
Definition: mooplatform.h:41
unsigned __int64 mooUInt
All unsigned ints are 64 bit wide.
Definition: mooplatform.h:50
bool mooBool
just a bool
Definition: mooplatform.h:63
double mooDouble
just a double
Definition: mooplatform.h:58
virtual mooMediaType getMediaType()=0
get the clip's media type
virtual const mooChar * getName()=0
get the clip's name
virtual mooDouble getTime()=0
get the clip time (relative to the track)
virtual MooClip ** getClips(mooInt &count)=0
get subclips (not supported yet)
virtual mooBool setClipTimes(mooDouble time, mooDouble offset, mooDouble duration)=0
modify clip times
virtual mooUInt getID()=0
get a project's ID
virtual mooDouble getDuration()=0
get the clip duration