Frozen fixed-roster rigid poses, independent of physics, graphics and script providers. @ownership Copies share immutable owning data; prepare consumes values and retains no caller aliases. @thread Const operations and separate copies are reentrant. No callbacks, clock reads or IO during sampling. @lifetime Samples and identities survive destruction of the original recording and simulation world. Frames may arrive with different sample order, but missing, duplicate or new IDs are rejected. Position interpolation is linear; rotations use shortest-path normalized interpolation, not angular turns. 更多...
#include <RigidPoseTrack.h>
类 | |
| struct | Data |
Public 成员函数 | |
| std::shared_ptr< const BakeRecipe > | recipe () const noexcept |
| Return shared immutable provenance; empty for explicit assets without verified origins. | |
| Result< void > | save (std::string_view path) const |
| Publish an immutable track without replacing an existing asset. @cost Linear in samples plus filesystem barriers; save once outside playback. | |
| Result< RigidTrackPose > | sample (float seconds, PersistentId id) const |
| Sample a known stable identity at finite seconds, clamping outside the recorded interval. | |
| RigidTrackSpace | space () const noexcept |
| Coordinate contract of every pose in this track. | |
| float | duration () const noexcept |
| Last recorded timestamp. | |
| std::size_t | trackCount () const noexcept |
| Number of identities in the frozen roster. | |
| std::size_t | frameCount () const noexcept |
| Number of captured frames. | |
| Result< PersistentId > | trackId (std::size_t index) const |
| Stable identity at canonical sorted index; returns failure for an out-of-range index. | |
静态 Public 成员函数 | |
| static Result< RigidPoseTrack > | prepare (RigidTrackSpace space, std::vector< RigidTrackFrame > frames) |
| Validate, normalize and freeze a bounded recording with stable sorted track identities. @cost Linear in samples plus per-frame identity sorting; prepare once outside the frame loop. | |
| static Result< RigidPoseTrack > | prepare (RigidTrackSpace space, std::vector< RigidTrackFrame > frames, const BakeRecipe &recipe) |
| Validate and freeze recording plus complete matching coordinate/timing provenance. @cost Linear in samples plus roster sorting; prepare once before publication, outside playback. | |
| static Result< RigidPoseTrack > | loadForRecipe (std::string_view path, const BakeRecipe &expected) |
| Load an asset and require exact canonical expected provenance before cache admission. @cost Linear in asset bytes plus validation; once per cache admission, outside playback. | |
| static Result< RigidPoseTrack > | load (std::string_view path) |
| Read and validate a bounded EVERIGD1 v1/v2 asset before returning an immutable track. @cost Linear in file size plus validation; load once and share across players. | |
详细描述
Frozen fixed-roster rigid poses, independent of physics, graphics and script providers. @ownership Copies share immutable owning data; prepare consumes values and retains no caller aliases. @thread Const operations and separate copies are reentrant. No callbacks, clock reads or IO during sampling. @lifetime Samples and identities survive destruction of the original recording and simulation world. Frames may arrive with different sample order, but missing, duplicate or new IDs are rejected. Position interpolation is linear; rotations use shortest-path normalized interpolation, not angular turns.
在文件 RigidPoseTrack.h 第 36 行定义.
成员函数说明
◆ duration()
|
noexcept |
Last recorded timestamp.
在文件 RigidPoseTrack.cpp 第 118 行定义.
被这些函数引用 eve::physics::RigidPlayback::advance(), eve::physics::RigidPlayback::duration() , 以及 eve::physics::RigidPlayback::seek().
◆ frameCount()
|
noexcept |
◆ load()
|
static |
Read and validate a bounded EVERIGD1 v1/v2 asset before returning an immutable track. @cost Linear in file size plus validation; load once and share across players.
- 返回
- Complete track or failure. Unknown schemas/versions, trailing fields and corrupt data are rejected. Legacy v1 remains explicit-playback-only; attaching verified provenance requires preparing the recording again.
在文件 RigidPoseTrackFile.cpp 第 62 行定义.
引用了 eve::physics::bakedAssetContentKey(), bytes, eve::physics::BakeRecipe::decode(), error, eve::Diagnostic::error(), f, eve::Failed, eve::Result< T >::failure(), file, frame, eve::HashMismatch, id, identity, ids, eve::physics::collapse_detail::MaxSamples, eve::physics::Metres3D, eve::NotFound, p, path, eve::physics::PlanarPixels, prepare(), eve::physics::RigidTrackFrame::samples, size, space(), status, tracks, version, word , 以及 eve::physics::RigidTrackPose::x.
被这些函数引用 loadForRecipe().
◆ loadForRecipe()
|
static |
Load an asset and require exact canonical expected provenance before cache admission. @cost Linear in asset bytes plus validation; once per cache admission, outside playback.
- 返回
- Track or diagnostic for missing provenance, mismatch, corruption or IO failure; never rebakes.
在文件 RigidPoseTrackFile.cpp 第 152 行定义.
引用了 eve::physics::BakeRecipe::encode(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::HashMismatch, load(), loaded, path , 以及 eve::PreconditionViolation.
◆ prepare() [1/2]
|
static |
Validate, normalize and freeze a bounded recording with stable sorted track identities. @cost Linear in samples plus per-frame identity sorting; prepare once outside the frame loop.
- 返回
- Complete track or failure without modifying any existing track.
在文件 RigidPoseTrack.cpp 第 44 行定义.
引用了 space().
被这些函数引用 eve::physics::RigidRecording::freeze() , 以及 load().
◆ prepare() [2/2]
|
static |
Validate and freeze recording plus complete matching coordinate/timing provenance. @cost Linear in samples plus roster sorting; prepare once before publication, outside playback.
- 返回
- Owning immutable track with a frozen recipe, or failure without publishing partial state.
在文件 RigidPoseTrack.cpp 第 47 行定义.
引用了 eve::Result< T >::failure(), eve::physics::MetresRightHandedYUp, eve::physics::PlanarPixels, recipe(), space() , 以及 valid.
◆ recipe()
|
noexcept |
Return shared immutable provenance; empty for explicit assets without verified origins.
在文件 RigidPoseTrack.cpp 第 62 行定义.
被这些函数引用 prepare().
◆ sample()
| Result< RigidTrackPose > eve::physics::RigidPoseTrack::sample | ( | float | seconds, |
| PersistentId | id | ||
| ) | const |
Sample a known stable identity at finite seconds, clamping outside the recorded interval.
- 返回
- Owning pose or checked invalid-time/unknown-identity failure.
在文件 RigidPoseTrack.cpp 第 85 行定义.
引用了 a, b, eve::Diagnostic::error(), eve::Result< T >::failure(), found, frame, index, eve::NotFound, pose, sample(), eve::Result< T >::success() , 以及 t.
被这些函数引用 sample(), eve::physics::RigidPlayback::sample() , 以及 save().
◆ save()
| Result< void > eve::physics::RigidPoseTrack::save | ( | std::string_view | path | ) | const |
Publish an immutable track without replacing an existing asset. @cost Linear in samples plus filesystem barriers; save once outside playback.
- 返回
- Checked publication status, with the same failure semantics as publishBakedAsset. EVERIGD1 v1 stores explicit assets without provenance; v2 embeds complete validated provenance. Both store coordinates, sorted persistent IDs, frame data and checksum. Cache admission requires loadForRecipe.
在文件 RigidPoseTrackFile.cpp 第 33 行定义.
引用了 eve::physics::bakedAssetContentKey(), bytes, eve::Result< T >::failure(), frame, frameCount(), out, p, path, eve::physics::PlanarPixels, eve::physics::publishBakedAsset(), sample(), space(), trackCount(), value , 以及 word.
◆ space()
|
noexcept |
Coordinate contract of every pose in this track.
在文件 RigidPoseTrack.cpp 第 117 行定义.
被这些函数引用 load(), prepare(), prepare(), save(), eve::physics::RigidPlayback::setPlacement(), eve::physics::submitRigidPlayback() , 以及 eve::physics::submitRigidPlayback().
◆ trackCount()
|
noexcept |
Number of identities in the frozen roster.
在文件 RigidPoseTrack.cpp 第 119 行定义.
◆ trackId()
| Result< PersistentId > eve::physics::RigidPoseTrack::trackId | ( | std::size_t | index | ) | const |
Stable identity at canonical sorted index; returns failure for an out-of-range index.
在文件 RigidPoseTrack.cpp 第 121 行定义.
引用了 eve::Result< T >::failure(), index, eve::Result< T >::success() , 以及 trackCount().
该类的文档由以下文件生成:
- src/modules/physics/backend/bake/RigidPoseTrack.h
- src/modules/physics/backend/bake/RigidPoseTrack.cpp
- src/modules/physics/backend/bake/RigidPoseTrackFile.cpp