载入中...
搜索中...
未找到
RigidRecording.h
浏览该文件的文档.
1#pragma once
2#include <cstddef>
3#include <memory>
4#include "common/Export.h"
5#include "common/Result.h"
6namespace eve::physics {
7class BakeRecipe;
8enum class RigidTrackSpace;
9class RigidPoseTrack;
10struct RigidTrackFrame;
17public:
23 [[nodiscard]] static Result<RigidRecording> prepare(const BakeRecipe& recipe, std::size_t sampleBudget);
26 RigidRecording& operator=(RigidRecording&&) noexcept;
28 RigidRecording& operator=(const RigidRecording&) = delete;
34 [[nodiscard]] Result<void> append(RigidTrackFrame frame);
39 [[nodiscard]] Result<RigidPoseTrack> freeze() const;
41 [[nodiscard]] RigidTrackSpace space() const noexcept;
43 [[nodiscard]] std::size_t frameCount() const noexcept;
45 [[nodiscard]] std::size_t sampleCount() const noexcept;
46
47private:
48 struct Impl;
49 explicit RigidRecording(std::unique_ptr<Impl> impl);
50 std::unique_ptr<Impl> impl_;
51};
52} // namespace eve::physics
void * impl
#define EVENGINE_API_BACKENDS
Definition Export.h:108
ssq::Object frame
BakeRecipe recipe
Move-only, checked operation results for the common layer.
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Bounded provenance builder for explicit-coordinate baked recordings. @ownership Owns names and conten...
Definition BakeRecipe.h:21
Frozen fixed-roster rigid poses, independent of physics, graphics and script providers....
Bounded owning recorder of stable-identity rigid frames, without simulation dependencies....
RigidRecording(RigidRecording &&) noexcept
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
RigidTrackSpace
Explicit sample coordinates; planar pixels preserve the producer's XY axes without implicit Y flip.
Owning frame at an explicit finite simulation time, starting at zero.