tracktion-engine 3.0-10-g034fdde4aa5
Tracktion Engine — High level data model for audio applications

« « « Anklang Documentation
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:
tracktion::engine::ValueTreeObjectList< Scene >

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
 A SceneWatcher you can listen to in order to be notified of changes to Slots.
 

Detailed Description

Represents the Scenes in an Edit.

Definition at line 120 of file tracktion_Scene.h.

Constructor & Destructor Documentation

◆ SceneList()

tracktion::engine::SceneList::SceneList ( const juce::ValueTree v,
Edit e 
)

Creates a SceneList for an Edit with a given state.

Definition at line 183 of file tracktion_Scene.cpp.

◆ ~SceneList()

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

Destructor.

Definition at line 192 of file tracktion_Scene.cpp.

Member Function Documentation

◆ deleteScene()

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

Deletes a specific Scene.

Definition at line 224 of file tracktion_Scene.cpp.

◆ 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.

Definition at line 203 of file tracktion_Scene.cpp.

◆ getNumScenes()

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

Returns the number of Scenes in the Edit.

Definition at line 130 of file tracktion_Scene.h.

◆ getScenes()

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

Returns the Scenes in the Edit.

Definition at line 198 of file tracktion_Scene.cpp.

◆ 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

Definition at line 214 of file tracktion_Scene.cpp.

Member Data Documentation

◆ edit

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

The Edit this SceneList belongs to.

Definition at line 151 of file tracktion_Scene.h.

◆ sceneWatcher

SceneWatcher tracktion::engine::SceneList::sceneWatcher

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

Definition at line 154 of file tracktion_Scene.h.

◆ state

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

The state of this SceneList.

Definition at line 150 of file tracktion_Scene.h.


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