#include <animation.h>
Inheritance diagram for Animation:
Public Member Functions | |
Animation () | |
~Animation () | |
const vector< char * > | addFrames (const vector< char * > &frameNames, unsigned int index) |
const vector< char * > | removeFrames (unsigned int fromFrame, const unsigned int toFrame) |
void | moveFrames (unsigned int fromFrame, unsigned int toFrame, unsigned int movePosition) |
int | addSound (unsigned int frameNumber, const char *filename) |
void | removeSound (unsigned int frameNumber, unsigned int soundNumber) |
void | setSoundName (unsigned int frameNumber, unsigned int soundNumber, char *soundName) |
Frame * | getFrame (unsigned int frameNumber, unsigned int sceneNumber) |
Frame * | getFrame (unsigned int frameNumber) |
unsigned int | getModelSize () |
unsigned int | getSceneSize (int sceneNumber) |
unsigned int | getNumberOfScenes () |
void | setActiveFrame (int frameNumber) |
void | playFrame (int frameNumber) |
int | getActiveFrameNumber () |
void | clear () |
const char * | getProjectFile () |
bool | openProject (const char *filename) |
bool | saveProject (const char *filename) |
bool | newProject () |
bool | isUnsavedChanges () |
void | setActiveScene (int sceneNumber) |
int | getActiveSceneNumber () |
void | newScene (int index) |
void | removeScene (int sceneNumber) |
void | moveScene (int sceneNumber, int movePosition) |
bool | initAudioDevice () |
void | shutdownAudioDevice () |
void | animationChanged (const char *alteredFile) |
bool | exportToVideo (VideoEncoder *encoder) |
bool | exportToCinerella (const char *file) |
|
Initializes the variables of the animation to starting values. |
|
Cleans up the animation. |
|
Inserts a new frame into the animationmodel.
Implements AnimationModel. |
|
Adds the sound from the file "sound" to frame at position frameNumber.
Implements AnimationModel. |
|
Function to call when a file has been altered and the gui should be updated.
Implements AnimationModel. |
|
Clears the model. Implements AnimationModel. |
|
Exports the current project to a Cinerella project.
Implements AnimationModel. |
|
Exports the current project to a video file as specified by the video encoder.
Implements AnimationModel. |
|
Returns the number of the currently active frame in the model.
Implements AnimationModel. |
|
Returns the number of the currently active scene.
Implements AnimationModel. |
|
Overloaded function for convenience. Assumes the scene to retrieve there frame from is the active scene.
Implements AnimationModel. |
|
Returns the frame with the number frameNumber.
Implements AnimationModel. |
|
Returns the size of the model.
Implements AnimationModel. |
|
Retrieves the number of scenes in the animation.
Implements AnimationModel. |
|
Retrieves the project directory
Implements AnimationModel. |
|
Retrieves the size of the scene at index sceneNumber.
Implements AnimationModel. |
|
Initializes the audio device so it is ready to play sounds.
Implements AnimationModel. |
|
Checks if there are unsaved changes in the model.
Implements AnimationModel. |
|
Move the frames from fromFrame (inclusive) to toFrame to toPosition.
Implements AnimationModel. |
|
Moves the scene at position sceneNumber to the position movePosition.
Implements AnimationModel. |
|
Creates a new project.
Implements AnimationModel. |
|
Create and adds a new scene to the animation at position ``index''.
Implements AnimationModel. |
|
Opens a project.
Implements AnimationModel. |
|
Plays the frame with number frameNumber.
Implements AnimationModel. |
|
Removes the frames between (inclusive) fromFrame and toFrame from the animation.
Implements AnimationModel. |
|
Removes the scene at the location sceneNumber from the animation.
Implements AnimationModel. |
|
Removes the sound with index soundNumber from the frame with index frameNumber.
Implements AnimationModel. |
|
Saves the active project to a XML-file which is written to disk.
Implements AnimationModel. |
|
Function for changing the currently active frame.
Implements AnimationModel. |
|
Sets the scene with at position sceneNumber as the active scene.
Implements AnimationModel. |
|
Sets the name of the sound with index soundNumber in the frame with index frameNumber to soundName.
Implements AnimationModel. |
|
Shutdowns the the audio device so that other programs can use it. Implements AnimationModel. |