载入中...
搜索中...
未找到
eve::animation_editor::AnimationClipEditor类 参考

Timeline-style controller for one authored animation clip. 更多...

#include <AnimationClipEditor.h>

类

struct  PreviewSession
 

Public 成员函数

 AnimationClipEditor (std::string targetId)
 Construct a seeded two-bone preview clip.
 
animation_editing::Result< void > loadRuntimeClip (const animation::AnimSkeleton &skeleton, const animation::AnimClip &clip)
 Atomically replace the editor document from a real runtime skeleton and clip.
 
animation_editing::Result< void > writeRuntimeClip (animation::AnimClip &clip, const animation::AnimSkeleton &skeleton) const
 Replace a runtime clip with the current authoritative editor document.
 
 ~AnimationClipEditor ()
 Cancel and join preview work before releasing domain state.
 
 AnimationClipEditor (const AnimationClipEditor &)=delete
 
AnimationClipEditor & operator= (const AnimationClipEditor &)=delete
 
animation_editing::Result< void > setPreviewProvider (std::shared_ptr< const IAnimationClipPreviewProvider > provider)
 Replace the owned immutable preview provider and invalidate all previous work, even for the same instance. @ownership Retains shared ownership; null explicitly disables previews, preserving the last successful payload. @thread Owner thread; providers run on a worker with owning immutable inputs and must cooperate with cancellation. @reentrancy Provider callbacks never run under editor locks or access this editor.
 
animation_editing::Result< void > requestPreview ()
 Queue a preview of the current domain inputs; accepted work returns Pending. @cost Copies the PCM/clip input once per request; computation runs on the editing task worker, amortized over polls.
 
animation_editing::Result< void > pollPreview ()
 Publish the current completed preview atomically; Pending while work runs, NoOp when idle. Owner thread only.
 
animation_editing::Result< void > cancelPreview ()
 Cancel pending publication while keeping the last valid preview; a new explicit request may resume.
 
void closePreview ()
 Permanently cancel and close preview publication; idempotent. Destruction joins cooperative work.
 
editor::PreviewState previewState () const noexcept
 Observe request sequence, provider generation and phase without copying preview payloads.
 
const animation_editing::AnimationClipDocumentTarget & target () const noexcept
 Borrow the authoritative clip document.
 
animation_editing::Result< void > configureWorkspace (editor::EditorWorkspace &workspace) const
 Install Skeleton / Pose Preview / Inspector / Dope panels.
 
animation_editing::Result< void > setViewport (float width, float rowHeight, float labelWidth)
 Configure dope-sheet pixel layout.
 
animation_editing::Result< void > seekSeconds (double seconds)
 
animation_editing::Result< void > seekX (float x)
 
animation_editing::Result< void > pointerDown (float x, float y)
 
animation_editing::Result< void > selectBone (std::string bone)
 
animation_editing::Result< void > setMaskWeight (double weight)
 
animation_editing::Result< void > setDuration (double duration)
 Commit clip duration through the document transaction path.
 
animation_editing::Result< void > setSampleRate (double sampleRate)
 Commit authored sample rate through the document transaction path.
 
animation_editing::Result< void > setLoop (bool loop)
 Commit looping through the document transaction path.
 
animation_editing::Result< void > keySelectedBone ()
 Insert or replace a transform key for the selected bone at the playhead.
 
animation_editing::Result< void > deleteSelectedKey ()
 Delete the selected transform key.
 
animation_editing::Result< void > setSelectedPosition (double x, double y, double z)
 Replace the selected bone position at the playhead and create a key when needed.
 
animation_editing::Result< void > setSelectedRotation (double xDegrees, double yDegrees, double zDegrees)
 Replace the selected bone Euler rotation in degrees and create a key when needed.
 
animation_editing::Result< void > setSelectedScale (double x, double y, double z)
 Replace the selected bone scale at the playhead and create a key when needed.
 
animation_editing::Result< void > moveSelectedKey (double time)
 
animation_editing::Result< editor::TransactionReceipt > undo ()
 
animation_editing::Result< editor::TransactionReceipt > redo ()
 
void play () noexcept
 
void pause () noexcept
 Pause.
 
void stop () noexcept
 Stops .
 
animation_editing::Result< void > update (double deltaSeconds)
 Advance playhead by injected dt and refresh pose/overlay.
 
bool canUndo () const noexcept
 
bool canRedo () const noexcept
 Can redo.
 
bool isPlaying () const noexcept
 True when playing.
 
std::uint64_t revision () const noexcept
 Revision.
 
double duration () const noexcept
 Duration.
 
double sampleRate () const noexcept
 Sample rate.
 
bool isLooping () const noexcept
 True when looping.
 
double playhead () const noexcept
 Playhead.
 
float layoutWidth () const noexcept
 Layout width.
 
float layoutHeight () const noexcept
 Layout height.
 
float playheadX () const noexcept
 Playhead x.
 
std::string selectedBone () const
 Selected bone.
 
animation_editing::StableId selectedKeyId () const
 Owning stable identity of the selected key, or empty for a bone-only selection.
 
double selectedMaskWeight () const
 
bool hasSelectedKey () const noexcept
 True when selected key.
 
double selectedKeyTime () const
 Selected key time.
 
double selectedPositionX () const
 Selected position x.
 
double selectedPositionY () const
 Selected position y.
 
double selectedPositionZ () const
 Selected position z.
 
double selectedRotationX () const
 Selected rotation x.
 
double selectedRotationY () const
 Selected rotation y.
 
double selectedRotationZ () const
 Selected rotation z.
 
double selectedScaleX () const
 Selected scale x.
 
double selectedScaleY () const
 Selected scale y.
 
double selectedScaleZ () const
 Selected scale z.
 
int boneCount () const noexcept
 Bone count.
 
std::string boneName (int index) const
 Bone name.
 
std::string boneParent (int index) const
 Bone parent.
 
int trackCount () const
 Track count.
 
std::string trackBone (int index) const
 Track bone.
 
std::string trackId (int index) const
 Track id.
 
bool isTrackSelected (int index) const
 True when track selected.
 
int keyCount () const
 Key count.
 
float keyX (int index) const
 Key x.
 
float keyY (int index) const
 Key y.
 
bool isKeySelected (int index) const
 True when key selected.
 
int eventCount () const
 Event count.
 
float eventX (int index) const
 Event x.
 
std::string eventName (int index) const
 Event name.
 
int primitiveCount () const
 Primitive count.
 
std::string primitiveKind (int index) const
 Primitive kind.
 
float primitiveX (int index) const
 Primitive x.
 
float primitiveY (int index) const
 Primitive y.
 
float primitiveDirX (int index) const
 Primitive dir x.
 
float primitiveDirY (int index) const
 Primitive dir y.
 
float primitiveLength (int index) const
 Primitive length.
 
float primitiveRadius (int index) const
 Primitive radius.
 
float primitiveR (int index) const
 Primitive r.
 
float primitiveG (int index) const
 Primitive g.
 
float primitiveB (int index) const
 Primitive b.
 
const animation_editing::AnimationClipPreview & preview () const noexcept
 Preview.
 

详细描述

Timeline-style controller for one authored animation clip.

Owns the clip document, local undo, deterministic scrub preview and a renderer-neutral skeleton overlay. Script presenters draw layout getters only.

@ownership Editor owns the document. Overlay snapshots are copied values. @threadaffinity Owner thread only. @reentrancy No unknown callbacks.

在文件 AnimationClipEditor.h 第 43 行定义.

构造及析构函数说明

◆ AnimationClipEditor() [1/2]

eve::animation_editor::AnimationClipEditor::AnimationClipEditor ( std::string  targetId)
explicit

Construct a seeded two-bone preview clip.

在文件 AnimationClipEditor.cpp 第 43 行定义.

◆ ~AnimationClipEditor()

eve::animation_editor::AnimationClipEditor::~AnimationClipEditor ( )

Cancel and join preview work before releasing domain state.

在文件 AnimationClipPreview.cpp 第 69 行定义.

引用了 closePreview().

◆ AnimationClipEditor() [2/2]

eve::animation_editor::AnimationClipEditor::AnimationClipEditor ( const AnimationClipEditor &  )
delete

成员函数说明

◆ boneCount()

int eve::animation_editor::AnimationClipEditor::boneCount ( ) const
noexcept

Bone count.

在文件 AnimationClipEditor.cpp 第 505 行定义.

◆ boneName()

std::string eve::animation_editor::AnimationClipEditor::boneName ( int  index) const

Bone name.

在文件 AnimationClipEditor.cpp 第 506 行定义.

引用了 bones , 以及 index.

被这些函数引用 boneParent().

◆ boneParent()

std::string eve::animation_editor::AnimationClipEditor::boneParent ( int  index) const

Bone parent.

在文件 AnimationClipEditor.cpp 第 507 行定义.

引用了 boneName() , 以及 index.

◆ cancelPreview()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::cancelPreview ( )

Cancel pending publication while keeping the last valid preview; a new explicit request may resume.

在文件 AnimationClipPreview.cpp 第 78 行定义.

被这些函数引用 stop().

◆ canRedo()

bool eve::animation_editor::AnimationClipEditor::canRedo ( ) const
inlinenoexcept

Can redo.

在文件 AnimationClipEditor.h 第 158 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::state().

◆ canUndo()

bool eve::animation_editor::AnimationClipEditor::canUndo ( ) const
inlinenoexcept

◆ closePreview()

void eve::animation_editor::AnimationClipEditor::closePreview ( )

Permanently cancel and close preview publication; idempotent. Destruction joins cooperative work.

在文件 AnimationClipPreview.cpp 第 79 行定义.

被这些函数引用 ~AnimationClipEditor().

◆ configureWorkspace()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::configureWorkspace ( editor::EditorWorkspace &  workspace) const

◆ deleteSelectedKey()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::deleteSelectedKey ( )

◆ duration()

double eve::animation_editor::AnimationClipEditor::duration ( ) const
inlinenoexcept

◆ eventCount()

int eve::animation_editor::AnimationClipEditor::eventCount ( ) const

◆ eventName()

std::string eve::animation_editor::AnimationClipEditor::eventName ( int  index) const

◆ eventX()

float eve::animation_editor::AnimationClipEditor::eventX ( int  index) const

◆ hasSelectedKey()

bool eve::animation_editor::AnimationClipEditor::hasSelectedKey ( ) const
inlinenoexcept

True when selected key.

在文件 AnimationClipEditor.h 第 183 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::schema().

◆ isKeySelected()

bool eve::animation_editor::AnimationClipEditor::isKeySelected ( int  index) const

True when key selected.

在文件 AnimationClipEditor.cpp 第 539 行定义.

引用了 index, key, eve::animation_editing::AnimationClipDocumentTarget::tracks() , 以及 tracks.

◆ isLooping()

bool eve::animation_editor::AnimationClipEditor::isLooping ( ) const
inlinenoexcept

True when looping.

在文件 AnimationClipEditor.h 第 168 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::read().

◆ isPlaying()

bool eve::animation_editor::AnimationClipEditor::isPlaying ( ) const
inlinenoexcept

◆ isTrackSelected()

bool eve::animation_editor::AnimationClipEditor::isTrackSelected ( int  index) const

True when track selected.

在文件 AnimationClipEditor.cpp 第 523 行定义.

引用了 index , 以及 trackBone().

◆ keyCount()

int eve::animation_editor::AnimationClipEditor::keyCount ( ) const

Key count.

在文件 AnimationClipEditor.cpp 第 525 行定义.

◆ keySelectedBone()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::keySelectedBone ( )

Insert or replace a transform key for the selected bone at the playhead.

在文件 AnimationClipEditor.cpp 第 310 行定义.

引用了 key, eve::animation_editing::AnimationClipDocumentTarget::makeSetTrack(), eve::animation_editing::AnimationClipDocumentTarget::tracks() , 以及 tracks.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::action().

◆ keyX()

float eve::animation_editor::AnimationClipEditor::keyX ( int  index) const

Key x.

在文件 AnimationClipEditor.cpp 第 527 行定义.

引用了 index , 以及 time.

◆ keyY()

float eve::animation_editor::AnimationClipEditor::keyY ( int  index) const

Key y.

在文件 AnimationClipEditor.cpp 第 533 行定义.

引用了 index.

◆ layoutHeight()

float eve::animation_editor::AnimationClipEditor::layoutHeight ( ) const
noexcept

◆ layoutWidth()

float eve::animation_editor::AnimationClipEditor::layoutWidth ( ) const
inlinenoexcept

Layout width.

在文件 AnimationClipEditor.h 第 172 行定义.

◆ loadRuntimeClip()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::loadRuntimeClip ( const animation::AnimSkeleton &  skeleton,
const animation::AnimClip &  clip 
)

Atomically replace the editor document from a real runtime skeleton and clip.

参数
skeletonBorrowed only for this call; the editor copies hierarchy metadata.
clipBorrowed only for this call; all authored keys are copied.
返回
Applied, or a structured rejection when the runtime inputs are invalid. @thread Owner thread only. @reentrancy Does not invoke scripts or callbacks.

◆ moveSelectedKey()

◆ operator=()

AnimationClipEditor & eve::animation_editor::AnimationClipEditor::operator= ( const AnimationClipEditor &  )
delete

◆ pause()

void eve::animation_editor::AnimationClipEditor::pause ( )
noexcept

Pause.

在文件 AnimationClipEditor.cpp 第 439 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::action().

◆ play()

void eve::animation_editor::AnimationClipEditor::play ( )
noexcept

◆ playhead()

double eve::animation_editor::AnimationClipEditor::playhead ( ) const
inlinenoexcept

Playhead.

在文件 AnimationClipEditor.h 第 170 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::state().

◆ playheadX()

float eve::animation_editor::AnimationClipEditor::playheadX ( ) const
noexcept

Playhead x.

在文件 AnimationClipEditor.cpp 第 482 行定义.

◆ pointerDown()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::pointerDown ( float  x,
float  y 
)

◆ pollPreview()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::pollPreview ( )

Publish the current completed preview atomically; Pending while work runs, NoOp when idle. Owner thread only.

在文件 AnimationClipPreview.cpp 第 101 行定义.

引用了 eve::Result< T >::failure(), eve::editing::noOp(), eve::editing::pending(), eve::editor::Pending, pose, result , 以及 revision.

被这些函数引用 update().

◆ preview()

const animation_editing::AnimationClipPreview & eve::animation_editor::AnimationClipEditor::preview ( ) const
inlinenoexcept

Preview.

在文件 AnimationClipEditor.h 第 258 行定义.

◆ previewState()

editor::PreviewState eve::animation_editor::AnimationClipEditor::previewState ( ) const
noexcept

Observe request sequence, provider generation and phase without copying preview payloads.

在文件 AnimationClipPreview.cpp 第 70 行定义.

◆ primitiveB()

float eve::animation_editor::AnimationClipEditor::primitiveB ( int  index) const

Primitive b.

在文件 AnimationClipEditor.cpp 第 608 行定义.

引用了 index.

◆ primitiveCount()

int eve::animation_editor::AnimationClipEditor::primitiveCount ( ) const

Primitive count.

在文件 AnimationClipEditor.cpp 第 561 行定义.

引用了 eve::editing::GizmoSnapshot::primitives.

◆ primitiveDirX()

float eve::animation_editor::AnimationClipEditor::primitiveDirX ( int  index) const

Primitive dir x.

在文件 AnimationClipEditor.cpp 第 578 行定义.

引用了 index.

◆ primitiveDirY()

float eve::animation_editor::AnimationClipEditor::primitiveDirY ( int  index) const

Primitive dir y.

在文件 AnimationClipEditor.cpp 第 583 行定义.

引用了 index.

◆ primitiveG()

float eve::animation_editor::AnimationClipEditor::primitiveG ( int  index) const

Primitive g.

在文件 AnimationClipEditor.cpp 第 603 行定义.

引用了 index.

◆ primitiveKind()

std::string eve::animation_editor::AnimationClipEditor::primitiveKind ( int  index) const

Primitive kind.

在文件 AnimationClipEditor.cpp 第 563 行定义.

引用了 index.

◆ primitiveLength()

float eve::animation_editor::AnimationClipEditor::primitiveLength ( int  index) const

Primitive length.

在文件 AnimationClipEditor.cpp 第 588 行定义.

引用了 index.

◆ primitiveR()

float eve::animation_editor::AnimationClipEditor::primitiveR ( int  index) const

Primitive r.

在文件 AnimationClipEditor.cpp 第 598 行定义.

引用了 index.

◆ primitiveRadius()

float eve::animation_editor::AnimationClipEditor::primitiveRadius ( int  index) const

Primitive radius.

在文件 AnimationClipEditor.cpp 第 593 行定义.

引用了 index.

◆ primitiveX()

float eve::animation_editor::AnimationClipEditor::primitiveX ( int  index) const

Primitive x.

在文件 AnimationClipEditor.cpp 第 568 行定义.

引用了 index.

◆ primitiveY()

float eve::animation_editor::AnimationClipEditor::primitiveY ( int  index) const

Primitive y.

在文件 AnimationClipEditor.cpp 第 573 行定义.

引用了 index.

◆ redo()

◆ requestPreview()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::requestPreview ( )

Queue a preview of the current domain inputs; accepted work returns Pending. @cost Copies the PCM/clip input once per request; computation runs on the editing task worker, amortized over polls.

在文件 AnimationClipPreview.cpp 第 83 行定义.

引用了 bone , 以及 provider.

◆ revision()

std::uint64_t eve::animation_editor::AnimationClipEditor::revision ( ) const
inlinenoexcept

Revision.

在文件 AnimationClipEditor.h 第 162 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::state().

◆ sampleRate()

double eve::animation_editor::AnimationClipEditor::sampleRate ( ) const
inlinenoexcept

Sample rate.

在文件 AnimationClipEditor.h 第 166 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::read() , 以及 setSampleRate().

◆ seekSeconds()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::seekSeconds ( double  seconds)

在文件 AnimationClipEditor.cpp 第 203 行定义.

引用了 eve::animation_editing::AnimationClipDocumentTarget::duration() , 以及 duration().

被这些函数引用 seekX().

◆ seekX()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::seekX ( float  x)

在文件 AnimationClipEditor.cpp 第 212 行定义.

引用了 seekSeconds() , 以及 x.

被这些函数引用 pointerDown().

◆ selectBone()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::selectBone ( std::string  bone)

在文件 AnimationClipEditor.cpp 第 252 行定义.

引用了 bone.

被这些函数引用 pointerDown().

◆ selectedBone()

std::string eve::animation_editor::AnimationClipEditor::selectedBone ( ) const
inline

Selected bone.

在文件 AnimationClipEditor.h 第 178 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::state().

◆ selectedKeyId()

animation_editing::StableId eve::animation_editor::AnimationClipEditor::selectedKeyId ( ) const
inline

Owning stable identity of the selected key, or empty for a bone-only selection.

在文件 AnimationClipEditor.h 第 180 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::state().

◆ selectedKeyTime()

double eve::animation_editor::AnimationClipEditor::selectedKeyTime ( ) const

◆ selectedMaskWeight()

double eve::animation_editor::AnimationClipEditor::selectedMaskWeight ( ) const

◆ selectedPositionX()

double eve::animation_editor::AnimationClipEditor::selectedPositionX ( ) const

◆ selectedPositionY()

double eve::animation_editor::AnimationClipEditor::selectedPositionY ( ) const

◆ selectedPositionZ()

double eve::animation_editor::AnimationClipEditor::selectedPositionZ ( ) const

◆ selectedRotationX()

double eve::animation_editor::AnimationClipEditor::selectedRotationX ( ) const

Selected rotation x.

在文件 AnimationClipEditor.cpp 第 502 行定义.

引用了 q.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::read() , 以及 eve::animation_editor::AnimationClipPresentation::write().

◆ selectedRotationY()

double eve::animation_editor::AnimationClipEditor::selectedRotationY ( ) const

Selected rotation y.

在文件 AnimationClipEditor.cpp 第 503 行定义.

引用了 q.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::read() , 以及 eve::animation_editor::AnimationClipPresentation::write().

◆ selectedRotationZ()

double eve::animation_editor::AnimationClipEditor::selectedRotationZ ( ) const

Selected rotation z.

在文件 AnimationClipEditor.cpp 第 504 行定义.

引用了 q.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::read() , 以及 eve::animation_editor::AnimationClipPresentation::write().

◆ selectedScaleX()

double eve::animation_editor::AnimationClipEditor::selectedScaleX ( ) const

◆ selectedScaleY()

double eve::animation_editor::AnimationClipEditor::selectedScaleY ( ) const

◆ selectedScaleZ()

double eve::animation_editor::AnimationClipEditor::selectedScaleZ ( ) const

◆ setDuration()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setDuration ( double  duration)

Commit clip duration through the document transaction path.

参数
durationNew duration in seconds; must be positive and finite.

在文件 AnimationClipEditor.cpp 第 264 行定义.

引用了 duration(), eve::animation_editing::AnimationClipDocumentTarget::isLooping(), eve::animation_editing::AnimationClipDocumentTarget::makeSetSettings() , 以及 eve::animation_editing::AnimationClipDocumentTarget::sampleRate().

被这些函数引用 eve::animation_editor::AnimationClipPresentation::write().

◆ setLoop()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setLoop ( bool  loop)

◆ setMaskWeight()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setMaskWeight ( double  weight)

◆ setPreviewProvider()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setPreviewProvider ( std::shared_ptr< const IAnimationClipPreviewProvider >  provider)

Replace the owned immutable preview provider and invalidate all previous work, even for the same instance. @ownership Retains shared ownership; null explicitly disables previews, preserving the last successful payload. @thread Owner thread; providers run on a worker with owning immutable inputs and must cooperate with cancellation. @reentrancy Provider callbacks never run under editor locks or access this editor.

在文件 AnimationClipPreview.cpp 第 71 行定义.

引用了 changed , 以及 provider.

◆ setSampleRate()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setSampleRate ( double  sampleRate)

Commit authored sample rate through the document transaction path.

参数
sampleRateNew sample rate; must be positive and finite.

在文件 AnimationClipEditor.cpp 第 268 行定义.

引用了 eve::animation_editing::AnimationClipDocumentTarget::duration(), eve::animation_editing::AnimationClipDocumentTarget::isLooping(), eve::animation_editing::AnimationClipDocumentTarget::makeSetSettings() , 以及 sampleRate().

被这些函数引用 eve::animation_editor::AnimationClipPresentation::write().

◆ setSelectedPosition()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setSelectedPosition ( double  x,
double  y,
double  z 
)

Replace the selected bone position at the playhead and create a key when needed.

在文件 AnimationClipEditor.cpp 第 371 行定义.

引用了 value, x, y , 以及 z.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::write().

◆ setSelectedRotation()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setSelectedRotation ( double  xDegrees,
double  yDegrees,
double  zDegrees 
)

Replace the selected bone Euler rotation in degrees and create a key when needed.

在文件 AnimationClipEditor.cpp 第 378 行定义.

引用了 cx, cy, sx, sy, sz , 以及 value.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::write().

◆ setSelectedScale()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setSelectedScale ( double  x,
double  y,
double  z 
)

Replace the selected bone scale at the playhead and create a key when needed.

在文件 AnimationClipEditor.cpp 第 389 行定义.

引用了 value, x, y , 以及 z.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::write().

◆ setViewport()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::setViewport ( float  width,
float  rowHeight,
float  labelWidth 
)

Configure dope-sheet pixel layout.

参数
widthTimeline width in pixels.
rowHeightTrack row height.
labelWidthLeft bone-name column width.

在文件 AnimationClipEditor.cpp 第 191 行定义.

引用了 width.

◆ stop()

void eve::animation_editor::AnimationClipEditor::stop ( )
noexcept

Stops .

在文件 AnimationClipEditor.cpp 第 440 行定义.

引用了 cancelled, cancelPreview() , 以及 EV_ASSERT.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::action().

◆ target()

const animation_editing::AnimationClipDocumentTarget & eve::animation_editor::AnimationClipEditor::target ( ) const
inlinenoexcept

Borrow the authoritative clip document.

在文件 AnimationClipEditor.h 第 99 行定义.

被这些函数引用 eve::animation_editor::AnimationClipPresentation::state().

◆ trackBone()

std::string eve::animation_editor::AnimationClipEditor::trackBone ( int  index) const

Track bone.

在文件 AnimationClipEditor.cpp 第 511 行定义.

引用了 bone, index, eve::animation_editing::AnimationClipDocumentTarget::tracks() , 以及 tracks.

被这些函数引用 isTrackSelected().

◆ trackCount()

int eve::animation_editor::AnimationClipEditor::trackCount ( ) const

◆ trackId()

std::string eve::animation_editor::AnimationClipEditor::trackId ( int  index) const

◆ undo()

◆ update()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::update ( double  deltaSeconds)

◆ writeRuntimeClip()

animation_editing::Result< void > eve::animation_editor::AnimationClipEditor::writeRuntimeClip ( animation::AnimClip &  clip,
const animation::AnimSkeleton &  skeleton 
) const

Replace a runtime clip with the current authoritative editor document.

参数
clipRuntime clip mutated atomically through AnimClip::adopt.
skeletonSkeleton used to resolve authored bone names.
返回
Applied, or a structured error; failure leaves clip unchanged. @thread Owner thread only. @reentrancy Does not invoke scripts or callbacks.

该类的文档由以下文件生成: