DzMultiMediaMgr Class Reference
[Manager ObjectsFile Input and Output Objects]

Manager of multimedia (video and audio) export/import classes. More...

Inheritance diagram for DzMultiMediaMgr:

QObject Object List of all members.

Methods

DzError exportVideoClip (String fileName, DzVideoClip clip, Number exporterIndex=-1)
DzAudioImporter findAudioImporter (String filename)
DzVideoExporter findVideoExporter (String filename)
String getAudioClipLoadPath ()
DzAudioImporter getAudioImporter (Number i)
Number getNumAudioImporters ()
Number getNumVideoExporters ()
String getVideoClipSavePath ()
DzVideoExporter getVideoExporter (Number i)
DzError importAudioClip (String fileName, DzAudioClip clip, Number importerIndex=-1)
void makeAudioImportFileFilter (DzFileFilter filter, String defaultFilter="", Boolean makeAllFilesEntry=true)
void makeVideoExportFileFilter (DzFileFilter filter, String defaultFilter="")

Detailed Description

Manager of multimedia (video and audio) export/import classes.

There is only one instance of this manager in an application. This instance is created and owned by DzApp. Don't create an instance of this class, but rather request a pointer to it from DzApp via DzApp::getMultiMediaMgr().


Member Function Documentation

DzError DzMultiMediaMgr::exportVideoClip ( String  fileName,
DzVideoClip  clip,
Number  exporterIndex = -1 
)

Export the clip to a video file.

Parameters:
filename The name of the file to export to.
clip An instance of DzVideoClip containing the data to save.
exporterIndex The index of the exporter class to use. If this is less than 0, then the extension of fileName is used to attempt to find an appropiate exporter.
Returns:
DZ_NO_ERROR if the file export was successfull.

DzAudioImporter DzMultiMediaMgr::findAudioImporter ( String  filename  ) 

Uses the filename extension to find an appropriate audio importer.

Returns:
An appropriate importer for the given file name, or NULL if none is found. The caller takes ownership of this object and is responsible for deleting it.

DzVideoExporter DzMultiMediaMgr::findVideoExporter ( String  filename  ) 

Uses the filename extension to find an appropriate video exporter.

Returns:
An appropriate exporter for the given file name, or NULL if none is found. The caller takes ownership of this object and is responsible for deleting it.

String DzMultiMediaMgr::getAudioClipLoadPath (  ) 

Returns:
Last directory that audio files were imported from.

DzAudioImporter DzMultiMediaMgr::getAudioImporter ( Number  i  ) 

Returns:
A new instance of the i'th audio importer in the list. The caller takes ownership of this object and is responsible for deleting it.

int DzMultiMediaMgr::getNumAudioImporters (  ) 

Returns:
The number of audio importers currently supported.

int DzMultiMediaMgr::getNumVideoExporters (  ) 

Returns:
The number of video exporters currently supported.

String DzMultiMediaMgr::getVideoClipSavePath (  ) 

Returns:
Last directory that video files were exported to.

DzVideoExporter DzMultiMediaMgr::getVideoExporter ( Number  i  ) 

Parameters:
i The index of the exporter to create.
Returns:
A new instance of the i'th video exporter in the list. The caller takes ownership of this object and is responsible for deleting it.

DzError DzMultiMediaMgr::importAudioClip ( String  fileName,
DzAudioClip  clip,
Number  importerIndex = -1 
)

Import an audio clip from a file.

Parameters:
filename The name of the file to import from.
clip A pointer to a DzAudioClip instance to import the data into.
importerIndex The index of the importer class to use. If this is less than 0, then the extension of fileName is used to attempt to find an appropiate exporter.
Returns:
DZ_NO_ERROR if the file import was successfull.

void DzMultiMediaMgr::makeAudioImportFileFilter ( DzFileFilter  filter,
String  defaultFilter = "",
Boolean  makeAllFilesEntry = true 
)

Populates the given filter with all the audio types recognized by the multimedia manager.

Parameters:
filter The filter to populate
defaultFilter The filter to set as the default
makeAllFilesEntry If true, and additional filter is created for all recognized file extensions.

void DzMultiMediaMgr::makeVideoExportFileFilter ( DzFileFilter  filter,
String  defaultFilter = "" 
)

Populates the given filter with all the video types recognized by the multimedia manager.

Parameters:
filter The filter to populate
defaultFilter The filter to set as the default


Generated on Thu Sep 24 12:21:13 2009

Copyright © 2002 - 2009 DAZ 3D, Inc.