Serializable, backend-neutral 2D/3D collider authoring target. 更多...
#include <PhysicsTarget.h>
Public 成员函数 | |
| PhysicsColliderTarget (std::string id, int dimensions=3) | |
| Physics collider 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. | |
| EditorValue | snapshotValue () const |
| Capture deterministic collider content for asset/scene persistence. | |
| Result< void > | loadSnapshot (const EditorValue &snapshot) |
| Atomically load a versioned collider snapshot. | |
| std::vector< EditorDiagnostic > | validate () const |
| Report cross-property shape/body problems for inspector overlays. | |
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. | |
Public 成员函数 继承自 eve::editing::IPropertyProvider | |
| virtual | ~IPropertyProvider ()=default |
| Releases IPropertyProvider resources. | |
| virtual Result< DomainOperation > | makeSet (const SelectionSnapshot &selection, const PropertyPath &path, const Value &value, PropertySetMode mode) const =0 |
| Make set. | |
额外继承的成员函数 | |
静态 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. | |
详细描述
Serializable, backend-neutral 2D/3D collider authoring target.
在文件 PhysicsTarget.h 第 48 行定义.
构造及析构函数说明
◆ PhysicsColliderTarget()
|
explicit |
Physics collider target.
在文件 PhysicsTarget.cpp 第 29 行定义.
成员函数说明
◆ applyDomainOperation()
|
overridevirtual |
Applies domain operation.
实现了 eve::editing::IDomainOperationTarget.
在文件 PhysicsTarget.cpp 第 45 行定义.
引用了 eve::editing::EditableTargetState::bumpRevision(), descriptor, eve::editing::PropertySchema::find(), eve::editing::Value::getIf(), operation, path, valid, value , 以及 eve::editing::EditableTargetState::widenDirty().
被这些函数引用 eve::physics_editing::PhysicsColliderPublishingTarget::applyDomainOperation().
◆ cloneDomainState()
|
overridevirtual |
Clones domain state.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 PhysicsTarget.cpp 第 70 行定义.
◆ commitDomainState()
|
overridevirtual |
Commits domain state.
实现了 eve::editing::IDomainOperationTargetStaging.
在文件 PhysicsTarget.cpp 第 74 行定义.
◆ currentRevision()
|
overridevirtual |
Current revision.
重载 eve::editing::IPropertyProvider .
在文件 PhysicsTarget.cpp 第 83 行定义.
引用了 eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::editing::EditableTargetState::revisionValue() , 以及 eve::Result< T >::success().
◆ describe()
|
overridevirtual |
Describe.
重载 eve::editing::IEditableTarget .
在文件 PhysicsTarget.cpp 第 32 行定义.
引用了 eve::editing::EditableTargetState::revisionValue().
被这些函数引用 eve::physics_editing::PhysicsColliderPublishingTarget::commitDomainState().
◆ loadSnapshot()
| Result< void > eve::physics_editing::PhysicsColliderTarget::loadSnapshot | ( | const EditorValue & | snapshot | ) |
Atomically load a versioned collider snapshot.
在文件 PhysicsSerialization.cpp 第 27 行定义.
引用了 eve::editing::EditableTargetState::bumpRevision(), eve::editing::IEditableTarget::clearDirtyRegion(), descriptor, eve::editing::PropertySchema::find(), eve::editing::Value::getIf(), path, properties, valid , 以及 value.
◆ makeReset()
|
overridevirtual |
Make reset.
实现了 eve::editing::IPropertyProvider.
在文件 PhysicsTarget.cpp 第 135 行定义.
引用了 descriptor, eve::editing::PropertySchema::find(), makeSet(), path , 以及 eve::UuidIdAdapter< Tag >::value().
被这些函数引用 makeSet().
◆ makeSet()
|
override |
Make set.
在文件 PhysicsTarget.cpp 第 100 行定义.
引用了 descriptor, eve::Result< T >::failure(), eve::editing::PropertySchema::find(), makeReset(), object, operation, path, payload, previous, eve::editing::DomainOperation::type, valid, eve::UuidIdAdapter< Tag >::value() , 以及 value.
被这些函数引用 makeReset().
◆ queryCapability()
|
override |
Query an optional target capability.
- 返回
- Borrowed pointer owned by this target, or null. @lifetime Valid until this target is destroyed or mutated.
在文件 PhysicsTarget.cpp 第 40 行定义.
◆ read()
|
overridevirtual |
◆ schema()
|
overridevirtual |
◆ snapshotValue()
| EditorValue eve::physics_editing::PhysicsColliderTarget::snapshotValue | ( | ) | const |
Capture deterministic collider content for asset/scene persistence.
在文件 PhysicsSerialization.cpp 第 17 行定义.
引用了 path, properties, root , 以及 value.
◆ targetId()
|
inlineoverridevirtual |
◆ validate()
| std::vector< EditorDiagnostic > eve::physics_editing::PhysicsColliderTarget::validate | ( | ) | const |
Report cross-property shape/body problems for inspector overlays.
在文件 PhysicsSerialization.cpp 第 54 行定义.
引用了 found, number, path, eve::PreconditionViolation, eve::editing::ruleDiagnostic(), shape, text , 以及 value.
该类的文档由以下文件生成:
- src/modules/physics/editing/PhysicsTarget.h
- src/modules/physics/editing/PhysicsSerialization.cpp
- src/modules/physics/editing/PhysicsTarget.cpp
Public 成员函数 继承自