载入中...
搜索中...
未找到
eve::physics::DeformPlayback类 参考

Independent clock and placement over a shared immutable deformation clip. @ownership Owns reusable scratch storage; shares only immutable clip samples. No source/world pointers. @thread Each player, including sampling, requires exclusive access; separate players are independent. 更多...

#include <DeformPlayback.h>

Public 成员函数

 DeformPlayback (DeformPlayback &&) noexcept=default
 
DeformPlayback & operator= (DeformPlayback &&) noexcept=default
 
 DeformPlayback (const DeformPlayback &)=delete
 
DeformPlayback & operator= (const DeformPlayback &)=delete
 
Result< void > advance (double seconds)
 Advance explicit elapsed seconds; errors preserve time.
 
Result< void > seek (double seconds)
 Seek finite time, clamping to both endpoints.
 
Result< void > setRate (double rate)
 Set signed finite playback rate.
 
Result< void > setWrap (BakePlaybackWrap wrap)
 Set clamp or loop endpoint behavior.
 
void setPaused (bool paused) noexcept
 Pause without changing rate or time.
 
Result< void > setPlacement (BakeRigidPlacement placement)
 Set finite rigid placement; planar coordinates reject out-of-plane placement.
 
BakeRigidPlacement placement () const noexcept
 Current normalized instance placement.
 
double time () const noexcept
 Current playback time in seconds.
 
double rate () const noexcept
 Current signed speed.
 
bool paused () const noexcept
 Current paused state.
 
DeformTrack track () const
 Return a cheap owning immutable clip copy, independent of player lifetime.
 
Result< void > sample (std::span< DeformPoint > output)
 Sample and transform into exact-sized output; all failures preserve the caller's entire buffer. @ownership Borrows output only for this call. Retains only private scratch storage, never output addresses. @cost Linear in vertices, reusing preparation storage; no allocations, IO or solver calls on success.
 

静态 Public 成员函数

static Result< DeformPlayback > prepare (DeformTrack track)
 Prepare one player's scratch buffer; use separate preparations for independently controlled instances. @cost Linear in vertices for scratch allocation, amortized over all subsequent samples.
 

详细描述

Independent clock and placement over a shared immutable deformation clip. @ownership Owns reusable scratch storage; shares only immutable clip samples. No source/world pointers. @thread Each player, including sampling, requires exclusive access; separate players are independent.

备注
Move-only to make buffer preparation explicit. Moved-from objects may only be destroyed or reassigned.

在文件 DeformPlayback.h 第 11 行定义.

构造及析构函数说明

◆ DeformPlayback() [1/2]

eve::physics::DeformPlayback::DeformPlayback ( DeformPlayback &&  )
defaultnoexcept

◆ DeformPlayback() [2/2]

eve::physics::DeformPlayback::DeformPlayback ( const DeformPlayback &  )
delete

成员函数说明

◆ advance()

Result< void > eve::physics::DeformPlayback::advance ( double  seconds)

Advance explicit elapsed seconds; errors preserve time.

在文件 DeformPlayback.cpp 第 20 行定义.

◆ operator=() [1/2]

DeformPlayback & eve::physics::DeformPlayback::operator= ( const DeformPlayback &  )
delete

◆ operator=() [2/2]

DeformPlayback & eve::physics::DeformPlayback::operator= ( DeformPlayback &&  )
defaultnoexcept

◆ paused()

bool eve::physics::DeformPlayback::paused ( ) const
noexcept

Current paused state.

在文件 DeformPlayback.cpp 第 35 行定义.

◆ placement()

BakeRigidPlacement eve::physics::DeformPlayback::placement ( ) const
noexcept

Current normalized instance placement.

在文件 DeformPlayback.cpp 第 32 行定义.

◆ prepare()

Result< DeformPlayback > eve::physics::DeformPlayback::prepare ( DeformTrack  track)
static

Prepare one player's scratch buffer; use separate preparations for independently controlled instances. @cost Linear in vertices for scratch allocation, amortized over all subsequent samples.

返回
Ready player or allocation diagnostic, without modifying the input clip.

在文件 DeformPlayback.cpp 第 11 行定义.

引用了 eve::physics::DeformTrack::topology() , 以及 eve::physics::DeformTopology::vertexCount().

◆ rate()

double eve::physics::DeformPlayback::rate ( ) const
noexcept

Current signed speed.

在文件 DeformPlayback.cpp 第 34 行定义.

◆ sample()

Result< void > eve::physics::DeformPlayback::sample ( std::span< DeformPoint >  output)

Sample and transform into exact-sized output; all failures preserve the caller's entire buffer. @ownership Borrows output only for this call. Retains only private scratch storage, never output addresses. @cost Linear in vertices, reusing preparation storage; no allocations, IO or solver calls on success.

返回
Success or output extent/sample/placement overflow diagnostic; clock is never advanced implicitly.

在文件 DeformPlayback.cpp 第 37 行定义.

引用了 output, placed, point , 以及 value.

◆ seek()

Result< void > eve::physics::DeformPlayback::seek ( double  seconds)

Seek finite time, clamping to both endpoints.

在文件 DeformPlayback.cpp 第 21 行定义.

◆ setPaused()

void eve::physics::DeformPlayback::setPaused ( bool  paused)
noexcept

Pause without changing rate or time.

在文件 DeformPlayback.cpp 第 24 行定义.

◆ setPlacement()

Result< void > eve::physics::DeformPlayback::setPlacement ( BakeRigidPlacement  placement)

Set finite rigid placement; planar coordinates reject out-of-plane placement.

在文件 DeformPlayback.cpp 第 25 行定义.

引用了 placement.

◆ setRate()

Result< void > eve::physics::DeformPlayback::setRate ( double  rate)

Set signed finite playback rate.

在文件 DeformPlayback.cpp 第 22 行定义.

引用了 rate.

◆ setWrap()

Result< void > eve::physics::DeformPlayback::setWrap ( BakePlaybackWrap  wrap)

Set clamp or loop endpoint behavior.

在文件 DeformPlayback.cpp 第 23 行定义.

◆ time()

double eve::physics::DeformPlayback::time ( ) const
noexcept

Current playback time in seconds.

在文件 DeformPlayback.cpp 第 33 行定义.

◆ track()

DeformTrack eve::physics::DeformPlayback::track ( ) const

Return a cheap owning immutable clip copy, independent of player lifetime.

在文件 DeformPlayback.cpp 第 36 行定义.


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