载入中...
搜索中...
未找到
eve::decal_editing::DecalDocumentTarget类 参考final

Stable, serializable authoring document for one projected decal. 更多...

#include <DecalTarget.h>

类 eve::decal_editing::DecalDocumentTarget 继承关系图:
eve::editing::EditableTargetState eve::editing::IEditableTarget eve::editing::IDomainOperationTarget eve::editing::IDomainOperationTargetStaging eve::editing::IPropertyProvider eve::editing::IEditableTarget eve::editing::IEditableTarget

Public 成员函数

 DecalDocumentTarget (std::string id)
 Decal 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.
 
const EditorValue * value (const std::string &path) const
 Read a renderer-neutral property by stable path.
 
std::vector< EditorDiagnostic > validate () const
 Validate projection geometry, fades, UVs and texture-channel rules.
 
EditorValue snapshotValue () const
 Capture schema-version-two decal content.
 
Result< void > loadSnapshot (const EditorValue &snapshot)
 Atomically load v4 content or migrate v1-v3 content with compatible projection defaults.
 
- 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 &region)
 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 &region)
 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 &region)
 Include a whole region and advance the revision.
 
void markDirty ()
 Mark an unknown area dirty and advance the revision.
 

详细描述

Stable, serializable authoring document for one projected decal.

在文件 DecalTarget.h 第 29 行定义.

构造及析构函数说明

◆ DecalDocumentTarget()

eve::decal_editing::DecalDocumentTarget::DecalDocumentTarget ( std::string  id)
explicit

Decal document target.

在文件 DecalTarget.cpp 第 28 行定义.

成员函数说明

◆ applyDomainOperation()

◆ cloneDomainState()

std::unique_ptr< IDomainOperationTarget > eve::decal_editing::DecalDocumentTarget::cloneDomainState ( ) const
overridevirtual

Clones domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 DecalTarget.cpp 第 68 行定义.

◆ commitDomainState()

Result< void > eve::decal_editing::DecalDocumentTarget::commitDomainState ( std::unique_ptr< IDomainOperationTarget >  candidate)
overridevirtual

Commits domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 DecalTarget.cpp 第 69 行定义.

引用了 t.

◆ currentRevision()

eve::Result< eve::Revision > eve::decal_editing::DecalDocumentTarget::currentRevision ( const SelectionSnapshot &  selection) const
overridevirtual

◆ describe()

TargetDescriptor eve::decal_editing::DecalDocumentTarget::describe ( ) const
overridevirtual

◆ loadSnapshot()

Result< void > eve::decal_editing::DecalDocumentTarget::loadSnapshot ( const EditorValue &  snapshot)

Atomically load v4 content or migrate v1-v3 content with compatible projection defaults.

在文件 DecalTarget.cpp 第 72 行定义.

引用了 applyDomainOperation(), eve::editing::IEditableTarget::clearDirtyRegion(), key, object, eve::editing::DomainOperation::payload, s, eve::editing::DomainOperation::target, eve::editing::DomainOperation::type, v , 以及 values.

◆ makeReset()

Result< DomainOperation > eve::decal_editing::DecalDocumentTarget::makeReset ( const SelectionSnapshot &  selection,
const PropertyPath &  path 
) const
overridevirtual

Make reset.

实现了 eve::editing::IPropertyProvider.

在文件 DecalTarget.cpp 第 44 行定义.

引用了 d, eve::editing::PropertySchema::find(), makeSet(), p , 以及 s.

被这些函数引用 makeSet().

◆ makeSet()

◆ queryCapability()

void * eve::decal_editing::DecalDocumentTarget::queryCapability ( const CapabilityId &  capability)
override

Query an optional target capability.

返回
Borrowed pointer owned by this target, or null. @lifetime Valid until this target is destroyed or mutated.

在文件 DecalTarget.cpp 第 32 行定义.

引用了 c.

◆ read()

PropertyReadResult eve::decal_editing::DecalDocumentTarget::read ( const SelectionSnapshot &  selection,
const PropertyPath &  path 
) const
overridevirtual

Reads .

实现了 eve::editing::IPropertyProvider.

在文件 DecalTarget.cpp 第 41 行定义.

引用了 p , 以及 s.

◆ schema()

PropertySchema eve::decal_editing::DecalDocumentTarget::schema ( const SelectionSnapshot &  selection) const
overridevirtual

Schema.

实现了 eve::editing::IPropertyProvider.

在文件 DecalTarget.cpp 第 40 行定义.

◆ snapshotValue()

EditorValue eve::decal_editing::DecalDocumentTarget::snapshotValue ( ) const

Capture schema-version-two decal content.

在文件 DecalTarget.cpp 第 71 行定义.

◆ targetId()

TargetId eve::decal_editing::DecalDocumentTarget::targetId ( ) const
inlineoverridevirtual

Target id.

实现了 eve::editing::IEditableTarget.

在文件 DecalTarget.h 第 38 行定义.

被这些函数引用 eve::decal_editing::DecalGizmoPreviewService::build().

◆ validate()

std::vector< EditorDiagnostic > eve::decal_editing::DecalDocumentTarget::validate ( ) const

Validate projection geometry, fades, UVs and texture-channel rules.

在文件 DecalTarget.cpp 第 70 行定义.

引用了 blend, d, n, normal, proj, uv, v , 以及 value.

被这些函数引用 eve::decal_editing::DecalGizmoPreviewService::build() , 以及 eve::decal_editing::DecalRuntimeBinding::publish().

◆ value()

const EditorValue * eve::decal_editing::DecalDocumentTarget::value ( const std::string &  path) const

Read a renderer-neutral property by stable path.

返回
Borrowed pointer into this target, or null. @lifetime Valid until the target is mutated or destroyed.

在文件 DecalTarget.cpp 第 42 行定义.

引用了 p.

被这些函数引用 eve::decal_editing::DecalGizmoPreviewService::build() , 以及 eve::decal_editing::DecalRuntimeBinding::publish().


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