载入中...
搜索中...
未找到
eve::stylize_editing::MeshVfxAssetTarget类 参考final

Transactional editor target for one canonical MeshVfxAsset document. @ownership Owns the authoritative asset snapshot; returned references are borrowed until mutation. @thread Editor-thread affine and not internally synchronized. @reentrancy Does not invoke callbacks. 更多...

#include <MeshVfxTarget.h>

类 eve::stylize_editing::MeshVfxAssetTarget 继承关系图:
eve::editing::EditableTargetState eve::editing::IEditableTarget eve::editing::IDomainOperationTarget eve::editing::IDomainOperationTargetStaging eve::editing::IPropertyProvider eve::editing::IEditableTarget eve::editing::IEditableTarget

Public 成员函数

 MeshVfxAssetTarget (std::string id)
 Construct a target containing a valid one-layer default asset.
 
 ~MeshVfxAssetTarget ()
 Mesh vfx asset target.
 
 MeshVfxAssetTarget (const MeshVfxAssetTarget &other)
 Mesh vfx asset target.
 
MeshVfxAssetTarget & operator= (const MeshVfxAssetTarget &other)
 Operator =.
 
TargetId targetId () const override
 Target id.
 
TargetDescriptor describe () const override
 Describe.
 
void * queryCapability (const CapabilityId &capability) override
 Queries 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 stylize::MeshVfxAsset & asset () const noexcept
 Return the authoritative parsed asset.
 
EditorValue snapshotValue () const
 Capture schema-version-one editor persistence data.
 
Result< void > loadSnapshot (const EditorValue &snapshot)
 Atomically load a persisted target 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.
 
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.
 

详细描述

Transactional editor target for one canonical MeshVfxAsset document. @ownership Owns the authoritative asset snapshot; returned references are borrowed until mutation. @thread Editor-thread affine and not internally synchronized. @reentrancy Does not invoke callbacks.

在文件 MeshVfxTarget.h 第 42 行定义.

构造及析构函数说明

◆ MeshVfxAssetTarget() [1/2]

eve::stylize_editing::MeshVfxAssetTarget::MeshVfxAssetTarget ( std::string  id)
explicit

Construct a target containing a valid one-layer default asset.

在文件 MeshVfxTarget.cpp 第 36 行定义.

引用了 eve::stylize::MeshVfxAsset::fromJson().

◆ ~MeshVfxAssetTarget()

eve::stylize_editing::MeshVfxAssetTarget::~MeshVfxAssetTarget ( )
default

Mesh vfx asset target.

◆ MeshVfxAssetTarget() [2/2]

eve::stylize_editing::MeshVfxAssetTarget::MeshVfxAssetTarget ( const MeshVfxAssetTarget &  other)

Mesh vfx asset target.

在文件 MeshVfxTarget.cpp 第 43 行定义.

成员函数说明

◆ applyDomainOperation()

Result< void > eve::stylize_editing::MeshVfxAssetTarget::applyDomainOperation ( const DomainOperation &  operation)
overridevirtual

◆ asset()

const stylize::MeshVfxAsset & eve::stylize_editing::MeshVfxAssetTarget::asset ( ) const
noexcept

Return the authoritative parsed asset.

在文件 MeshVfxTarget.cpp 第 161 行定义.

被这些函数引用 eve::stylize_editing::MeshVfxPreviewRuntime::publish().

◆ cloneDomainState()

std::unique_ptr< IDomainOperationTarget > eve::stylize_editing::MeshVfxAssetTarget::cloneDomainState ( ) const
overridevirtual

Clones domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 MeshVfxTarget.cpp 第 148 行定义.

◆ commitDomainState()

Result< void > eve::stylize_editing::MeshVfxAssetTarget::commitDomainState ( std::unique_ptr< IDomainOperationTarget >  candidate)
overridevirtual

Commits domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 MeshVfxTarget.cpp 第 152 行定义.

引用了 target.

◆ currentRevision()

eve::Result< eve::Revision > eve::stylize_editing::MeshVfxAssetTarget::currentRevision ( const SelectionSnapshot &  selection) const
overridevirtual

◆ describe()

TargetDescriptor eve::stylize_editing::MeshVfxAssetTarget::describe ( ) const
overridevirtual

◆ loadSnapshot()

Result< void > eve::stylize_editing::MeshVfxAssetTarget::loadSnapshot ( const EditorValue &  snapshot)

Atomically load a persisted target snapshot.

在文件 MeshVfxTarget.cpp 第 167 行定义.

引用了 applyDomainOperation(), eve::editing::IEditableTarget::clearDirtyRegion(), operation , 以及 eve::editing::DomainOperation::target.

◆ makeReset()

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

Make reset.

实现了 eve::editing::IPropertyProvider.

在文件 MeshVfxTarget.cpp 第 124 行定义.

引用了 makeSet() , 以及 path.

◆ makeSet()

Result< DomainOperation > eve::stylize_editing::MeshVfxAssetTarget::makeSet ( const SelectionSnapshot &  selection,
const PropertyPath &  path,
const EditorValue &  value,
PropertySetMode  mode 
) const
override

Make set.

在文件 MeshVfxTarget.cpp 第 91 行定义.

引用了 eve::stylize::MeshVfxAsset::fromJson(), operation, path, eve::editing::DomainOperation::type , 以及 value.

被这些函数引用 makeReset().

◆ operator=()

◆ queryCapability()

void * eve::stylize_editing::MeshVfxAssetTarget::queryCapability ( const CapabilityId &  capability)
override

Queries capability.

在文件 MeshVfxTarget.cpp 第 63 行定义.

引用了 eve::editing::IEditableTarget::capability().

◆ read()

PropertyReadResult eve::stylize_editing::MeshVfxAssetTarget::read ( const SelectionSnapshot &  selection,
const PropertyPath &  path 
) const
overridevirtual

Reads .

实现了 eve::editing::IPropertyProvider.

在文件 MeshVfxTarget.cpp 第 86 行定义.

引用了 path , 以及 eve::editing::Value.

◆ schema()

PropertySchema eve::stylize_editing::MeshVfxAssetTarget::schema ( const SelectionSnapshot &  selection) const
overridevirtual

Schema.

实现了 eve::editing::IPropertyProvider.

在文件 MeshVfxTarget.cpp 第 80 行定义.

◆ snapshotValue()

EditorValue eve::stylize_editing::MeshVfxAssetTarget::snapshotValue ( ) const

Capture schema-version-one editor persistence data.

在文件 MeshVfxTarget.cpp 第 163 行定义.

◆ targetId()

TargetId eve::stylize_editing::MeshVfxAssetTarget::targetId ( ) const
inlineoverridevirtual

Target id.

实现了 eve::editing::IEditableTarget.

在文件 MeshVfxTarget.h 第 58 行定义.


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