Panda3D
Public Member Functions | Static Public Member Functions | Protected Attributes

MovieVideo Class Reference

A MovieVideo is actually any source that provides a sequence of video frames. More...

#include "movieVideo.h"

Inheritance diagram for MovieVideo:
TypedWritableReferenceCount Namable TypedWritable ReferenceCount TypedObject MemoryBase MemoryBase InkblotVideo WebcamVideo

List of all members.

Public Member Functions

 MovieVideo (const string &name="Blank Video")
 This constructor returns a null video stream --- a stream of plain blue and white frames that last one second each.
virtual TypeHandle force_init_type ()
const Filenameget_filename () const
 Returns the movie's filename.
virtual TypeHandle get_type () const
virtual PT (MovieVideoCursor) open()

Static Public Member Functions

static TypeHandle get_class_type ()
static void init_type ()
static PT (MovieVideo) get(const Filename &name)

Protected Attributes

Filename _filename

Detailed Description

A MovieVideo is actually any source that provides a sequence of video frames.

That could include an AVI file, a digital camera, or an internet TV station.

The difference between a MovieVideo and a MovieVideoCursor is like the difference between a filename and a file handle. The MovieVideo just indicates a particular movie. The MovieVideoCursor is what allows access.

Definition at line 36 of file movieVideo.h.


Constructor & Destructor Documentation

MovieVideo::MovieVideo ( const string &  name = "Blank Video")

This constructor returns a null video stream --- a stream of plain blue and white frames that last one second each.

To get more interesting video, you need to construct a subclass of this class.

Definition at line 29 of file movieVideo.cxx.


Member Function Documentation

const Filename & MovieVideo::get_filename ( ) const [inline]

Returns the movie's filename.

A movie is not guaranteed to have a filename, if not, then this function returns a null filename.

Definition at line 23 of file movieVideo.I.


The documentation for this class was generated from the following files:
 All Classes Functions Variables Enumerations