载入中...
搜索中...
未找到
ControlRigEditor.h
浏览该文件的文档.
56 [[nodiscard]] Result<void> setControl(std::string_view id, const animation::TransformTRS& transform, bool key);
Move-only, checked operation results for the common layer.
Keyframed skeletal animation clip (local TRS tracks per bone). Script type: AnimClip.
Definition AnimClip.h:145
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...
Definition AnimSkeleton.h:16
UI-independent rig authoring controller with existing editing transactions. @ownership Owns document,...
Definition ControlRigEditor.h:25
Result< void > disableAutomation()
Remove Agent access without discarding the UI document or history.
Result< void > keyFromPose(const animation::AnimPose &pose)
Match an existing pose to unique full-weight FK controls, recording one undoable key batch....
Result< Value > snapshot() const
Copy authoritative document for inspection/serialization.
~ControlRigEditor()
Release all owned state.
Result< void > enableAutomation()
Register the initialized live document and existing history with the active editor host.
int controlCount() const
Number of authored controls.
ControlRigEditor & operator=(const ControlRigEditor &)=delete
Result< void > undo()
Undo latest committed edit and rebuild derived preview.
Result< void > seek(double seconds)
Seek an explicit time; updates preview atomically.
Result< void > previewMoveControl(int index, float x, float y, float z)
Preview a model-space drag without history; seek cancels, moveControl commits.
Result< void > moveControl(int index, float x, float y, float z, bool key)
Move a control in model space, converting through its sampled parent transform.
std::uint64_t revision() const
Monotonic document revision for UI invalidation after external edits.
Result< void > copyPose(animation::AnimPose &output) const
Copy current solved pose into caller output.
Result< void > replace(const animation::RigDefinition &definition)
Validate and transactionally replace rig definition, preserving history. @cost Compile and preview on...
std::string controlId(int index) const
Control ID at index, empty if invalid.
Result< animation::TransformTRS > controlWorld(int index) const
Copy current control model transform by index for viewport drawing/picking.
ControlRigEditor(const ControlRigEditor &)=delete
Result< void > redo()
Redo latest compensated edit and rebuild derived preview.
ControlRigEditor(std::string targetId)
Create an empty editor with stable identity.
Result< void > deleteKey(std::string_view id)
Remove a control key exactly at playhead; returns a diagnostic when absent.
Result< void > initialize(const animation::AnimSkeleton &skeleton)
Copy skeleton, seed FK controls and clear history after validation. @cost Skeleton-sized preparation,...
Result< animation::TransformTRS > controlLocal(int index) const
Copy sampled parent-local control for inspector/drag edits.
Result< void > restore(const Value &value)
Load schema-validated document through same reversible replacement path.
Result< void > reparent(std::string_view id, std::string_view parent)
Reparent unanimated controls preserving model-space pose.
Result< void > bakeInto(animation::AnimClip &clip, double sampleRate) const
Bake into caller clip only after complete successful preparation.
Result< void > setControl(std::string_view id, const animation::TransformTRS &transform, bool key)
Edit a control's local TRS, optionally creating/replacing a key at playhead.
Definition Animation.cpp:58
std::variant< std::monostate, std::int64_t, double, std::string, bool > Value
Definition Database.h:27
Owning, versioned rig authoring data; no runtime pointers or indices.
Definition ControlRig.h:62
Local TRS used by skeletal animation (quaternion xyzw).
Definition AnimMath.h:9