载入中...
搜索中...
未找到
SkeletonOverlay.h
浏览该文件的文档.
1#pragma once
2#include "common/Export.h"
3
4
6
7#include <array>
8#include <map>
9#include <string>
10#include <vector>
11
12namespace eve::animation {
13class AnimPose;
14class AnimSkeleton;
15}
16
17namespace eve::animation_editing {
20
23
28 std::string name;
29 std::array<double, 3> position{0.0, 0.0, 0.0};
30 std::array<double, 4> rotation{0.0, 0.0, 0.0, 1.0};
31 bool selected = false;
32 bool constrained = false;
33 std::array<double, 2> minimumAngles{0.0, 0.0};
34 std::array<double, 2> maximumAngles{0.0, 0.0};
36 double maskWeight = 1.0;
37};
38
41 std::size_t maximumBones = 4096;
42 double jointRadius = 0.025;
43 double axisLength = 0.15;
44 bool showAxes = true;
46 bool showConstraints = true;
47};
48
51public:
54 const std::vector<SkeletonOverlayBone>& bones,
55 const SkeletonOverlayOptions& options = {}) const;
56};
57
60public:
72 std::string target, Revision revision,
73 const std::string& selectedBone = {},
74 const std::map<std::string, std::string>& retarget = {},
75 const std::map<std::string, double>& mask = {},
76 const SkeletonOverlayOptions& options = {}) const;
77};
78
79} // namespace eve::animation_editing
LogicalId target
eve::EntitySpatialPose pose
int mask
#define EVENGINE_API_DOMAINS
Definition Export.h:110
std::vector< Bone > bones
std::uint64_t revision
const SquirrelValueOptions & options
UUID-backed identifier adapter for legacy textual boundaries.
Definition Identity.h:314
Evaluated local (and optional world) pose for an AnimSkeleton. Script type: AnimPose.
Definition AnimPose.h:17
3D bone hierarchy + bind-pose local TRS for skeletal animation. Independent of ik::Skeleton3D (FABRIK...
Optional bridge extracting an overlay from a real animation pose.
Builds bone lines, joints, local axes and constraint arcs without a renderer dependency.
SkeletonRetargetState
Retarget state used to color one skeleton overlay bone.
editing::Revision Revision
eve::Severity DiagnosticSeverity
std::uint64_t Revision
StrongId< StableIdTag > StableId
Definition EditingIds.h:64
StrongId< RuleIdTag > RuleId
Definition EditingIds.h:60
eve::StatusCode Status
StatusCode
Stable outcome category for an operation.
Definition Status.h:27
Severity
Stable severity of a diagnostic, independent of its display text.
Definition Diagnostic.h:20
Immutable renderer-neutral world-space bone snapshot.
Overlay density, feature toggles and hard safety budgets.
Immutable revision-tagged overlay snapshot consumed by any viewport renderer.