Revisioned camera-rig and director-timeline editing document. 更多...
#include <CameraTarget.h>
Public 成员函数 | |
| CameraDocumentTarget (std::string id) | |
| Camera document target. | |
| TargetId | targetId () const override |
| Target id. | |
| TargetDescriptor | describe () const override |
| Describe. | |
| void * | queryCapability (const CapabilityId &capability) override |
| Query an optional target capability. | |
| Result< void > | applyDomainOperation (const DomainOperation &operation) override |
| Applies domain operation. | |
| std::unique_ptr< IDomainOperationTarget > | cloneDomainState () const override |
| Clones domain state. | |
| Result< void > | commitDomainState (std::unique_ptr< IDomainOperationTarget > candidate) override |
| Commits domain state. | |
| eve::Result< eve::Revision > | currentRevision (const SelectionSnapshot &selection) const override |
| Current revision. | |
| PropertySchema | schema (const SelectionSnapshot &selection) const override |
| Schema. | |
| PropertyReadResult | read (const SelectionSnapshot &selection, const PropertyPath &path) const override |
| Reads . | |
| Result< DomainOperation > | makeSet (const SelectionSnapshot &selection, const PropertyPath &path, const EditorValue &value, PropertySetMode mode) const override |
| Make set. | |
| Result< DomainOperation > | makeReset (const SelectionSnapshot &selection, const PropertyPath &path) const override |
| Make reset. | |
| Result< DomainOperation > | makeCreateRig (const CameraRigValue &rig) const |
| Add a rig with a stable identity. | |
| Result< DomainOperation > | makeDeleteRig (const ObjectId &id) const |
| Delete a rig only when no timeline cut references it. | |
| Result< DomainOperation > | makeCreateKey (const CameraTimelineKeyValue &key) const |
| Add a stable timeline key. | |
| Result< DomainOperation > | makeDeleteKey (const ObjectId &id) const |
| Remove a timeline key. | |
| const std::vector< CameraRigValue > & | rigs () const |
| Return authored rigs in stable document order. | |
| std::vector< CameraTimelineKeyValue > | timeline () const |
| Return timeline keys sorted by time then stable identity. | |
| std::vector< EditorDiagnostic > | validate () const |
| Validate references, ranges, names and document budgets. | |
| EditorValue | snapshotValue () const |
| Capture a versioned atomic persistence value. | |
| Result< void > | loadSnapshot (const EditorValue &snapshot) |
| Atomically replace the document from a snapshot. | |
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. | |
| 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. | |
Public 成员函数 继承自 eve::editing::IPropertyProvider | |
| virtual | ~IPropertyProvider ()=default |
| Releases IPropertyProvider resources. | |
额外继承的成员函数 | |
静态 Public 成员函数 继承自 eve::editing::IPropertyProvider | |
| static CapabilityId | editingCapabilityId () |
| Stable capability identity for generic property editing. | |
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. | |
详细描述
Revisioned camera-rig and director-timeline editing document.
在文件 CameraTarget.h 第 65 行定义.
构造及析构函数说明
◆ CameraDocumentTarget()
|
explicit |
Camera document target.
在文件 CameraTarget.cpp 第 25 行定义.
成员函数说明
◆ applyDomainOperation()
|
overridevirtual |
Applies domain operation.
实现了 eve::editing::IDomainOperationTarget.
在文件 CameraTarget.cpp 第 50 行定义.
引用了 eve::editing::EditableTargetState::bumpRevision(), operation, rigs(), validate(), value , 以及 eve::editing::EditableTargetState::widenDirty().
被这些函数引用 loadSnapshot().
◆ cloneDomainState()
|
overridevirtual |
Clones domain state.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 CameraTarget.cpp 第 80 行定义.
◆ commitDomainState()
|
overridevirtual |
Commits domain state.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 CameraTarget.cpp 第 81 行定义.
◆ currentRevision()
|
overridevirtual |
Current revision.
重载 eve::editing::IPropertyProvider .
在文件 CameraTarget.cpp 第 32 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::editing::EditableTargetState::revisionValue() , 以及 eve::Result< T >::success().
◆ describe()
|
overridevirtual |
◆ loadSnapshot()
| Result< void > eve::camera_editing::CameraDocumentTarget::loadSnapshot | ( | const EditorValue & | snapshot | ) |
Atomically replace the document from a snapshot.
在文件 CameraTarget.cpp 第 83 行定义.
引用了 applyDomainOperation(), eve::editing::IEditableTarget::clearDirtyRegion(), operation , 以及 eve::editing::DomainOperation::target.
◆ makeCreateKey()
| Result< DomainOperation > eve::camera_editing::CameraDocumentTarget::makeCreateKey | ( | const CameraTimelineKeyValue & | key | ) | const |
◆ makeCreateRig()
| Result< DomainOperation > eve::camera_editing::CameraDocumentTarget::makeCreateRig | ( | const CameraRigValue & | rig | ) | const |
Add a rig with a stable identity.
在文件 CameraTarget.cpp 第 44 行定义.
引用了 eve::UuidIdAdapter< Tag >::empty(), eve::camera_editing::CameraRigValue::id , 以及 v.
◆ makeDeleteKey()
| Result< DomainOperation > eve::camera_editing::CameraDocumentTarget::makeDeleteKey | ( | const ObjectId & | id | ) | const |
Remove a timeline key.
在文件 CameraTarget.cpp 第 47 行定义.
◆ makeDeleteRig()
| Result< DomainOperation > eve::camera_editing::CameraDocumentTarget::makeDeleteRig | ( | const ObjectId & | id | ) | const |
◆ makeReset()
|
overridevirtual |
Make reset.
实现了 eve::editing::IPropertyProvider.
在文件 CameraTarget.cpp 第 43 行定义.
引用了 d, eve::editing::PropertySchema::find(), makeSet(), path , 以及 schema().
被这些函数引用 makeSet().
◆ makeSet()
|
overridevirtual |
Make set.
实现了 eve::editing::IPropertyProvider.
在文件 CameraTarget.cpp 第 42 行定义.
引用了 d, eve::editing::PropertySchema::find(), eve::editing::SelectionSnapshot::items, makeReset(), number, ok, path, r, schema(), v , 以及 value.
被这些函数引用 makeReset().
◆ queryCapability()
|
overridevirtual |
Query an optional target capability.
- 返回
- Borrowed pointer owned by this target, or null. @lifetime Valid until this target is destroyed or mutated.
重载 eve::editing::IEditableTarget .
在文件 CameraTarget.cpp 第 30 行定义.
◆ read()
|
overridevirtual |
Reads .
实现了 eve::editing::IPropertyProvider.
在文件 CameraTarget.cpp 第 39 行定义.
引用了 eve::editing::SelectionSnapshot::items, path, r, schema(), v , 以及 value.
◆ rigs()
|
inline |
Return authored rigs in stable document order.
在文件 CameraTarget.h 第 106 行定义.
被这些函数引用 applyDomainOperation(), eve::camera_editing::CameraPreview::evaluate() , 以及 eve::camera_editing::CameraDocumentRuntime::publish().
◆ schema()
|
overridevirtual |
Schema.
实现了 eve::editing::IPropertyProvider.
在文件 CameraTarget.cpp 第 38 行定义.
引用了 descriptor, s , 以及 eve::editing::PropertySchema::typeId.
被这些函数引用 makeReset(), makeSet() , 以及 read().
◆ snapshotValue()
| EditorValue eve::camera_editing::CameraDocumentTarget::snapshotValue | ( | ) | const |
Capture a versioned atomic persistence value.
在文件 CameraTarget.cpp 第 82 行定义.
◆ targetId()
|
inlineoverridevirtual |
◆ timeline()
| std::vector< CameraTimelineKeyValue > eve::camera_editing::CameraDocumentTarget::timeline | ( | ) | const |
Return timeline keys sorted by time then stable identity.
在文件 CameraTarget.cpp 第 48 行定义.
被这些函数引用 eve::camera_editing::CameraPreview::evaluate() , 以及 eve::camera_editing::CameraDocumentRuntime::publish().
◆ validate()
| std::vector< EditorDiagnostic > eve::camera_editing::CameraDocumentTarget::validate | ( | ) | const |
Validate references, ranges, names and document budgets.
在文件 CameraTarget.cpp 第 49 行定义.
引用了 enabled, finite, ids, eve::InvalidArgument, r , 以及 eve::editing::ruleDiagnostic().
被这些函数引用 applyDomainOperation(), eve::camera_editing::CameraPreview::evaluate() , 以及 eve::camera_editing::CameraDocumentRuntime::publish().
该类的文档由以下文件生成:
- src/modules/camera/editing/CameraTarget.h
- src/modules/camera/editing/CameraTarget.cpp
Public 成员函数 继承自