#include <scene.h>
Public Member Functions | |
Scene () | |
~Scene () | |
vector< Frame * > & | getFrames () |
vector< char * > | getImagePaths () |
unsigned int | getSize () |
Frame * | getFrame (unsigned int frameNumber) |
const vector< char * > | addFrames (const vector< char * > &frameNames, unsigned int index, Frontend *frontend, unsigned int &numberOfCanceledFrames) |
const vector< char * > | removeFrames (unsigned int fromFrame, const unsigned int toFrame) |
void | moveFrames (unsigned int fromFrame, unsigned int toFrame, unsigned int movePosition) |
void | cleanFrames (unsigned int fromFrame, unsigned int toFrame) |
char * | addFrame (char *frameName, unsigned int &index) |
void | addSavedFrame (Frame *f) |
int | addSound (unsigned int frameNumber, const char *sound) |
void | removeSound (unsigned int frameNumber, unsigned int soundNumber) |
void | setSoundName (unsigned int frameNumber, unsigned int soundNumber, char *soundName) |
|
Initializes the scene |
|
Cleans up the scene and delete the frames. |
|
Creates a frame with the picture at location frameName and adds it at position at position index in the scene.
|
|
Adds the frames in the vector frameNames to the vector at position index.
|
|
Adds an already saved frame.
|
|
Adds a sound located at the path ``sound'' to the frame at location frameNumber in the scene.
|
|
Cleans frames from the scene without moving them around. Used when the user aborts while adding frames.
|
|
Retrieves the frame at position frameNumber in the scene.
|
|
Temporary functions to assist in an orderly transfer of functionality from Animation, without having to break the project for big time-periods. |
|
Retrieves the image paths of all the frames in this scene. (This is an convenience function and is used when opening scenes)
|
|
Retrieves the size of the scene (the number of frames in it).
|
|
Moves the frames at the positions from fromFrame to toFrame (inclusive) to the position movePosition inside the scene.
|
|
Remove the frames at the positions from fromFrame to toFrame (inclusive) from the scene.
|
|
Removes the the sound with the number soundNumber from the frame at location frameNumber.
|
|
Sets the name of the sound at index soundNumber in the frame at location frameNumber to soundName.
|