载入中...
搜索中...
未找到
eve::avatar_editing::AvatarDocumentTarget类 参考final

Revisioned image/Live2D/VRoid Avatar authoring asset. 更多...

#include <AvatarTarget.h>

类 eve::avatar_editing::AvatarDocumentTarget 继承关系图:
eve::editing::EditableTargetState eve::editing::IEditableTarget eve::editing::IDomainOperationTarget eve::editing::IDomainOperationTargetStaging eve::editing::IPropertyProvider eve::editing::IEditableTarget eve::editing::IEditableTarget

Public 成员函数

 AvatarDocumentTarget (std::string id)
 Avatar document target.
 
TargetId targetId () const override
 Target id.
 
TargetDescriptor describe () const override
 Describe.
 
void * queryCapability (const CapabilityId &) override
 Query an optional stable editing capability.
 
Result< void > applyDomainOperation (const DomainOperation &) override
 Applies domain operation.
 
std::unique_ptr< IDomainOperationTarget > cloneDomainState () const override
 Clones domain state.
 
Result< void > commitDomainState (std::unique_ptr< IDomainOperationTarget >) override
 Commits domain state.
 
eve::Result< eve::Revision > currentRevision (const SelectionSnapshot &) const override
 Current revision.
 
PropertySchema schema (const SelectionSnapshot &) const override
 Schema.
 
PropertyReadResult read (const SelectionSnapshot &, const PropertyPath &) const override
 Reads .
 
Result< DomainOperation > makeSet (const SelectionSnapshot &, const PropertyPath &, const EditorValue &, PropertySetMode) const override
 Make set.
 
Result< DomainOperation > makeReset (const SelectionSnapshot &, const PropertyPath &) const override
 Make reset.
 
Result< DomainOperation > makeSetSource (std::string kind, std::string asset) const
 Change backend kind and model source.
 
Result< DomainOperation > makeCreateLayer (const AvatarLayerValue &) const
 Make create layer.
 
Result< DomainOperation > makeDeleteLayer (const ObjectId &) const
 Make delete layer.
 
Result< DomainOperation > makeCreateParameter (const AvatarParameterValue &) const
 Make create parameter.
 
Result< DomainOperation > makeDeleteParameter (const ObjectId &) const
 Make delete parameter.
 
Result< DomainOperation > makeCreateExpression (const AvatarExpressionValue &) const
 Make create expression.
 
Result< DomainOperation > makeDeleteExpression (const ObjectId &) const
 Make delete expression.
 
const std::string & kind () const
 Kind.
 
const std::string & sourceAsset () const
 Source asset.
 
const std::vector< AvatarLayerValue > & layers () const
 Layers.
 
const std::vector< AvatarParameterValue > & parameters () const
 Parameters.
 
const std::vector< AvatarExpressionValue > & expressions () const
 Expressions.
 
std::vector< EditorDiagnostic > validate () const
 Validate.
 
EditorValue snapshotValue () const
 Snapshot value.
 
Result< void > loadSnapshot (const EditorValue &)
 Loads 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 &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.
 

详细描述

Revisioned image/Live2D/VRoid Avatar authoring asset.

在文件 AvatarTarget.h 第 75 行定义.

构造及析构函数说明

◆ AvatarDocumentTarget()

eve::avatar_editing::AvatarDocumentTarget::AvatarDocumentTarget ( std::string  id)
explicit

Avatar document target.

在文件 AvatarTarget.cpp 第 136 行定义.

成员函数说明

◆ applyDomainOperation()

◆ cloneDomainState()

std::unique_ptr< IDomainOperationTarget > eve::avatar_editing::AvatarDocumentTarget::cloneDomainState ( ) const
overridevirtual

Clones domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 AvatarTarget.cpp 第 482 行定义.

◆ commitDomainState()

Result< void > eve::avatar_editing::AvatarDocumentTarget::commitDomainState ( std::unique_ptr< IDomainOperationTarget >  c)
overridevirtual

Commits domain state.

实现了 eve::editing::IDomainOperationTargetStaging.

在文件 AvatarTarget.cpp 第 485 行定义.

引用了 c , 以及 t.

◆ currentRevision()

eve::Result< eve::Revision > eve::avatar_editing::AvatarDocumentTarget::currentRevision ( const SelectionSnapshot &  s) const
overridevirtual

◆ describe()

TargetDescriptor eve::avatar_editing::AvatarDocumentTarget::describe ( ) const
overridevirtual

◆ expressions()

const std::vector< AvatarExpressionValue > & eve::avatar_editing::AvatarDocumentTarget::expressions ( ) const
inline

◆ kind()

const std::string & eve::avatar_editing::AvatarDocumentTarget::kind ( ) const
inline

◆ layers()

◆ loadSnapshot()

Result< void > eve::avatar_editing::AvatarDocumentTarget::loadSnapshot ( const EditorValue &  s)

◆ makeCreateExpression()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeCreateExpression ( const AvatarExpressionValue &  v) const

Make create expression.

在文件 AvatarTarget.cpp 第 363 行定义.

引用了 c, v , 以及 x.

被这些函数引用 eve::avatar_editor::AvatarDocumentEditor::createExpression().

◆ makeCreateLayer()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeCreateLayer ( const AvatarLayerValue &  v) const

Make create layer.

在文件 AvatarTarget.cpp 第 310 行定义.

引用了 c, v , 以及 x.

被这些函数引用 eve::avatar_editor::AvatarDocumentEditor::createLayer().

◆ makeCreateParameter()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeCreateParameter ( const AvatarParameterValue &  v) const

Make create parameter.

在文件 AvatarTarget.cpp 第 336 行定义.

引用了 c, v , 以及 x.

被这些函数引用 eve::avatar_editor::AvatarDocumentEditor::createParameter().

◆ makeDeleteExpression()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeDeleteExpression ( const ObjectId &  id) const

Make delete expression.

在文件 AvatarTarget.cpp 第 375 行定义.

引用了 c , 以及 v.

被这些函数引用 eve::avatar_editor::AvatarDocumentEditor::deleteSelectedExpression().

◆ makeDeleteLayer()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeDeleteLayer ( const ObjectId &  id) const

Make delete layer.

在文件 AvatarTarget.cpp 第 322 行定义.

引用了 c, name , 以及 v.

被这些函数引用 eve::avatar_editor::AvatarDocumentEditor::deleteSelectedLayer().

◆ makeDeleteParameter()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeDeleteParameter ( const ObjectId &  id) const

Make delete parameter.

在文件 AvatarTarget.cpp 第 348 行定义.

引用了 c, name , 以及 v.

被这些函数引用 eve::avatar_editor::AvatarDocumentEditor::deleteSelectedParameter().

◆ makeReset()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeReset ( const SelectionSnapshot &  s,
const PropertyPath &  p 
) const
overridevirtual

Make reset.

实现了 eve::editing::IPropertyProvider.

在文件 AvatarTarget.cpp 第 294 行定义.

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

被这些函数引用 makeSet().

◆ makeSet()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeSet ( const SelectionSnapshot &  s,
const PropertyPath &  p,
const EditorValue &  value,
PropertySetMode  mode 
) const
overridevirtual

◆ makeSetSource()

Result< DomainOperation > eve::avatar_editing::AvatarDocumentTarget::makeSetSource ( std::string  kind,
std::string  asset 
) const

Change backend kind and model source.

在文件 AvatarTarget.cpp 第 301 行定义.

引用了 kind().

◆ parameters()

const std::vector< AvatarParameterValue > & eve::avatar_editing::AvatarDocumentTarget::parameters ( ) const
inline

◆ queryCapability()

void * eve::avatar_editing::AvatarDocumentTarget::queryCapability ( const CapabilityId &  c)
overridevirtual

Query an optional stable editing capability.

返回
Borrowed pointer owned by this target, or null when unsupported. @lifetime Valid until this target is destroyed or the capability is explicitly invalidated.

重载 eve::editing::IEditableTarget .

在文件 AvatarTarget.cpp 第 144 行定义.

引用了 c , 以及 eve::editing::IPropertyProvider::editingCapabilityId().

◆ read()

PropertyReadResult eve::avatar_editing::AvatarDocumentTarget::read ( const SelectionSnapshot &  s,
const PropertyPath &  p 
) const
overridevirtual

Reads .

实现了 eve::editing::IPropertyProvider.

在文件 AvatarTarget.cpp 第 190 行定义.

引用了 p, s, schema(), v, value , 以及 x.

◆ schema()

PropertySchema eve::avatar_editing::AvatarDocumentTarget::schema ( const SelectionSnapshot &  s) const
overridevirtual

◆ snapshotValue()

EditorValue eve::avatar_editing::AvatarDocumentTarget::snapshotValue ( ) const

Snapshot value.

在文件 AvatarTarget.cpp 第 493 行定义.

◆ sourceAsset()

const std::string & eve::avatar_editing::AvatarDocumentTarget::sourceAsset ( ) const
inline

Source asset.

在文件 AvatarTarget.h 第 127 行定义.

被这些函数引用 eve::avatar_editing::AvatarDocumentRuntime::publish().

◆ targetId()

TargetId eve::avatar_editing::AvatarDocumentTarget::targetId ( ) const
inlineoverridevirtual

Target id.

实现了 eve::editing::IEditableTarget.

在文件 AvatarTarget.h 第 84 行定义.

◆ validate()

std::vector< EditorDiagnostic > eve::avatar_editing::AvatarDocumentTarget::validate ( ) const

Validate.

在文件 AvatarTarget.cpp 第 383 行定义.

引用了 channels, d, ids, n, name, v , 以及 value.

被这些函数引用 eve::avatar_editing::AvatarDocumentRuntime::publish().


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