载入中...
搜索中...
未找到
DeformRecording.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;
8class DeformTrack;
9struct DeformFrame;
16public:
21 [[nodiscard]] static Result<DeformRecording> prepare(const BakeRecipe& recipe, std::size_t sampleBudget);
24 DeformRecording& operator=(DeformRecording&&) noexcept;
26 DeformRecording& operator=(const DeformRecording&) = delete;
32 [[nodiscard]] Result<void> append(DeformFrame frame);
37 [[nodiscard]] Result<DeformTrack> freeze() const;
39 [[nodiscard]] std::size_t frameCount() const noexcept;
41 [[nodiscard]] std::size_t sampleCount() const noexcept;
42
43private:
44 struct Impl;
45 explicit DeformRecording(std::unique_ptr<Impl> impl);
46 std::unique_ptr<Impl> impl_;
47};
48} // 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
Bounded owning builder for fixed-topology deformation recordings. @ownership Owns a frozen recipe cop...
DeformRecording(DeformRecording &&) noexcept
Immutable fixed-topology deformation clip, independent of simulation and rendering providers....
Definition DeformTrack.h:25
Optional physics backend for vehicle mobility and body attach.
Definition Climbing.h:36
Owning snapshot with actual connectivity, stable indexed positions and explicit sample time.
Definition DeformTrack.h:15