Transactional rig document. Owns typed state; owner thread only; no callbacks. 更多...
#include <ControlRigDocument.h>
类 | |
| struct | Impl |
Public 成员函数 | |
| ControlRigDocument (std::string id) | |
| Create an empty rig document with a stable target identity. | |
| ~ControlRigDocument () | |
| Destroy owned state. | |
| ControlRigDocument (const ControlRigDocument &)=delete | |
| ControlRigDocument & | operator= (const ControlRigDocument &)=delete |
| editing::TargetId | targetId () const override |
| Return stable target identity by value. | |
| editing::TargetDescriptor | describe () const override |
| Describe this document for editor discovery. | |
| animation::RigDefinition | definition () const |
| Copy the authoritative rig definition; callers never mutate target state directly. | |
| Result< editing::GraphDocumentData > | graph () const |
| Project solve nodes and dependency pins into the existing generic graph model. | |
| Result< editing::DomainOperation > | replaceGraph (const editing::GraphDocumentData &graph) const |
| Prepare a graph edit against its captured document revision; stale graphs are rejected. | |
| Result< editing::DomainOperation > | replace (const animation::RigDefinition &candidate) const |
| Prepare a reversible replacement; validates before producing the operation. @cost Document-sized encoding, amortized per committed user edit. | |
| Result< void > | applyDomainOperation (const editing::DomainOperation &operation) override |
| Apply validated candidate atomically, checking target identity. | |
| std::unique_ptr< editing::IDomainOperationTarget > | cloneDomainState () const override |
| Produce detached state for existing editing transaction machinery. | |
| Result< void > | commitDomainState (std::unique_ptr< editing::IDomainOperationTarget > candidate) override |
| Publish a detached candidate for this target. | |
Public 成员函数 继承自 eve::editing::EditableTargetState | |
| EditableTargetState (Revision initial=1) | |
| Constructs the shared state with an explicit initial revision. | |
| EditRegion | dirtyRegion () const override |
| Return the accumulated dirty region. | |
| void | clearDirtyRegion () override |
| Discard the dirty region; the revision does not change. | |
| std::uint64_t | revision () const override |
| Return the current revision. | |
| Revision | revisionValue () const noexcept |
| Return the revision as the shared protocol revision type. | |
Public 成员函数 继承自 eve::editing::IEditableTarget | |
| virtual | ~IEditableTarget ()=default |
| Releases IEditableTarget resources. | |
| virtual void * | queryCapability (const CapabilityId &capability) |
| Query an optional stable capability. | |
| template<class C > | |
| eve::OptionalRef< C > | capability () |
| Query a capability through its interface-owned stable identity. | |
| template<class C > | |
| eve::OptionalRef< const C > | capability () const |
| Capability. | |
| template<class C > | |
| C * | query () |
| Queries query. | |
| template<class C > | |
| const C * | query () const |
| Queries query. | |
Public 成员函数 继承自 eve::editing::IDomainOperationTarget | |
| ~IDomainOperationTarget () override=default | |
| Releases IDomainOperationTarget resources. | |
Public 成员函数 继承自 eve::editing::IDomainOperationTargetStaging | |
| virtual | ~IDomainOperationTargetStaging ()=default |
| Releases IDomainOperationTargetStaging resources. | |
| virtual Result< void > | commitDomainState (std::unique_ptr< IDomainOperationTarget > candidate)=0 |
| Atomically publish a validated candidate state. | |
额外继承的成员函数 | |
Protected 成员函数 继承自 eve::editing::EditableTargetState | |
| void | widenDirty (int x, int y) |
| Widen the dirty region without advancing the revision. | |
| void | widenDirty (const EditRegion ®ion) |
| Widen the dirty region without advancing the revision. | |
| void | widenDirty () |
| Mark an unknown area dirty without advancing the revision. | |
| void | bumpRevision () |
| Advance the revision without touching the dirty region. | |
| void | setRevision (Revision revision) |
| Adopt a revision observed elsewhere, without advancing it. | |
| void | setDirtyRegion (const EditRegion ®ion) |
| Replace the dirty region wholesale, without advancing the revision. | |
| void | markDirty (int x, int y) |
| Include one cell in the dirty region and advance the revision. | |
| void | markDirty (const EditRegion ®ion) |
| Include a whole region and advance the revision. | |
| void | markDirty () |
| Mark an unknown area dirty and advance the revision. | |
详细描述
Transactional rig document. Owns typed state; owner thread only; no callbacks.
在文件 ControlRigDocument.h 第 13 行定义.
构造及析构函数说明
◆ ControlRigDocument() [1/2]
|
explicit |
Create an empty rig document with a stable target identity.
在文件 ControlRigDocument.cpp 第 14 行定义.
◆ ~ControlRigDocument()
|
default |
Destroy owned state.
◆ ControlRigDocument() [2/2]
|
delete |
成员函数说明
◆ applyDomainOperation()
|
overridevirtual |
Apply validated candidate atomically, checking target identity.
实现了 eve::editing::IDomainOperationTarget.
在文件 ControlRigDocument.cpp 第 46 行定义.
引用了 eve::editing::EditableTargetState::bumpRevision(), eve::animation::decodeControlRig(), eve::editing::editorValueToJson(), eve::Diagnostic::error(), eve::Result< T >::failure(), eve::Value::fromJson(), eve::InvalidArgument, eve::editing::Value::isWithinLimits(), eve::editing::DomainOperation::payload, eve::editing::DomainOperation::target, targetId(), eve::editing::DomainOperation::type , 以及 eve::editing::EditableTargetState::widenDirty().
◆ cloneDomainState()
|
overridevirtual |
Produce detached state for existing editing transaction machinery.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 ControlRigDocument.cpp 第 62 行定义.
被这些函数引用 eve::animation_editor::ControlRigEditor::Impl::LiveTarget::cloneDomainState().
◆ commitDomainState()
|
override |
Publish a detached candidate for this target.
在文件 ControlRigDocument.cpp 第 68 行定义.
引用了 eve::Diagnostic::error(), eve::InvalidArgument , 以及 targetId().
◆ definition()
| animation::RigDefinition eve::animation_editing::ControlRigDocument::definition | ( | ) | const |
Copy the authoritative rig definition; callers never mutate target state directly.
在文件 ControlRigDocument.cpp 第 22 行定义.
◆ describe()
|
overridevirtual |
Describe this document for editor discovery.
重载 eve::editing::IEditableTarget .
在文件 ControlRigDocument.cpp 第 17 行定义.
引用了 eve::editing::IEditableTarget::describe() , 以及 result.
被这些函数引用 eve::animation_editor::ControlRigEditor::Impl::LiveTarget::describe().
◆ graph()
| Result< editing::GraphDocumentData > eve::animation_editing::ControlRigDocument::graph | ( | ) | const |
Project solve nodes and dependency pins into the existing generic graph model.
在文件 ControlRigDocument.cpp 第 77 行定义.
引用了 a, b, edge, eve::editing::editorValueFromJson(), eve::animation::encodeControlRig(), eve::Result< T >::failure(), eve::editing::GraphNodeRecord::id, eve::editing::Input, model, node, nodes, order, eve::editing::Output, properties, record, eve::editing::EditableTargetState::revision(), snapshot, eve::Result< T >::success() , 以及 text.
被这些函数引用 replaceGraph().
◆ operator=()
|
delete |
◆ replace()
| Result< editing::DomainOperation > eve::animation_editing::ControlRigDocument::replace | ( | const animation::RigDefinition & | candidate | ) | const |
Prepare a reversible replacement; validates before producing the operation. @cost Document-sized encoding, amortized per committed user edit.
在文件 ControlRigDocument.cpp 第 23 行定义.
引用了 eve::editing::DomainOperation::affectedObjects, eve::editing::editorValueFromJson(), eve::animation::encodeControlRig(), eve::Result< T >::failure(), eve::editing::DomainOperation::hasInverse, eve::editing::DomainOperation::inverse, eve::editing::DomainOperation::inverseType, payload, eve::editing::DomainOperation::payload, eve::Result< T >::success(), eve::editing::DomainOperation::target, targetId() , 以及 eve::editing::DomainOperation::type.
被这些函数引用 replaceGraph().
◆ replaceGraph()
| Result< editing::DomainOperation > eve::animation_editing::ControlRigDocument::replaceGraph | ( | const editing::GraphDocumentData & | graph | ) | const |
Prepare a graph edit against its captured document revision; stale graphs are rejected.
在文件 ControlRigDocument.cpp 第 115 行定义.
引用了 eve::Value::array(), eve::editing::GraphDocument::connect(), eve::editing::GraphDocument::createNode(), eve::animation::decodeControlRig(), edge, eve::editing::editorValueToJson(), eve::animation::encodeControlRig(), eve::Diagnostic::error(), eve::Result< T >::failure(), from, eve::Value::fromJson(), graph(), id, ids, index, input, eve::editing::Input, eve::InvalidArgument, message, node, nodes, output, eve::editing::Output, properties, replace(), eve::editing::EditableTargetState::revision() , 以及 to.
◆ targetId()
|
overridevirtual |
Return stable target identity by value.
实现了 eve::editing::IEditableTarget.
在文件 ControlRigDocument.cpp 第 16 行定义.
被这些函数引用 applyDomainOperation(), commitDomainState(), replace() , 以及 eve::animation_editor::ControlRigEditor::Impl::LiveTarget::targetId().
该类的文档由以下文件生成:
- src/modules/animation/editing/ControlRigDocument.h
- src/modules/animation/editing/ControlRigDocument.cpp
Public 成员函数 继承自