Timeline editing controller shared by developer and in-game editors. 更多...
#include <ActionTimelineEditor.h>
Public 成员函数 | |
| ActionTimelineEditor (std::string targetId, action::ActionTimeline timeline) | |
| Construct a self-contained editor for one canonical timeline. | |
| ActionTimelineEditor (std::string targetId, action::ActionTimeline timeline, std::shared_ptr< ActionTimelineClipboard > clipboard) | |
| Construct an editor using an explicitly shared owning clipboard. | |
| const ActionTimelineTarget & | target () const noexcept |
| Borrow the authoritative target. | |
| Result< void > | reloadDocument (const EditorValue &snapshot) |
| Atomically replace the document snapshot and clear history, selection and preview transport. | |
| Result< void > | configureWorkspace (EditorWorkspace &workspace) const |
| Atomically install the standard asset/preview/timeline/inspector panel composition. | |
| Result< void > | addTrack (action::ActionTrack track) |
| Add an empty semantic track. | |
| Result< void > | removeTrack (const LogicalId &trackId) |
| Remove one semantic track and all of its items in one undoable transaction. | |
| Result< void > | renameTrack (const LogicalId &trackId, std::string label) |
| Rename one track without changing its stable identity. | |
| Result< void > | setMontageSettings (action::ActionMontageSettings settings) |
| Replace montage-wide playback, blending, layer and root-motion settings in one undo step. | |
| Result< void > | addSectionSplit (Duration time) |
| Insert one physical-section split strictly inside the montage duration. | |
| Result< void > | setSectionSplit (std::size_t index, Duration time) |
| Move one indexed physical-section split while preserving strict ordering. | |
| Result< void > | removeSectionSplit (std::size_t index) |
| Remove one indexed physical-section split. | |
| Result< void > | addAnimationSection (action::ActionAnimationSection section) |
| Add one objective animation section to the montage lane. | |
| Result< void > | moveAnimationSection (const LogicalId §ionId, Duration delta) |
| Move an animation section while preserving its duration. | |
| Result< void > | resizeAnimationSection (const LogicalId §ionId, Duration start, Duration end, Duration blendIn) |
| Resize an animation section and its incoming blend window. | |
| Result< void > | editAnimationSection (const LogicalId §ionId, Duration start, Duration end, Duration blendIn, std::string animationUri) |
| Atomically edit section timing, blend and animation resource URI. | |
| Result< void > | editAnimationSectionSource (const LogicalId §ionId, Duration sourceStart, Duration sourceEnd, action::ActionBlendCurve blendCurve) |
| Atomically edit clip-local trim and incoming blend curve. | |
| Result< void > | editAnimationSectionFull (action::ActionAnimationSection section) |
| Replace every editable animation-section field in one undo step. | |
| Result< void > | removeAnimationSection (const LogicalId §ionId) |
| Remove one animation section from the montage lane. | |
| Result< void > | addNotify (const LogicalId &trackId, action::ActionNotify notify) |
| Add an instantaneous notify to an unlocked track. | |
| Result< void > | addState (const LogicalId &trackId, action::ActionNotifyState state) |
| Add a notify state interval to an unlocked track. | |
| Result< void > | moveItem (const LogicalId &itemId, Duration delta) |
| Move one notify or state by an exact deterministic delta. | |
| Result< void > | resizeState (const LogicalId &itemId, Duration start, Duration end) |
| Resize one notify-state interval to exact validated boundaries. | |
| Result< void > | updateItem (const LogicalId &itemId, LogicalId type, Value::Object payload) |
| Replace one item's type and owning payload through one undoable transaction. | |
| Result< void > | addParameterKey (const LogicalId &itemId, action::ActionParameterKey key) |
| Insert one normalized key into a parameter curve as an undoable edit. | |
| Result< void > | editParameterKey (const LogicalId &itemId, std::size_t index, action::ActionParameterKey key) |
| Replace one indexed parameter key as an undoable edit. | |
| Result< void > | removeParameterKey (const LogicalId &itemId, std::size_t index) |
| Remove one non-endpoint parameter key as an undoable edit. | |
| Result< void > | editItem (const LogicalId &itemId, Duration start, Duration end, LogicalId type, Value::Object payload) |
| Atomically replace one item's timing, type and owning payload. | |
| Result< void > | setItemEnabled (const LogicalId &itemId, bool enabled) |
| Enable or disable one notify/state through an undoable transaction. | |
| Result< void > | removeItem (const LogicalId &itemId) |
| Remove one notify or state. | |
| Result< void > | setTrackMuted (const LogicalId &trackId, bool muted) |
| Mute/unmute one track through an undoable operation. | |
| Result< void > | setTrackLocked (const LogicalId &trackId, bool locked) |
| Lock/unlock one track through an undoable operation. | |
| Result< std::size_t > | boxSelect (Duration start, Duration end) |
| Replace selection with items intersecting a time interval. | |
| void | clearSelection () |
| Clear selection. | |
| Result< void > | selectItem (const LogicalId &itemId, bool additive=false) |
| Select one existing item, optionally preserving the current selection. | |
| std::size_t | selectionCount () const noexcept |
| Number of selected timeline items. | |
| std::vector< LogicalId > | selectedItemIds () const |
| Return selected item IDs in lexical order as owning values. | |
| Result< TimelineSelectionRange > | selectionRange () const |
| Return the outer bounds of every selected section, notify and notify-state. | |
| Result< void > | moveSelection (Duration delta) |
| Move the complete selection by one exact delta in a single undoable transaction. | |
| Result< void > | alignSelectionStart () |
| Align selected item starts to the earliest selected start while preserving item durations. | |
| Result< void > | alignSelectionEnd () |
| Align selected item ends to the latest selected end while preserving item durations. | |
| Result< void > | scaleSelection (Duration start, Duration end) |
| Proportionally fit the complete selection into exact destination bounds. | |
| Result< std::size_t > | copySelection () |
| Copy selected items into an owning editor clipboard. | |
| Result< std::size_t > | paste (Duration offset) |
| Paste copied items at an exact offset with new stable ids. | |
| Result< std::size_t > | pasteToTrack (const LogicalId &trackId, Duration offset) |
| Paste copied notify items into a chosen target track for cross-document workflows. | |
| Result< void > | copyTrack (const LogicalId &trackId) |
| Deep-copy one complete track into the shared clipboard. | |
| Result< LogicalId > | pasteTrack () |
| Paste a copied complete track with collision-free track and item ids. | |
| Result< void > | deleteSelection () |
| Delete every selected item as one transaction. | |
| Result< TransactionReceipt > | undo () |
| Undo the latest committed edit. | |
| Result< TransactionReceipt > | redo () |
| Redo the latest compensated edit. | |
| bool | canUndo () const noexcept |
| Whether undo history is non-empty. | |
| bool | canRedo () const noexcept |
| Whether redo history is non-empty. | |
| void | play () noexcept |
| Begin preview playback from the current cursor. | |
| void | pause () noexcept |
| Pause preview playback. | |
| Result< void > | stop () |
| Pause and return the preview cursor to the first frame. | |
| Result< Duration > | frameStepTarget (std::int64_t frames, double frameRate) const |
| Resolve a signed frame step without mutating transport state. | |
| Result< void > | stepFrames (std::int64_t frames, double frameRate) |
| Pause and move by a signed number of frames, clamped to the timeline. | |
| Result< void > | jumpToEnd () |
| Pause and move the cursor to the final frame boundary. | |
| Result< void > | seek (Duration time) |
| Seek preview without emitting crossed events. | |
| Result< std::size_t > | update (Duration delta) |
| Advance preview by injected time and collect crossed events. | |
| Result< ActionTimelinePreviewPlan > | planPreview (Duration delta) const |
| Prepare a preview advance without mutating transport state. | |
| Result< std::size_t > | applyPreviewPlan (ActionTimelinePreviewPlan plan) |
| Commit an unchanged prepared preview advance. | |
| Duration | previewTime () const noexcept |
| Current deterministic preview cursor. | |
| bool | playing () const noexcept |
| Whether preview transport is playing. | |
| const std::vector< action::ActionTimelineEvent > & | previewEvents () const noexcept |
| Events crossed by the latest preview update. | |
详细描述
Timeline editing controller shared by developer and in-game editors.
It owns selection, clipboard, preview transport and local undo history, but never a second timeline. Every edit creates an invertible DomainOperation and commits through the same authority/transaction path as other editors. All methods are owner-thread-only and invoke no external callbacks.
在文件 ActionTimelineEditor.h 第 162 行定义.
构造及析构函数说明
◆ ActionTimelineEditor() [1/2]
| eve::editor::ActionTimelineEditor::ActionTimelineEditor | ( | std::string | targetId, |
| action::ActionTimeline | timeline | ||
| ) |
Construct a self-contained editor for one canonical timeline.
在文件 ActionTimelineEditor.cpp 第 311 行定义.
◆ ActionTimelineEditor() [2/2]
| eve::editor::ActionTimelineEditor::ActionTimelineEditor | ( | std::string | targetId, |
| action::ActionTimeline | timeline, | ||
| std::shared_ptr< ActionTimelineClipboard > | clipboard | ||
| ) |
Construct an editor using an explicitly shared owning clipboard.
- 参数
-
targetId Stable editor target identity. timeline Valid canonical timeline owned by this editor. clipboard Clipboard whose shared ownership is retained; null creates an isolated clipboard.
在文件 ActionTimelineEditor.cpp 第 314 行定义.
成员函数说明
◆ addAnimationSection()
| Result< void > eve::editor::ActionTimelineEditor::addAnimationSection | ( | action::ActionAnimationSection | section | ) |
Add one objective animation section to the montage lane.
在文件 ActionTimelineEditor.cpp 第 481 行定义.
引用了 eve::action::ActionTimeline::animationSections , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ addNotify()
| Result< void > eve::editor::ActionTimelineEditor::addNotify | ( | const LogicalId & | trackId, |
| action::ActionNotify | notify | ||
| ) |
Add an instantaneous notify to an unlocked track.
在文件 ActionTimelineEditor.cpp 第 562 行定义.
引用了 eve::editor::ActionTimelineTarget::timeline() , 以及 trackId.
◆ addParameterKey()
| Result< void > eve::editor::ActionTimelineEditor::addParameterKey | ( | const LogicalId & | itemId, |
| action::ActionParameterKey | key | ||
| ) |
Insert one normalized key into a parameter curve as an undoable edit.
在文件 ActionTimelineEditor.cpp 第 648 行定义.
引用了 binding, found, eve::action::ActionParameterCurveBinding::fromPayload(), itemId, key, left, payload, right, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks , 以及 updateItem().
◆ addSectionSplit()
Insert one physical-section split strictly inside the montage duration.
在文件 ActionTimelineEditor.cpp 第 447 行定义.
引用了 eve::action::ActionTimeline::duration, eve::action::ActionTimeline::splitTimestamps, time, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::Duration::zero().
◆ addState()
| Result< void > eve::editor::ActionTimelineEditor::addState | ( | const LogicalId & | trackId, |
| action::ActionNotifyState | state | ||
| ) |
Add a notify state interval to an unlocked track.
在文件 ActionTimelineEditor.cpp 第 572 行定义.
引用了 state, eve::editor::ActionTimelineTarget::timeline() , 以及 trackId.
◆ addTrack()
| Result< void > eve::editor::ActionTimelineEditor::addTrack | ( | action::ActionTrack | track | ) |
Add an empty semantic track.
在文件 ActionTimelineEditor.cpp 第 420 行定义.
引用了 eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
◆ alignSelectionEnd()
| Result< void > eve::editor::ActionTimelineEditor::alignSelectionEnd | ( | ) |
Align selected item ends to the latest selected end while preserving item durations.
在文件 ActionTimelineSelection.cpp 第 136 行定义.
引用了 anchor, eve::action::ActionTimeline::animationSections, eve::Result< T >::failure(), eve::Duration::fromNanoseconds(), eve::Duration::nanoseconds(), range, selectionRange(), start, state, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
◆ alignSelectionStart()
| Result< void > eve::editor::ActionTimelineEditor::alignSelectionStart | ( | ) |
Align selected item starts to the earliest selected start while preserving item durations.
在文件 ActionTimelineSelection.cpp 第 94 行定义.
引用了 anchor, eve::action::ActionTimeline::animationSections, end, eve::Result< T >::failure(), eve::Duration::fromNanoseconds(), range, selectionRange(), state, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
◆ applyPreviewPlan()
| Result< std::size_t > eve::editor::ActionTimelineEditor::applyPreviewPlan | ( | ActionTimelinePreviewPlan | plan | ) |
Commit an unchanged prepared preview advance.
在文件 ActionTimelineEditor.cpp 第 1113 行定义.
引用了 eve::editor::ActionTimelinePreviewPlan::current, eve::editor::ActionTimelinePreviewPlan::events, eve::editor::ActionTimelinePreviewPlan::includeStart, eve::editor::ActionTimelinePreviewPlan::previous, eve::editor::ActionTimelinePreviewPlan::reachesEnd , 以及 eve::editor::ActionTimelinePreviewPlan::timelineRevision.
◆ boxSelect()
Replace selection with items intersecting a time interval.
在文件 ActionTimelineEditor.cpp 第 826 行定义.
引用了 eve::action::ActionTimeline::animationSections, eve::action::ActionTimeline::duration, end, start, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks , 以及 eve::Duration::zero().
◆ canRedo()
|
inlinenoexcept |
Whether redo history is non-empty.
在文件 ActionTimelineEditor.h 第 285 行定义.
◆ canUndo()
|
inlinenoexcept |
Whether undo history is non-empty.
在文件 ActionTimelineEditor.h 第 283 行定义.
◆ clearSelection()
|
inline |
Clear selection.
在文件 ActionTimelineEditor.h 第 245 行定义.
◆ configureWorkspace()
| Result< void > eve::editor::ActionTimelineEditor::configureWorkspace | ( | EditorWorkspace & | workspace | ) | const |
Atomically install the standard asset/preview/timeline/inspector panel composition.
在文件 ActionTimelineEditor.cpp 第 340 行定义.
引用了 eve::editor::EditorWorkspace::activatePanel(), context, id, order, eve::editor::EditorWorkspace::registerPanel(), eve::editor::EditorWorkspace::setPanelCapability(), eve::editor::EditorWorkspace::setPanelContext() , 以及 title.
◆ copySelection()
| Result< std::size_t > eve::editor::ActionTimelineEditor::copySelection | ( | ) |
Copy selected items into an owning editor clipboard.
在文件 ActionTimelineEditor.cpp 第 868 行定义.
引用了 eve::action::ActionTimeline::animationSections , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ copyTrack()
Deep-copy one complete track into the shared clipboard.
在文件 ActionTimelineEditor.cpp 第 968 行定义.
引用了 trackId.
◆ deleteSelection()
| Result< void > eve::editor::ActionTimelineEditor::deleteSelection | ( | ) |
Delete every selected item as one transaction.
在文件 ActionTimelineEditor.cpp 第 997 行定义.
引用了 eve::action::ActionTimeline::animationSections , 以及 eve::action::ActionTimeline::tracks.
◆ editAnimationSection()
| Result< void > eve::editor::ActionTimelineEditor::editAnimationSection | ( | const LogicalId & | sectionId, |
| Duration | start, | ||
| Duration | end, | ||
| Duration | blendIn, | ||
| std::string | animationUri | ||
| ) |
Atomically edit section timing, blend and animation resource URI.
在文件 ActionTimelineEditor.cpp 第 513 行定义.
引用了 eve::action::ActionTimeline::animationSections, end, found, start , 以及 eve::editor::ActionTimelineTarget::timeline().
被这些函数引用 resizeAnimationSection().
◆ editAnimationSectionFull()
| Result< void > eve::editor::ActionTimelineEditor::editAnimationSectionFull | ( | action::ActionAnimationSection | section | ) |
Replace every editable animation-section field in one undo step.
在文件 ActionTimelineEditor.cpp 第 542 行定义.
引用了 eve::action::ActionTimeline::animationSections, found, eve::editor::ActionTimelineTarget::timeline() , 以及 value.
◆ editAnimationSectionSource()
| Result< void > eve::editor::ActionTimelineEditor::editAnimationSectionSource | ( | const LogicalId & | sectionId, |
| Duration | sourceStart, | ||
| Duration | sourceEnd, | ||
| action::ActionBlendCurve | blendCurve | ||
| ) |
Atomically edit clip-local trim and incoming blend curve.
在文件 ActionTimelineEditor.cpp 第 528 行定义.
引用了 eve::action::ActionTimeline::animationSections, found , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ editItem()
| Result< void > eve::editor::ActionTimelineEditor::editItem | ( | const LogicalId & | itemId, |
| Duration | start, | ||
| Duration | end, | ||
| LogicalId | type, | ||
| Value::Object | payload | ||
| ) |
Atomically replace one item's timing, type and owning payload.
在文件 ActionTimelineEditor.cpp 第 722 行定义.
引用了 eve::action::ActionTimeline::duration, end, itemId, payload, start, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks, type , 以及 eve::Duration::zero().
被这些函数引用 eve::editor::ActionTimelinePayloadEditor::fitBlockToClip(), eve::editor::ActionTimelinePayloadEditor::fitClipToBlock() , 以及 eve::editor::ActionTimelinePayloadEditor::fitClipToNaturalDuration().
◆ editParameterKey()
| Result< void > eve::editor::ActionTimelineEditor::editParameterKey | ( | const LogicalId & | itemId, |
| std::size_t | index, | ||
| action::ActionParameterKey | key | ||
| ) |
Replace one indexed parameter key as an undoable edit.
在文件 ActionTimelineEditor.cpp 第 673 行定义.
引用了 binding, found, eve::action::ActionParameterCurveBinding::fromPayload(), index, itemId, key, payload, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks , 以及 updateItem().
◆ frameStepTarget()
| Result< Duration > eve::editor::ActionTimelineEditor::frameStepTarget | ( | std::int64_t | frames, |
| double | frameRate | ||
| ) | const |
Resolve a signed frame step without mutating transport state.
- 参数
-
frames Signed number of frames; negative values step backward. frameRate Finite positive frames per second used for deterministic rounding.
在文件 ActionTimelineEditor.cpp 第 1028 行定义.
引用了 eve::Duration::fromSeconds(), maximum , 以及 target.
◆ jumpToEnd()
| Result< void > eve::editor::ActionTimelineEditor::jumpToEnd | ( | ) |
Pause and move the cursor to the final frame boundary.
在文件 ActionTimelineEditor.cpp 第 1053 行定义.
◆ moveAnimationSection()
| Result< void > eve::editor::ActionTimelineEditor::moveAnimationSection | ( | const LogicalId & | sectionId, |
| Duration | delta | ||
| ) |
Move an animation section while preserving its duration.
在文件 ActionTimelineEditor.cpp 第 488 行定义.
引用了 eve::action::ActionTimeline::animationSections, end, found, start , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ moveItem()
| Result< void > eve::editor::ActionTimelineEditor::moveItem | ( | const LogicalId & | itemId, |
| Duration | delta | ||
| ) |
Move one notify or state by an exact deterministic delta.
在文件 ActionTimelineEditor.cpp 第 582 行定义.
引用了 end, itemId, start, state, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
◆ moveSelection()
Move the complete selection by one exact delta in a single undoable transaction.
在文件 ActionTimelineSelection.cpp 第 53 行定义.
引用了 eve::action::ActionTimeline::animationSections, end, start, state, time, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks , 以及 value.
◆ paste()
Paste copied items at an exact offset with new stable ids.
在文件 ActionTimelineEditor.cpp 第 893 行定义.
引用了 offset.
◆ pasteToTrack()
| Result< std::size_t > eve::editor::ActionTimelineEditor::pasteToTrack | ( | const LogicalId & | trackId, |
| Duration | offset | ||
| ) |
Paste copied notify items into a chosen target track for cross-document workflows.
在文件 ActionTimelineEditor.cpp 第 895 行定义.
◆ pasteTrack()
Paste a copied complete track with collision-free track and item ids.
在文件 ActionTimelineEditor.cpp 第 976 行定义.
引用了 eve::Result< T >::failure(), state , 以及 eve::action::ActionTimeline::tracks.
◆ pause()
|
inlinenoexcept |
Pause preview playback.
在文件 ActionTimelineEditor.h 第 290 行定义.
被这些函数引用 eve::editor::ActionPreviewController::jumpToEnd(), eve::editor::ActionPreviewController::stepFrames() , 以及 eve::editor::ActionPreviewController::stop().
◆ planPreview()
| Result< ActionTimelinePreviewPlan > eve::editor::ActionTimelineEditor::planPreview | ( | Duration | delta | ) | const |
Prepare a preview advance without mutating transport state.
在文件 ActionTimelineEditor.cpp 第 1080 行定义.
引用了 eve::editor::ActionTimelinePreviewPlan::current, current, eve::editor::ActionTimelinePreviewPlan::events, eve::editor::ActionTimelinePreviewPlan::includeStart, eve::editor::ActionTimelinePreviewPlan::previous, eve::editor::ActionTimelinePreviewPlan::reachesEnd, eve::Status::success(), eve::Result< T >::success(), eve::editor::ActionTimelinePreviewPlan::timelineRevision , 以及 eve::Duration::zero().
◆ play()
|
inlinenoexcept |
Begin preview playback from the current cursor.
在文件 ActionTimelineEditor.h 第 288 行定义.
◆ playing()
|
inlinenoexcept |
Whether preview transport is playing.
在文件 ActionTimelineEditor.h 第 314 行定义.
◆ previewEvents()
|
inlinenoexcept |
Events crossed by the latest preview update.
在文件 ActionTimelineEditor.h 第 316 行定义.
◆ previewTime()
|
inlinenoexcept |
Current deterministic preview cursor.
在文件 ActionTimelineEditor.h 第 312 行定义.
被这些函数引用 eve::editor::ActionTimelineWidget::layout(), eve::editor::ActionPreviewController::refresh() , 以及 eve::editor::ActionPreviewController::seek().
◆ redo()
| Result< TransactionReceipt > eve::editor::ActionTimelineEditor::redo | ( | ) |
Redo the latest compensated edit.
在文件 ActionTimelineEditor.cpp 第 1020 行定义.
◆ reloadDocument()
| Result< void > eve::editor::ActionTimelineEditor::reloadDocument | ( | const EditorValue & | snapshot | ) |
Atomically replace the document snapshot and clear history, selection and preview transport.
在文件 ActionTimelineEditor.cpp 第 325 行定义.
引用了 eve::editor::LocalTransactionBackend::active(), eve::editor::LocalTransactionBackend::clear(), eve::editor::ActionTimelineTarget::loadSnapshot() , 以及 eve::Duration::zero().
◆ removeAnimationSection()
| Result< void > eve::editor::ActionTimelineEditor::removeAnimationSection | ( | const LogicalId & | sectionId | ) |
Remove one animation section from the montage lane.
在文件 ActionTimelineEditor.cpp 第 553 行定义.
引用了 eve::action::ActionTimeline::animationSections , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ removeItem()
Remove one notify or state.
在文件 ActionTimelineEditor.cpp 第 754 行定义.
引用了 eve::action::ActionTimeline::animationSections, itemId, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks , 以及 value.
◆ removeParameterKey()
| Result< void > eve::editor::ActionTimelineEditor::removeParameterKey | ( | const LogicalId & | itemId, |
| std::size_t | index | ||
| ) |
Remove one non-endpoint parameter key as an undoable edit.
在文件 ActionTimelineEditor.cpp 第 698 行定义.
引用了 binding, found, eve::action::ActionParameterCurveBinding::fromPayload(), index, itemId, payload, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks , 以及 updateItem().
◆ removeSectionSplit()
| Result< void > eve::editor::ActionTimelineEditor::removeSectionSplit | ( | std::size_t | index | ) |
Remove one indexed physical-section split.
在文件 ActionTimelineEditor.cpp 第 473 行定义.
引用了 index, eve::action::ActionTimeline::splitTimestamps , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ removeTrack()
Remove one semantic track and all of its items in one undoable transaction.
在文件 ActionTimelineEditor.cpp 第 426 行定义.
引用了 found, state, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
◆ renameTrack()
| Result< void > eve::editor::ActionTimelineEditor::renameTrack | ( | const LogicalId & | trackId, |
| std::string | label | ||
| ) |
Rename one track without changing its stable identity.
在文件 ActionTimelineEditor.cpp 第 438 行定义.
引用了 label, eve::editor::ActionTimelineTarget::timeline() , 以及 trackId.
◆ resizeAnimationSection()
| Result< void > eve::editor::ActionTimelineEditor::resizeAnimationSection | ( | const LogicalId & | sectionId, |
| Duration | start, | ||
| Duration | end, | ||
| Duration | blendIn | ||
| ) |
Resize an animation section and its incoming blend window.
在文件 ActionTimelineEditor.cpp 第 503 行定义.
引用了 eve::action::ActionTimeline::animationSections, editAnimationSection(), end, found, start , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ resizeState()
| Result< void > eve::editor::ActionTimelineEditor::resizeState | ( | const LogicalId & | itemId, |
| Duration | start, | ||
| Duration | end | ||
| ) |
Resize one notify-state interval to exact validated boundaries.
在文件 ActionTimelineEditor.cpp 第 609 行定义.
引用了 eve::action::ActionTimeline::duration, end, found, start, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks, value , 以及 eve::Duration::zero().
◆ scaleSelection()
Proportionally fit the complete selection into exact destination bounds.
- 备注
- Relative times and section blend windows are rounded to the nearest nanosecond.
在文件 ActionTimelineSelection.cpp 第 178 行定义.
引用了 eve::action::ActionTimeline::animationSections, blend, eve::action::ActionTimeline::duration, end, eve::Result< T >::failure(), eve::Duration::fromNanoseconds(), offset, range, rate, selectionRange(), start, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks, value , 以及 eve::Duration::zero().
◆ seek()
Seek preview without emitting crossed events.
在文件 ActionTimelineEditor.cpp 第 1059 行定义.
引用了 time , 以及 eve::Duration::zero().
◆ selectedItemIds()
| std::vector< LogicalId > eve::editor::ActionTimelineEditor::selectedItemIds | ( | ) | const |
Return selected item IDs in lexical order as owning values.
在文件 ActionTimelineEditor.cpp 第 858 行定义.
引用了 eve::LogicalId::parse() , 以及 value.
◆ selectionCount()
|
inlinenoexcept |
Number of selected timeline items.
在文件 ActionTimelineEditor.h 第 249 行定义.
◆ selectionRange()
| Result< TimelineSelectionRange > eve::editor::ActionTimelineEditor::selectionRange | ( | ) | const |
Return the outer bounds of every selected section, notify and notify-state.
在文件 ActionTimelineSelection.cpp 第 28 行定义.
引用了 eve::action::ActionTimeline::animationSections, end, range, eve::editor::TimelineSelectionRange::start, start, state, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
被这些函数引用 alignSelectionEnd(), alignSelectionStart() , 以及 scaleSelection().
◆ selectItem()
| Result< void > eve::editor::ActionTimelineEditor::selectItem | ( | const LogicalId & | itemId, |
| bool | additive = false |
||
| ) |
Select one existing item, optionally preserving the current selection.
在文件 ActionTimelineEditor.cpp 第 843 行定义.
引用了 eve::action::ActionTimeline::animationSections, found, itemId, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
◆ setItemEnabled()
| Result< void > eve::editor::ActionTimelineEditor::setItemEnabled | ( | const LogicalId & | itemId, |
| bool | enabled | ||
| ) |
Enable or disable one notify/state through an undoable transaction.
在文件 ActionTimelineEditor.cpp 第 785 行定义.
引用了 enabled, itemId, eve::editing::noOp(), state, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::action::ActionTimeline::tracks.
◆ setMontageSettings()
| Result< void > eve::editor::ActionTimelineEditor::setMontageSettings | ( | action::ActionMontageSettings | settings | ) |
Replace montage-wide playback, blending, layer and root-motion settings in one undo step.
在文件 ActionTimelineSettings.cpp 第 5 行定义.
引用了 eve::action::ActionTimeline::montage, eve::editing::noOp(), settings , 以及 eve::editor::ActionTimelineTarget::timeline().
◆ setSectionSplit()
| Result< void > eve::editor::ActionTimelineEditor::setSectionSplit | ( | std::size_t | index, |
| Duration | time | ||
| ) |
Move one indexed physical-section split while preserving strict ordering.
在文件 ActionTimelineEditor.cpp 第 461 行定义.
引用了 eve::action::ActionTimeline::duration, index, eve::action::ActionTimeline::splitTimestamps, time, eve::editor::ActionTimelineTarget::timeline() , 以及 eve::Duration::zero().
◆ setTrackLocked()
| Result< void > eve::editor::ActionTimelineEditor::setTrackLocked | ( | const LogicalId & | trackId, |
| bool | locked | ||
| ) |
Lock/unlock one track through an undoable operation.
在文件 ActionTimelineEditor.cpp 第 817 行定义.
引用了 locked, eve::editor::ActionTimelineTarget::timeline() , 以及 trackId.
◆ setTrackMuted()
| Result< void > eve::editor::ActionTimelineEditor::setTrackMuted | ( | const LogicalId & | trackId, |
| bool | muted | ||
| ) |
Mute/unmute one track through an undoable operation.
在文件 ActionTimelineEditor.cpp 第 808 行定义.
引用了 eve::editor::ActionTimelineTarget::timeline() , 以及 trackId.
◆ stepFrames()
| Result< void > eve::editor::ActionTimelineEditor::stepFrames | ( | std::int64_t | frames, |
| double | frameRate | ||
| ) |
Pause and move by a signed number of frames, clamped to the timeline.
在文件 ActionTimelineEditor.cpp 第 1045 行定义.
引用了 eve::Result< T >::failure() , 以及 target.
◆ stop()
| Result< void > eve::editor::ActionTimelineEditor::stop | ( | ) |
Pause and return the preview cursor to the first frame.
在文件 ActionTimelineEditor.cpp 第 1022 行定义.
◆ target()
|
inlinenoexcept |
Borrow the authoritative target.
在文件 ActionTimelineEditor.h 第 176 行定义.
被这些函数引用 eve::editor::ActionTimelinePayloadEditor::fitBlockToClip(), eve::editor::ActionTimelinePayloadEditor::fitClipToBlock(), eve::editor::ActionTimelinePayloadEditor::fitClipToNaturalDuration(), eve::editor::ActionPreviewController::jumpToEnd(), eve::editor::ActionTimelineWidget::layout(), eve::editor::ActionTimelineWidget::pan(), eve::editor::ActionTimelinePayloadEditor::patch(), eve::editor::ActionTimelinePayloadEditor::payload(), eve::editor::ActionPreviewController::seek(), eve::editor::ActionTimelineWidget::setVisibleRange() , 以及 eve::editor::ActionTimelineWidget::zoom().
◆ undo()
| Result< TransactionReceipt > eve::editor::ActionTimelineEditor::undo | ( | ) |
Undo the latest committed edit.
在文件 ActionTimelineEditor.cpp 第 1018 行定义.
◆ update()
Advance preview by injected time and collect crossed events.
在文件 ActionTimelineEditor.cpp 第 1068 行定义.
引用了 eve::Status::success() , 以及 eve::Result< T >::success().
◆ updateItem()
| Result< void > eve::editor::ActionTimelineEditor::updateItem | ( | const LogicalId & | itemId, |
| LogicalId | type, | ||
| Value::Object | payload | ||
| ) |
Replace one item's type and owning payload through one undoable transaction.
在文件 ActionTimelineEditor.cpp 第 626 行定义.
引用了 itemId, payload, state, eve::editor::ActionTimelineTarget::timeline(), eve::action::ActionTimeline::tracks , 以及 type.
被这些函数引用 addParameterKey(), editParameterKey(), eve::editor::ActionTimelinePayloadEditor::patch() , 以及 removeParameterKey().
该类的文档由以下文件生成:
- src/modules/action/editor/ActionTimelineEditor.h
- src/modules/action/editor/ActionTimelineEditor.cpp
- src/modules/action/editor/ActionTimelineSelection.cpp
- src/modules/action/editor/ActionTimelineSettings.cpp