载入中...
搜索中...
未找到
eve::animation_editor::ControlRigEditor类 参考

UI-independent rig authoring controller with existing editing transactions. @ownership Owns document, skeleton snapshot and previews. Call arguments borrowed synchronously. @thread Owner thread only. @reentrancy Does not invoke scripts or unknown callbacks. 更多...

#include <ControlRigEditor.h>

类

struct  Impl
 

Public 成员函数

 ControlRigEditor (std::string targetId)
 Create an empty editor with stable identity.
 
 ~ControlRigEditor ()
 Release all owned state.
 
 ControlRigEditor (const ControlRigEditor &)=delete
 
ControlRigEditor & operator= (const ControlRigEditor &)=delete
 
Result< void > initialize (const animation::AnimSkeleton &skeleton)
 Copy skeleton, seed FK controls and clear history after validation. @cost Skeleton-sized preparation, amortized over an editing session.
 
Result< void > replace (const animation::RigDefinition &definition)
 Validate and transactionally replace rig definition, preserving history. @cost Compile and preview once per user edit; no per-frame compilation.
 
Result< void > enableAutomation ()
 Register the initialized live document and existing history with the active editor host.
 
Result< void > disableAutomation ()
 Remove Agent access without discarding the UI document or history.
 
Result< Value > snapshot () const
 Copy authoritative document for inspection/serialization.
 
Result< void > restore (const Value &value)
 Load schema-validated document through same reversible replacement path.
 
Result< void > seek (double seconds)
 Seek an explicit time; updates preview atomically.
 
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.
 
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.
 
Result< void > previewMoveControl (int index, float x, float y, float z)
 Preview a model-space drag without history; seek cancels, moveControl commits.
 
Result< void > deleteKey (std::string_view id)
 Remove a control key exactly at playhead; returns a diagnostic when absent.
 
Result< void > reparent (std::string_view id, std::string_view parent)
 Reparent unanimated controls preserving model-space pose.
 
Result< void > undo ()
 Undo latest committed edit and rebuild derived preview.
 
Result< void > redo ()
 Redo latest compensated edit and rebuild derived preview.
 
Result< void > bakeInto (animation::AnimClip &clip, double sampleRate) const
 Bake into caller clip only after complete successful preparation.
 
Result< void > copyPose (animation::AnimPose &output) const
 Copy current solved pose into caller output.
 
Result< void > keyFromPose (const animation::AnimPose &pose)
 Match an existing pose to unique full-weight FK controls, recording one undoable key batch. @cost Recompiles the authored snapshot once per pose import, not per preview frame.
 
Result< animation::TransformTRS > controlWorld (int index) const
 Copy current control model transform by index for viewport drawing/picking.
 
Result< animation::TransformTRS > controlLocal (int index) const
 Copy sampled parent-local control for inspector/drag edits.
 
int controlCount () const
 Number of authored controls.
 
std::string controlId (int index) const
 Control ID at index, empty if invalid.
 
std::uint64_t revision () const
 Monotonic document revision for UI invalidation after external edits.
 
double time () const
 Current playhead in seconds.
 
double duration () const
 Document duration.
 

详细描述

UI-independent rig authoring controller with existing editing transactions. @ownership Owns document, skeleton snapshot and previews. Call arguments borrowed synchronously. @thread Owner thread only. @reentrancy Does not invoke scripts or unknown callbacks.

在文件 ControlRigEditor.h 第 25 行定义.

构造及析构函数说明

◆ ControlRigEditor() [1/2]

eve::animation_editor::ControlRigEditor::ControlRigEditor ( std::string  targetId)
explicit

Create an empty editor with stable identity.

◆ ~ControlRigEditor()

eve::animation_editor::ControlRigEditor::~ControlRigEditor ( )

Release all owned state.

◆ ControlRigEditor() [2/2]

eve::animation_editor::ControlRigEditor::ControlRigEditor ( const ControlRigEditor &  )
delete

成员函数说明

◆ bakeInto()

Result< void > eve::animation_editor::ControlRigEditor::bakeInto ( animation::AnimClip &  clip,
double  sampleRate 
) const

Bake into caller clip only after complete successful preparation.

◆ controlCount()

int eve::animation_editor::ControlRigEditor::controlCount ( ) const

Number of authored controls.

◆ controlId()

std::string eve::animation_editor::ControlRigEditor::controlId ( int  index) const

Control ID at index, empty if invalid.

◆ controlLocal()

Result< animation::TransformTRS > eve::animation_editor::ControlRigEditor::controlLocal ( int  index) const

Copy sampled parent-local control for inspector/drag edits.

◆ controlWorld()

Result< animation::TransformTRS > eve::animation_editor::ControlRigEditor::controlWorld ( int  index) const

Copy current control model transform by index for viewport drawing/picking.

◆ copyPose()

Result< void > eve::animation_editor::ControlRigEditor::copyPose ( animation::AnimPose &  output) const

Copy current solved pose into caller output.

◆ deleteKey()

Result< void > eve::animation_editor::ControlRigEditor::deleteKey ( std::string_view  id)

Remove a control key exactly at playhead; returns a diagnostic when absent.

◆ disableAutomation()

Result< void > eve::animation_editor::ControlRigEditor::disableAutomation ( )

Remove Agent access without discarding the UI document or history.

◆ duration()

double eve::animation_editor::ControlRigEditor::duration ( ) const

Document duration.

◆ enableAutomation()

Result< void > eve::animation_editor::ControlRigEditor::enableAutomation ( )

Register the initialized live document and existing history with the active editor host.

返回
Structured unsupported status when the host is absent; duplicate target IDs are rejected. @ownership Borrows the host with a teardown sentinel; destruction unregisters this target. @thread Owner thread only. No scripts are invoked.

◆ initialize()

Result< void > eve::animation_editor::ControlRigEditor::initialize ( const animation::AnimSkeleton &  skeleton)

Copy skeleton, seed FK controls and clear history after validation. @cost Skeleton-sized preparation, amortized over an editing session.

◆ keyFromPose()

Result< void > eve::animation_editor::ControlRigEditor::keyFromPose ( const animation::AnimPose &  pose)

Match an existing pose to unique full-weight FK controls, recording one undoable key batch. @cost Recompiles the authored snapshot once per pose import, not per preview frame.

◆ moveControl()

Result< void > eve::animation_editor::ControlRigEditor::moveControl ( int  index,
float  x,
float  y,
float  z,
bool  key 
)

Move a control in model space, converting through its sampled parent transform.

◆ operator=()

ControlRigEditor & eve::animation_editor::ControlRigEditor::operator= ( const ControlRigEditor &  )
delete

◆ previewMoveControl()

Result< void > eve::animation_editor::ControlRigEditor::previewMoveControl ( int  index,
float  x,
float  y,
float  z 
)

Preview a model-space drag without history; seek cancels, moveControl commits.

◆ redo()

Result< void > eve::animation_editor::ControlRigEditor::redo ( )

Redo latest compensated edit and rebuild derived preview.

◆ reparent()

Result< void > eve::animation_editor::ControlRigEditor::reparent ( std::string_view  id,
std::string_view  parent 
)

Reparent unanimated controls preserving model-space pose.

◆ replace()

Result< void > eve::animation_editor::ControlRigEditor::replace ( const animation::RigDefinition &  definition)

Validate and transactionally replace rig definition, preserving history. @cost Compile and preview once per user edit; no per-frame compilation.

◆ restore()

Result< void > eve::animation_editor::ControlRigEditor::restore ( const Value &  value)

Load schema-validated document through same reversible replacement path.

◆ revision()

std::uint64_t eve::animation_editor::ControlRigEditor::revision ( ) const

Monotonic document revision for UI invalidation after external edits.

◆ seek()

Result< void > eve::animation_editor::ControlRigEditor::seek ( double  seconds)

Seek an explicit time; updates preview atomically.

◆ setControl()

Result< void > eve::animation_editor::ControlRigEditor::setControl ( std::string_view  id,
const animation::TransformTRS &  transform,
bool  key 
)

Edit a control's local TRS, optionally creating/replacing a key at playhead.

◆ snapshot()

Result< Value > eve::animation_editor::ControlRigEditor::snapshot ( ) const

Copy authoritative document for inspection/serialization.

◆ time()

double eve::animation_editor::ControlRigEditor::time ( ) const

Current playhead in seconds.

◆ undo()

Result< void > eve::animation_editor::ControlRigEditor::undo ( )

Undo latest committed edit and rebuild derived preview.


该类的文档由以下文件生成: