Script
Public Slots | List of all members
MovieImport Class Reference

This object is used to import a QuickTime movie in the scene. First the user needs to set up the importing parameters using the functions: setMovieFilename, setImageFolder, setImagePrefix and setAudioFile. Then call doImport and after that, the user can iterate over the number of images, the current image filename and whether an audio file was created or not. More...

#include <movieinterface.h>

Inheritance diagram for MovieImport:
Inheritance graph
[legend]
Collaboration diagram for MovieImport:
Collaboration graph
[legend]

Public Slots

void setMovieFilename (QString filename)
 defines the input movie filename.
 
void setImageFolder (QString folder)
 defines where to store the extracted images.
 
void setImagePrefix (QString prefix)
 defines which prefix to use to save the images.
 
void setAudioFile (QString audioFilename)
 set the expected audio filename. must be wav format (as this is currently the only one supported ) sound filename can be left empty. if so, there will not be any file created.
 
bool doImport ()
 perform the import - no progress bar.
 
int numberOfImages ()
 return the number of imported images from the last import.
 
QString image (int index)
 return the complete filename for the imported image 'index' from the last import.
 
bool isAudioFileCreated ()
 return true if a sound file was created at the given filename.
 

Detailed Description

This object is used to import a QuickTime movie in the scene. First the user needs to set up the importing parameters using the functions: setMovieFilename, setImageFolder, setImagePrefix and setAudioFile. Then call doImport and after that, the user can iterate over the number of images, the current image filename and whether an audio file was created or not.

Member Function Documentation

bool MovieImport::doImport ( )
slot

perform the import - no progress bar.

QString MovieImport::image ( int  index)
slot

return the complete filename for the imported image 'index' from the last import.

bool MovieImport::isAudioFileCreated ( )
slot

return true if a sound file was created at the given filename.

int MovieImport::numberOfImages ( )
slot

return the number of imported images from the last import.

void MovieImport::setAudioFile ( QString  audioFilename)
slot

set the expected audio filename. must be wav format (as this is currently the only one supported ) sound filename can be left empty. if so, there will not be any file created.

void MovieImport::setImageFolder ( QString  folder)
slot

defines where to store the extracted images.

void MovieImport::setImagePrefix ( QString  prefix)
slot

defines which prefix to use to save the images.

void MovieImport::setMovieFilename ( QString  filename)
slot

defines the input movie filename.


The documentation for this class was generated from the following file: