Bounded owning recorder of stable-identity rigid frames, without simulation dependencies. @ownership Owns recipe and accepted values; never retains body/world/VM pointers or runtime handles. @thread Exclusive owner-thread mutation; no callbacks, implicit clock reads or stepping. 更多...
#include <RigidRecording.h>
类 | |
| struct | Impl |
Public 成员函数 | |
| ~RigidRecording () | |
| RigidRecording (RigidRecording &&) noexcept | |
| RigidRecording & | operator= (RigidRecording &&) noexcept |
| RigidRecording (const RigidRecording &)=delete | |
| RigidRecording & | operator= (const RigidRecording &)=delete |
| Result< void > | append (RigidTrackFrame frame) |
| Validate, identity-sort and normalize an owning candidate at the next recipe sample time. @ownership Consumes candidate values; retains no caller alias. Rejection preserves the accepted recording. @cost Linear pose validation plus identity sorting per frame; storage growth is amortized. | |
| Result< RigidPoseTrack > | freeze () const |
| Freeze an independent immutable track; continued recording cannot mutate it. @cost Linear copy/validation plus per-frame identity sorting, once per asset outside playback. | |
| RigidTrackSpace | space () const noexcept |
| Coordinate space fixed by the admitted recipe. | |
| std::size_t | frameCount () const noexcept |
| Number of accepted frames. | |
| std::size_t | sampleCount () const noexcept |
| Number of accepted poses across all frames. | |
静态 Public 成员函数 | |
| static Result< RigidRecording > | prepare (const BakeRecipe &recipe, std::size_t sampleBudget) |
| Prepare from complete provenance and total pose-sample budget in [1,2000000]. | |
详细描述
Bounded owning recorder of stable-identity rigid frames, without simulation dependencies. @ownership Owns recipe and accepted values; never retains body/world/VM pointers or runtime handles. @thread Exclusive owner-thread mutation; no callbacks, implicit clock reads or stepping.
- 备注
- Move-only. Moved-from instances may only be destroyed or assigned.
在文件 RigidRecording.h 第 16 行定义.
构造及析构函数说明
◆ ~RigidRecording()
|
default |
◆ RigidRecording() [1/2]
|
defaultnoexcept |
◆ RigidRecording() [2/2]
|
delete |
成员函数说明
◆ append()
| Result< void > eve::physics::RigidRecording::append | ( | RigidTrackFrame | frame | ) |
Validate, identity-sort and normalize an owning candidate at the next recipe sample time. @ownership Consumes candidate values; retains no caller alias. Rejection preserves the accepted recording. @cost Linear pose validation plus identity sorting per frame; storage growth is amortized.
- 返回
- Checked identity/time/coordinate/quaternion/budget/allocation status, with no partial append.
在文件 RigidRecording.cpp 第 40 行定义.
引用了 count, eve::Diagnostic::error(), eve::Result< T >::failure(), frame, eve::InvalidArgument, eve::Result< T >::success(), valid , 以及 eve::physics::bake_detail::validateRigidFrame().
◆ frameCount()
|
noexcept |
Number of accepted frames.
在文件 RigidRecording.cpp 第 68 行定义.
◆ freeze()
| Result< RigidPoseTrack > eve::physics::RigidRecording::freeze | ( | ) | const |
Freeze an independent immutable track; continued recording cannot mutate it. @cost Linear copy/validation plus per-frame identity sorting, once per asset outside playback.
- 返回
- Complete track or failure without changing session state; empty sessions cannot freeze.
在文件 RigidRecording.cpp 第 60 行定义.
引用了 eve::Result< T >::failure() , 以及 eve::physics::RigidPoseTrack::prepare().
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
defaultnoexcept |
◆ prepare()
|
static |
Prepare from complete provenance and total pose-sample budget in [1,2000000].
- 备注
- Coordinate space is taken from the recipe; first frame establishes a roster of up to 16384 IDs. @cost Linear in bounded recipe metadata, once before recording; frame storage grows on append.
- 返回
- Empty recorder or checked invalid metadata/budget/allocation failure.
在文件 RigidRecording.cpp 第 28 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, recipe , 以及 eve::Result< T >::success().
◆ sampleCount()
|
noexcept |
Number of accepted poses across all frames.
在文件 RigidRecording.cpp 第 69 行定义.
◆ space()
|
noexcept |
Coordinate space fixed by the admitted recipe.
在文件 RigidRecording.cpp 第 67 行定义.
该类的文档由以下文件生成:
- src/modules/physics/backend/bake/RigidRecording.h
- src/modules/physics/backend/bake/RigidRecording.cpp