Holds a snapshot of an Edit file of the last time it was saved.
More...
#include <tracktion_EditSnapshot.h>
Inherits juce::ReferenceCountedObject.
Holds a snapshot of an Edit file of the last time it was saved.
◆ Ptr
◆ ~EditSnapshot()
tracktion::engine::EditSnapshot::~EditSnapshot |
( |
| ) |
|
◆ getEditSnapshot()
◆ getID()
◆ getFile()
juce::File tracktion::engine::EditSnapshot::getFile |
( |
| ) |
const |
Returns the File if this was created from one.
◆ getState()
juce::ValueTree tracktion::engine::EditSnapshot::getState |
( |
| ) |
|
|
noexcept |
◆ setState()
void tracktion::engine::EditSnapshot::setState |
( |
juce::ValueTree |
, |
|
|
TimeDuration |
editLength |
|
) |
| |
Sets the Edit XML that the XmlEdit should refer to.
This will take ownership of the XmlElement so don't hang on to it. Once this is set you can retrieve the Xml for saving etc. using getXml(). As the length isn't stored in the Xml we need to provide it.
Note that this DOES NOT update the cached properties, once the Xml has been set call refreshCacheAndSave to update these. Although this seems a bit convoluted it's how the temp Edit files work so we need to follow this. It means that this will hold up-to-date Xml but only cached properties of the last save which can be used in things like EditClips.
◆ isValid()
bool tracktion::engine::EditSnapshot::isValid |
( |
| ) |
const |
Returns true if the current source is a valid Edit.
◆ refreshFromProjectManager()
void tracktion::engine::EditSnapshot::refreshFromProjectManager |
( |
| ) |
|
◆ refreshCacheAndNotifyListeners()
void tracktion::engine::EditSnapshot::refreshCacheAndNotifyListeners |
( |
| ) |
|
Refreshes the cached properties and calls any listeners.
◆ getNestedEditObjects()
juce::ReferenceCountedArray< EditSnapshot > tracktion::engine::EditSnapshot::getNestedEditObjects |
( |
| ) |
|
deals only with snapshots so it's relatively fast.
◆ getName()
juce::String tracktion::engine::EditSnapshot::getName |
( |
| ) |
const |
◆ getNumTracks()
int tracktion::engine::EditSnapshot::getNumTracks |
( |
| ) |
const |
◆ getNumAudioTracks()
int tracktion::engine::EditSnapshot::getNumAudioTracks |
( |
| ) |
const |
◆ getIndexOfTrackID()
int tracktion::engine::EditSnapshot::getIndexOfTrackID |
( |
EditItemID |
trackID | ) |
const |
◆ getTrackName()
juce::String tracktion::engine::EditSnapshot::getTrackName |
( |
int |
index | ) |
const |
◆ getTrackNameFromID()
juce::String tracktion::engine::EditSnapshot::getTrackNameFromID |
( |
EditItemID |
trackID | ) |
const |
◆ isAudioTrack()
bool tracktion::engine::EditSnapshot::isAudioTrack |
( |
int |
trackIndex | ) |
const |
◆ isTrackMuted()
bool tracktion::engine::EditSnapshot::isTrackMuted |
( |
int |
trackIndex | ) |
const |
◆ isTrackSoloed()
bool tracktion::engine::EditSnapshot::isTrackSoloed |
( |
int |
trackIndex | ) |
const |
◆ isTrackSoloIsolated()
bool tracktion::engine::EditSnapshot::isTrackSoloIsolated |
( |
int |
trackIndex | ) |
const |
◆ audioToGlobalTrackIndex()
int tracktion::engine::EditSnapshot::audioToGlobalTrackIndex |
( |
int |
audioIndex | ) |
const |
◆ getLength()
TimeDuration tracktion::engine::EditSnapshot::getLength |
( |
| ) |
const |
◆ getMarkIn()
TimePosition tracktion::engine::EditSnapshot::getMarkIn |
( |
| ) |
const |
◆ getMarkOut()
TimePosition tracktion::engine::EditSnapshot::getMarkOut |
( |
| ) |
const |
◆ areMarksActive()
bool tracktion::engine::EditSnapshot::areMarksActive |
( |
| ) |
const |
◆ getTempo()
double tracktion::engine::EditSnapshot::getTempo |
( |
| ) |
const |
◆ getTimeSigNumerator()
int tracktion::engine::EditSnapshot::getTimeSigNumerator |
( |
| ) |
const |
◆ getTimeSigDenominator()
int tracktion::engine::EditSnapshot::getTimeSigDenominator |
( |
| ) |
const |
◆ getPitch()
int tracktion::engine::EditSnapshot::getPitch |
( |
| ) |
const |
◆ getMarkers()
const juce::Array< Marker > & tracktion::engine::EditSnapshot::getMarkers |
( |
| ) |
const |
◆ getTracks()
const juce::Array< EditItemID > & tracktion::engine::EditSnapshot::getTracks |
( |
| ) |
const |
◆ getEditClips()
const juce::Array< ProjectItemID > & tracktion::engine::EditSnapshot::getEditClips |
( |
| ) |
const |
◆ getClipsSourceIDs()
const juce::Array< ProjectItemID > & tracktion::engine::EditSnapshot::getClipsSourceIDs |
( |
| ) |
const |
◆ getHash()
HashCode tracktion::engine::EditSnapshot::getHash |
( |
| ) |
const |
◆ addListener()
void tracktion::engine::EditSnapshot::addListener |
( |
Listener * |
l | ) |
|
◆ removeListener()
void tracktion::engine::EditSnapshot::removeListener |
( |
Listener * |
l | ) |
|
◆ engine
Engine& tracktion::engine::EditSnapshot::engine |
The documentation for this class was generated from the following file: