载入中...
搜索中...
未找到
ActionPreviewController.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
11
12#include <optional>
13
14namespace eve::editor {
15
23public:
26 const action::IActionRootMotionSource* rootMotion = nullptr);
27
29 [[nodiscard]] Result<void> setRootMotionSampleCount(std::uint32_t sampleCount);
31 [[nodiscard]] Result<void> configureProfile(ActionPreviewProfile profile);
33 void clearProfile() noexcept;
35 [[nodiscard]] Result<void> refresh();
37 [[nodiscard]] Result<void> seek(Duration time);
39 [[nodiscard]] Result<void> stop();
41 [[nodiscard]] Result<void> stepFrames(std::int64_t frames, double frameRate);
43 [[nodiscard]] Result<void> jumpToEnd();
45 [[nodiscard]] Result<std::size_t> update(Duration delta);
47 [[nodiscard]] const std::optional<action::ActionPreviewFrame>& lastFrame() const noexcept { return lastFrame_; }
49 void drawRootMotion(IEditorOverlay& overlay, OverlayPoint origin = {}, float scale = 1.0f) const;
50
51private:
52 [[nodiscard]] Result<action::ActionPreviewFrame> buildFrame(
54 const std::vector<action::ActionTimelineEvent>& events) const;
55 [[nodiscard]] static action::ActionPreviewCueKind cueKind(const action::ActionTimelineEvent& event) noexcept;
56
57 ActionTimelineEditor& editor_;
59 const action::IActionRootMotionSource* rootMotion_ = nullptr;
60 std::uint32_t rootMotionSampleCount_ = 64;
61 std::optional<action::ActionPreviewFrame> lastFrame_;
62 std::optional<ActionPreviewProfile> profile_;
63};
64
65} // namespace eve::editor
Versioned action-editor preview settings and skeleton diagnostics.
Presentation-neutral action preview frame contracts.
UI-neutral transactional action timeline editor and preview model.
#define EVENGINE_API_EDITORS
Definition Export.h:112
std::array< float, 3 > scale
glm::dvec3 origin
std::shared_ptr< const OceanSprayFrame > previous
std::vector< particles::ParticleRecordEvent > events
double current
Signed, fixed-resolution simulation duration in nanoseconds.
Definition Time.h:43
Move-only operation result carrying either a value or Status.
Definition Result.h:176
Host boundary for 3D animation, VFX, audio and camera preview.
Optional animation provider that samples an owning root-motion polyline.
Coordinates deterministic timeline transport with a transactional preview host.
const std::optional< action::ActionPreviewFrame > & lastFrame() const noexcept
Last frame successfully published to the host.
Timeline editing controller shared by developer and in-game editors.
Sink implemented by a 2D or 3D viewport to render tool feedback.
ActionPreviewReason
Reason a preview frame is being presented.
ActionPreviewCueKind
Semantic presentation channel selected for one timeline boundary.
Owning event projection returned by the runtime sampler.
Asset-specific editor state kept outside the runtime action timeline.
A point in the coordinate space chosen by an editor viewport adapter.