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

Serializable ordered style recipe with dynamic parameter Inspector. 更多...

#include <StylizeTarget.h>

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

Public 成员函数

 StylizeRecipeTarget (std::string id)
 Stylize recipe 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 > makeCreate (const ObjectId &id, const std::string &style) const
 Plan insertion of a known style under a stable pass ID.
 
Result< DomainOperation > makeDelete (const ObjectId &id) const
 Plan removal of one pass.
 
Result< DomainOperation > makeMove (const ObjectId &id, std::size_t index) const
 Plan stable reordering by destination index.
 
std::vector< StylizePassValue > passes () const
 Return ordered immutable pass values.
 
std::vector< EditorDiagnostic > validate () const
 Validate style existence, stage compatibility, parameters and budgets.
 
EditorValue snapshotValue () const
 Capture schema-version-one ordered recipe.
 
Result< void > loadSnapshot (const EditorValue &snapshot)
 Atomically load and validate a persisted recipe.
 
- 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.
 

详细描述

Serializable ordered style recipe with dynamic parameter Inspector.

在文件 StylizeTarget.h 第 63 行定义.

构造及析构函数说明

◆ StylizeRecipeTarget()

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

Stylize recipe target.

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

成员函数说明

◆ applyDomainOperation()

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

◆ cloneDomainState()

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

Clones domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 StylizeTarget.cpp 第 252 行定义.

◆ commitDomainState()

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

Commits domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 StylizeTarget.cpp 第 255 行定义.

引用了 t.

◆ currentRevision()

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

◆ describe()

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

◆ loadSnapshot()

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

◆ makeCreate()

Result< DomainOperation > eve::stylize_editing::StylizeRecipeTarget::makeCreate ( const ObjectId &  id,
const std::string &  style 
) const

Plan insertion of a known style under a stable pass ID.

在文件 StylizeTarget.cpp 第 193 行定义.

引用了 id , 以及 eve::stylize::isKnownStyle().

◆ makeDelete()

Result< DomainOperation > eve::stylize_editing::StylizeRecipeTarget::makeDelete ( const ObjectId &  id) const

Plan removal of one pass.

在文件 StylizeTarget.cpp 第 205 行定义.

◆ makeMove()

Result< DomainOperation > eve::stylize_editing::StylizeRecipeTarget::makeMove ( const ObjectId &  id,
std::size_t  index 
) const

Plan stable reordering by destination index.

在文件 StylizeTarget.cpp 第 214 行定义.

引用了 index.

◆ makeReset()

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

Make reset.

实现了 eve::editing::IPropertyProvider.

在文件 StylizeTarget.cpp 第 179 行定义.

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

被这些函数引用 makeSet().

◆ makeSet()

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

Make set.

在文件 StylizeTarget.cpp 第 153 行定义.

引用了 d, eve::editing::PropertySchema::find(), makeReset(), p, path, s, schema() , 以及 value.

被这些函数引用 makeReset().

◆ passes()

std::vector< StylizePassValue > eve::stylize_editing::StylizeRecipeTarget::passes ( ) const

Return ordered immutable pass values.

在文件 StylizeTarget.cpp 第 263 行定义.

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

◆ queryCapability()

void * eve::stylize_editing::StylizeRecipeTarget::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.

在文件 StylizeTarget.cpp 第 77 行定义.

引用了 c.

◆ read()

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

Reads .

实现了 eve::editing::IPropertyProvider.

在文件 StylizeTarget.cpp 第 111 行定义.

引用了 d, eve::stylize::findStyleParameter(), found, name, p, path, s, schema(), size , 以及 value.

◆ schema()

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

◆ snapshotValue()

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

Capture schema-version-one ordered recipe.

在文件 StylizeTarget.cpp 第 297 行定义.

◆ targetId()

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

Target id.

实现了 eve::editing::IEditableTarget.

在文件 StylizeTarget.h 第 72 行定义.

◆ validate()

std::vector< EditorDiagnostic > eve::stylize_editing::StylizeRecipeTarget::validate ( ) const

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