Bounded owning builder for fixed-topology deformation recordings. @ownership Owns a frozen recipe copy and accepted value frames, never a source/VM/world pointer. @thread Exclusive owner-thread mutation; no callbacks, IO, clocks or solver calls. 更多...
#include <DeformRecording.h>
类 | |
| struct | Impl |
Public 成员函数 | |
| ~DeformRecording () | |
| DeformRecording (DeformRecording &&) noexcept | |
| DeformRecording & | operator= (DeformRecording &&) noexcept |
| DeformRecording (const DeformRecording &)=delete | |
| DeformRecording & | operator= (const DeformRecording &)=delete |
| Result< void > | append (DeformFrame frame) |
| Validate and append one owning candidate at the next recipe sample time. @ownership Consumes candidate values, retaining no caller aliases; rejection preserves all session state. @cost Linear in candidate vertices/connectivity; frame-vector growth is amortized over the recording. | |
| Result< DeformTrack > | freeze () const |
| Freeze an independent immutable snapshot; the session remains available for further appends. @cost Linear copy and validation of all accepted samples, once per published clip outside playback. | |
| std::size_t | frameCount () const noexcept |
| Number of successfully accepted frames. | |
| std::size_t | sampleCount () const noexcept |
| Total accepted vertex samples, excluding rejected candidates. | |
静态 Public 成员函数 | |
| static Result< DeformRecording > | prepare (const BakeRecipe &recipe, std::size_t sampleBudget) |
| Admit a complete recipe and explicit total vertex-sample budget in [1,2000000]. @cost Linear in bounded recipe metadata, once before recording; frame storage grows during append. | |
详细描述
Bounded owning builder for fixed-topology deformation recordings. @ownership Owns a frozen recipe copy and accepted value frames, never a source/VM/world pointer. @thread Exclusive owner-thread mutation; no callbacks, IO, clocks or solver calls.
- 备注
- Move-only. Moved-from instances may only be destroyed or assigned.
在文件 DeformRecording.h 第 15 行定义.
构造及析构函数说明
◆ ~DeformRecording()
|
default |
◆ DeformRecording() [1/2]
|
defaultnoexcept |
◆ DeformRecording() [2/2]
|
delete |
成员函数说明
◆ append()
| Result< void > eve::physics::DeformRecording::append | ( | DeformFrame | frame | ) |
Validate and append one owning candidate at the next recipe sample time. @ownership Consumes candidate values, retaining no caller aliases; rejection preserves all session state. @cost Linear in candidate vertices/connectivity; frame-vector growth is amortized over the recording.
- 返回
- Checked finite/coordinate/topology/grid/budget admission or allocation failure.
在文件 DeformRecording.cpp 第 36 行定义.
引用了 count, eve::Diagnostic::error(), eve::Result< T >::failure(), frame, eve::InvalidArgument, eve::Result< T >::success(), topology, valid , 以及 eve::physics::bake_detail::validateDeformFrame().
◆ frameCount()
|
noexcept |
Number of successfully accepted frames.
在文件 DeformRecording.cpp 第 62 行定义.
◆ freeze()
| Result< DeformTrack > eve::physics::DeformRecording::freeze | ( | ) | const |
Freeze an independent immutable snapshot; the session remains available for further appends. @cost Linear copy and validation of all accepted samples, once per published clip outside playback.
- 返回
- Complete track or failure; neither existing tracks nor session state change on failure.
在文件 DeformRecording.cpp 第 55 行定义.
引用了 eve::Result< T >::failure() , 以及 eve::physics::DeformTrack::prepare().
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
defaultnoexcept |
◆ prepare()
|
static |
Admit a complete recipe and explicit total vertex-sample budget in [1,2000000]. @cost Linear in bounded recipe metadata, once before recording; frame storage grows during append.
- 返回
- Ready empty session or checked invalid recipe/budget/allocation failure.
在文件 DeformRecording.cpp 第 23 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, recipe , 以及 eve::Result< T >::success().
◆ sampleCount()
|
noexcept |
Total accepted vertex samples, excluding rejected candidates.
在文件 DeformRecording.cpp 第 63 行定义.
该类的文档由以下文件生成:
- src/modules/physics/backend/bake/DeformRecording.h
- src/modules/physics/backend/bake/DeformRecording.cpp