TracktionEngine
|
Represents the Scenes in an Edit. More...
#include <tracktion_Scene.h>
Public Member Functions | |
SceneList (const juce::ValueTree &, Edit &) | |
Creates a SceneList for an Edit with a given state. | |
~SceneList () override | |
Destructor. | |
int | getNumScenes () |
Returns the number of Scenes in the Edit. | |
juce::Array< Scene * > | getScenes () |
Returns the Scenes in the Edit. | |
void | ensureNumberOfScenes (int numScenes) |
Adds Scenes to ensure numScenes are preset in the list. | |
Scene * | insertScene (int index) |
Inserts a new scene with the given index. | |
void | deleteScene (Scene &) |
Deletes a specific Scene. | |
Public Attributes | |
juce::ValueTree | state |
The state of this SceneList. | |
Edit & | edit |
The Edit this SceneList belongs to. | |
SceneWatcher | sceneWatcher { state, edit } |
A SceneWatcher you can listen to in order to be notified of changes to Slots. | |
Represents the Scenes in an Edit.
tracktion::engine::SceneList::SceneList | ( | const juce::ValueTree & | , |
Edit & | |||
) |
|
override |
Destructor.
int tracktion::engine::SceneList::getNumScenes | ( | ) |
Returns the number of Scenes in the Edit.
References tracktion::engine::ValueTreeObjectList< Scene >::size().
void tracktion::engine::SceneList::ensureNumberOfScenes | ( | int | numScenes | ) |
Adds Scenes to ensure numScenes are preset in the list.
N.B. This also adds ClipSlots to all tracks to ensure they have the same number of slots.
Scene * tracktion::engine::SceneList::insertScene | ( | int | index | ) |
Inserts a new scene with the given index.
If the index is < 0 or greater than the current number of scenes, the new one will be added at the end of the list
juce::ValueTree tracktion::engine::SceneList::state |
The state of this SceneList.
SceneWatcher tracktion::engine::SceneList::sceneWatcher { state, edit } |
A SceneWatcher you can listen to in order to be notified of changes to Slots.