TracktionEngine
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
tracktion::engine::SceneList Class Reference

Represents the Scenes in an Edit. More...

#include <tracktion_Scene.h>

Inheritance diagram for tracktion::engine::SceneList:

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.
 
SceneinsertScene (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.
 
Editedit
 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.
 

Detailed Description

Represents the Scenes in an Edit.

Constructor & Destructor Documentation

◆ SceneList()

tracktion::engine::SceneList::SceneList ( const juce::ValueTree &  ,
Edit  
)

Creates a SceneList for an Edit with a given state.

◆ ~SceneList()

tracktion::engine::SceneList::~SceneList ( )
override

Destructor.

Member Function Documentation

◆ getNumScenes()

int tracktion::engine::SceneList::getNumScenes ( )

Returns the number of Scenes in the Edit.

References tracktion::engine::ValueTreeObjectList< Scene >::size().

◆ getScenes()

juce::Array< Scene * > tracktion::engine::SceneList::getScenes ( )

Returns the Scenes in the Edit.

◆ ensureNumberOfScenes()

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.

◆ insertScene()

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

◆ deleteScene()

void tracktion::engine::SceneList::deleteScene ( Scene )

Deletes a specific Scene.

Member Data Documentation

◆ state

juce::ValueTree tracktion::engine::SceneList::state

The state of this SceneList.

◆ edit

Edit& tracktion::engine::SceneList::edit

The Edit this SceneList belongs to.

◆ sceneWatcher

SceneWatcher tracktion::engine::SceneList::sceneWatcher { state, edit }

A SceneWatcher you can listen to in order to be notified of changes to Slots.


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