TracktionEngine
Loading...
Searching...
No Matches
Classes | Public Member Functions | Public Attributes | List of all members
engine::Clipboard::AutomationPoints Struct Reference

#include <tracktion_Clipboard.h>

Inheritance diagram for engine::Clipboard::AutomationPoints:

Classes

struct  CurveSection
 Internal structure representing a single curve's data. More...
 

Public Member Functions

 AutomationPoints (const AutomationCurve &, juce::Range< float >, EditTimeRange, float defaultValue)
 
 AutomationPoints (AutomatableParameter &, const AutomationCurve &, TimeRange)
 
 AutomationPoints (const juce::Array< Track * > &, TimeRange)
 Multi-track constructor: copies automation from all parameters on the given tracks within the time range.
 
 AutomationPoints (const juce::Array< AutomatableParameter * > &, TimeRange)
 Multi-parameter constructor: copies automation from specific parameters within the time range.
 
 ~AutomationPoints () override
 
bool pasteIntoEdit (const EditPastingOptions &) const override
 
bool pasteIntoTracks (const juce::Array< Track * > &targetTracks, TimePosition pasteStartTime) const
 Multi-curve paste: pastes automation curves to target tracks by position offset.
 
bool pasteAutomationCurve (AutomationCurve &targetCurve, juce::Range< float > targetValueRange, float targetDefaultValue, std::optional< EditTimeRange > targetRange) const
 
bool pasteAutomationCurve (AutomatableParameter &, AutomationCurve &, TimeRange targetRange) const
 
bool pasteAutomationCurveAtIndex (AutomatableParameter &, AutomationCurve &, TimeRange targetRange, size_t curveIndex) const
 Pastes a specific curve by index to the target parameter. Used when multi-curve content falls back to per-param paste.
 
virtual bool pasteIntoEdit (Edit &, EditInsertPoint &, SelectionManager *) const
 
virtual bool pasteIntoEdit (const EditPastingOptions &) const
 
- Public Member Functions inherited from engine::Clipboard::ContentType
virtual ~ContentType ()
 

Public Attributes

std::vector< CurveSectioncurves
 
TimeDuration sourceDuration
 

Constructor & Destructor Documentation

◆ AutomationPoints() [1/4]

engine::Clipboard::AutomationPoints::AutomationPoints ( const AutomationCurve ,
juce::Range< float >  ,
EditTimeRange  ,
float  defaultValue 
)

◆ AutomationPoints() [2/4]

engine::Clipboard::AutomationPoints::AutomationPoints ( AutomatableParameter ,
const AutomationCurve ,
TimeRange   
)

◆ AutomationPoints() [3/4]

engine::Clipboard::AutomationPoints::AutomationPoints ( const juce::Array< Track * > &  ,
TimeRange   
)

Multi-track constructor: copies automation from all parameters on the given tracks within the time range.

◆ AutomationPoints() [4/4]

engine::Clipboard::AutomationPoints::AutomationPoints ( const juce::Array< AutomatableParameter * > &  ,
TimeRange   
)

Multi-parameter constructor: copies automation from specific parameters within the time range.

◆ ~AutomationPoints()

engine::Clipboard::AutomationPoints::~AutomationPoints ( )
override

Member Function Documentation

◆ pasteIntoEdit() [1/3]

bool engine::Clipboard::AutomationPoints::pasteIntoEdit ( const EditPastingOptions ) const
overridevirtual

Reimplemented from engine::Clipboard::ContentType.

◆ pasteIntoTracks()

bool engine::Clipboard::AutomationPoints::pasteIntoTracks ( const juce::Array< Track * > &  targetTracks,
TimePosition  pasteStartTime 
) const

Multi-curve paste: pastes automation curves to target tracks by position offset.

◆ pasteAutomationCurve() [1/2]

bool engine::Clipboard::AutomationPoints::pasteAutomationCurve ( AutomationCurve targetCurve,
juce::Range< float >  targetValueRange,
float  targetDefaultValue,
std::optional< EditTimeRange targetRange 
) const

◆ pasteAutomationCurve() [2/2]

bool engine::Clipboard::AutomationPoints::pasteAutomationCurve ( AutomatableParameter ,
AutomationCurve ,
TimeRange  targetRange 
) const

◆ pasteAutomationCurveAtIndex()

bool engine::Clipboard::AutomationPoints::pasteAutomationCurveAtIndex ( AutomatableParameter ,
AutomationCurve ,
TimeRange  targetRange,
size_t  curveIndex 
) const

Pastes a specific curve by index to the target parameter. Used when multi-curve content falls back to per-param paste.

◆ pasteIntoEdit() [2/3]

virtual bool engine::Clipboard::ContentType::pasteIntoEdit ( Edit ,
EditInsertPoint ,
SelectionManager  
) const
virtual

Reimplemented from engine::Clipboard::ContentType.

◆ pasteIntoEdit() [3/3]

virtual bool engine::Clipboard::ContentType::pasteIntoEdit ( const EditPastingOptions ) const
virtual

Reimplemented from engine::Clipboard::ContentType.

Member Data Documentation

◆ curves

std::vector<CurveSection> engine::Clipboard::AutomationPoints::curves

◆ sourceDuration

TimeDuration engine::Clipboard::AutomationPoints::sourceDuration

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