载入中...
搜索中...
未找到
eve::avatar_editor::AvatarDocumentEditor类 参考

Timeline-style controller for one authored avatar document. 更多...

#include <AvatarDocumentEditor.h>

Public 成员函数

 AvatarDocumentEditor (std::string targetId)
 Construct a seeded two-layer face with a referenced parameter.
 
 AvatarDocumentEditor (const AvatarDocumentEditor &)=delete
 
AvatarDocumentEditor & operator= (const AvatarDocumentEditor &)=delete
 
const avatar_editing::AvatarDocumentTarget & target () const noexcept
 Borrow the authoritative avatar document.
 
avatar_editing::Result< void > configureWorkspace (editor::EditorWorkspace &workspace) const
 Install Layers / Preview / Inspector / Parameters / Expressions panels.
 
avatar_editing::Result< void > selectLayer (std::string id)
 
avatar_editing::Result< void > selectParameter (std::string id)
 
avatar_editing::Result< void > selectExpression (std::string id)
 
avatar_editing::Result< void > pointerDown (float x, float y)
 
avatar_editing::Result< void > setLayerVisible (bool visible)
 
avatar_editing::Result< void > setLayerZ (int zIndex)
 
avatar_editing::Result< void > setParameterValue (double value)
 
avatar_editing::Result< void > createLayer (std::string id, std::string name)
 
avatar_editing::Result< void > deleteSelectedLayer ()
 
avatar_editing::Result< void > createParameter (std::string id, std::string name)
 
avatar_editing::Result< void > deleteSelectedParameter ()
 
avatar_editing::Result< void > createExpression (std::string id, std::string name)
 
avatar_editing::Result< void > deleteSelectedExpression ()
 
avatar_editing::Result< editor::TransactionReceipt > undo ()
 
avatar_editing::Result< editor::TransactionReceipt > redo ()
 
bool canUndo () const noexcept
 
bool canRedo () const noexcept
 Can redo.
 
std::uint64_t revision () const noexcept
 Revision.
 
std::uint64_t previewRevision () const noexcept
 Preview revision.
 
std::string kind () const
 Kind.
 
std::string selectedId () const
 Selected id.
 
std::string selectedType () const
 Selected type.
 
int layerCount () const
 Layer count.
 
std::string layerId (int index) const
 Layer id.
 
std::string layerName (int index) const
 Layer name.
 
bool layerVisible (int index) const
 Layer visible.
 
int layerZ (int index) const
 Layer z.
 
bool isLayerSelected (int index) const
 True when layer selected.
 
int previewLayerCount () const
 Preview layer count.
 
float previewX (int index) const
 Preview x.
 
float previewY (int index) const
 Preview y.
 
float previewW (int index) const
 Preview w.
 
float previewH (int index) const
 Preview h.
 
float previewR (int index) const
 Preview r.
 
float previewG (int index) const
 Preview g.
 
float previewB (int index) const
 Preview b.
 
float previewA (int index) const
 Preview a.
 
bool isPreviewSelected (int index) const
 True when preview selected.
 
std::string previewName (int index) const
 Preview name.
 
int parameterCount () const
 Parameter count.
 
std::string parameterId (int index) const
 Parameter id.
 
std::string parameterName (int index) const
 Parameter name.
 
float parameterValue (int index) const
 Parameter value.
 
float parameterMinimum (int index) const
 Parameter minimum.
 
float parameterMaximum (int index) const
 Parameter maximum.
 
bool isParameterSelected (int index) const
 True when parameter selected.
 
int expressionCount () const
 Expression count.
 
std::string expressionId (int index) const
 Expression id.
 
std::string expressionName (int index) const
 Expression name.
 
bool isExpressionSelected (int index) const
 True when expression selected.
 
int expressionChannelCount (int index) const
 Expression channel count.
 
std::string expressionChannelName (int expression, int channel) const
 Expression channel name.
 

详细描述

Timeline-style controller for one authored avatar document.

Owns the document, local undo and a CPU composite of authored layer rects. Live AvatarInstance publication stays candidate-first and is skipped until a texture resolver is attached; failed publish keeps the last successful layout.

@ownership Editor owns the document. Preview getters copy values. @threadaffinity Owner thread only. @reentrancy No unknown callbacks.

在文件 AvatarDocumentEditor.h 第 32 行定义.

构造及析构函数说明

◆ AvatarDocumentEditor() [1/2]

eve::avatar_editor::AvatarDocumentEditor::AvatarDocumentEditor ( std::string  targetId)
explicit

Construct a seeded two-layer face with a referenced parameter.

在文件 AvatarDocumentEditor.cpp 第 38 行定义.

◆ AvatarDocumentEditor() [2/2]

eve::avatar_editor::AvatarDocumentEditor::AvatarDocumentEditor ( const AvatarDocumentEditor &  )
delete

成员函数说明

◆ canRedo()

bool eve::avatar_editor::AvatarDocumentEditor::canRedo ( ) const
inlinenoexcept

Can redo.

在文件 AvatarDocumentEditor.h 第 69 行定义.

◆ canUndo()

bool eve::avatar_editor::AvatarDocumentEditor::canUndo ( ) const
inlinenoexcept

在文件 AvatarDocumentEditor.h 第 67 行定义.

◆ configureWorkspace()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::configureWorkspace ( editor::EditorWorkspace &  workspace) const

Install Layers / Preview / Inspector / Parameters / Expressions panels.

注解
Does not retain workspace.

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

引用了 eve::editor::EditorWorkspace::activatePanel(), context, id, order, eve::editor::EditorWorkspace::registerPanel(), eve::editor::EditorWorkspace::setPanelCapability(), eve::editor::EditorWorkspace::setPanelContext() , 以及 title.

◆ createExpression()

◆ createLayer()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::createLayer ( std::string  id,
std::string  name 
)

◆ createParameter()

◆ deleteSelectedExpression()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::deleteSelectedExpression ( )

◆ deleteSelectedLayer()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::deleteSelectedLayer ( )

◆ deleteSelectedParameter()

◆ expressionChannelCount()

int eve::avatar_editor::AvatarDocumentEditor::expressionChannelCount ( int  index) const

Expression channel count.

在文件 AvatarDocumentEditor.cpp 第 457 行定义.

引用了 index.

◆ expressionChannelName()

std::string eve::avatar_editor::AvatarDocumentEditor::expressionChannelName ( int  expression,
int  channel 
) const

Expression channel name.

在文件 AvatarDocumentEditor.cpp 第 461 行定义.

引用了 value.

◆ expressionCount()

int eve::avatar_editor::AvatarDocumentEditor::expressionCount ( ) const
inline

Expression count.

在文件 AvatarDocumentEditor.h 第 133 行定义.

◆ expressionId()

std::string eve::avatar_editor::AvatarDocumentEditor::expressionId ( int  index) const

Expression id.

在文件 AvatarDocumentEditor.cpp 第 445 行定义.

引用了 index.

◆ expressionName()

std::string eve::avatar_editor::AvatarDocumentEditor::expressionName ( int  index) const

Expression name.

在文件 AvatarDocumentEditor.cpp 第 449 行定义.

引用了 index.

◆ isExpressionSelected()

bool eve::avatar_editor::AvatarDocumentEditor::isExpressionSelected ( int  index) const

True when expression selected.

在文件 AvatarDocumentEditor.cpp 第 453 行定义.

引用了 index.

◆ isLayerSelected()

bool eve::avatar_editor::AvatarDocumentEditor::isLayerSelected ( int  index) const

True when layer selected.

在文件 AvatarDocumentEditor.cpp 第 374 行定义.

引用了 index , 以及 layer.

◆ isParameterSelected()

bool eve::avatar_editor::AvatarDocumentEditor::isParameterSelected ( int  index) const

True when parameter selected.

在文件 AvatarDocumentEditor.cpp 第 440 行定义.

引用了 index.

◆ isPreviewSelected()

bool eve::avatar_editor::AvatarDocumentEditor::isPreviewSelected ( int  index) const

True when preview selected.

在文件 AvatarDocumentEditor.cpp 第 411 行定义.

引用了 index.

◆ kind()

std::string eve::avatar_editor::AvatarDocumentEditor::kind ( ) const
inline

Kind.

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

◆ layerCount()

int eve::avatar_editor::AvatarDocumentEditor::layerCount ( ) const
inline

Layer count.

在文件 AvatarDocumentEditor.h 第 82 行定义.

◆ layerId()

std::string eve::avatar_editor::AvatarDocumentEditor::layerId ( int  index) const

Layer id.

在文件 AvatarDocumentEditor.cpp 第 358 行定义.

引用了 index , 以及 layer.

◆ layerName()

std::string eve::avatar_editor::AvatarDocumentEditor::layerName ( int  index) const

Layer name.

在文件 AvatarDocumentEditor.cpp 第 362 行定义.

引用了 index , 以及 layer.

◆ layerVisible()

bool eve::avatar_editor::AvatarDocumentEditor::layerVisible ( int  index) const

Layer visible.

在文件 AvatarDocumentEditor.cpp 第 366 行定义.

引用了 index , 以及 layer.

◆ layerZ()

int eve::avatar_editor::AvatarDocumentEditor::layerZ ( int  index) const

Layer z.

在文件 AvatarDocumentEditor.cpp 第 370 行定义.

引用了 index , 以及 layer.

◆ operator=()

AvatarDocumentEditor & eve::avatar_editor::AvatarDocumentEditor::operator= ( const AvatarDocumentEditor &  )
delete

◆ parameterCount()

int eve::avatar_editor::AvatarDocumentEditor::parameterCount ( ) const
inline

Parameter count.

在文件 AvatarDocumentEditor.h 第 118 行定义.

◆ parameterId()

std::string eve::avatar_editor::AvatarDocumentEditor::parameterId ( int  index) const

Parameter id.

在文件 AvatarDocumentEditor.cpp 第 420 行定义.

引用了 index.

◆ parameterMaximum()

float eve::avatar_editor::AvatarDocumentEditor::parameterMaximum ( int  index) const

Parameter maximum.

在文件 AvatarDocumentEditor.cpp 第 436 行定义.

引用了 index.

◆ parameterMinimum()

float eve::avatar_editor::AvatarDocumentEditor::parameterMinimum ( int  index) const

Parameter minimum.

在文件 AvatarDocumentEditor.cpp 第 432 行定义.

引用了 index.

◆ parameterName()

std::string eve::avatar_editor::AvatarDocumentEditor::parameterName ( int  index) const

Parameter name.

在文件 AvatarDocumentEditor.cpp 第 424 行定义.

引用了 index.

◆ parameterValue()

float eve::avatar_editor::AvatarDocumentEditor::parameterValue ( int  index) const

Parameter value.

在文件 AvatarDocumentEditor.cpp 第 428 行定义.

引用了 index.

◆ pointerDown()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::pointerDown ( float  x,
float  y 
)

在文件 AvatarDocumentEditor.cpp 第 223 行定义.

引用了 selectLayer(), x , 以及 y.

◆ previewA()

float eve::avatar_editor::AvatarDocumentEditor::previewA ( int  index) const

Preview a.

在文件 AvatarDocumentEditor.cpp 第 407 行定义.

引用了 index.

◆ previewB()

float eve::avatar_editor::AvatarDocumentEditor::previewB ( int  index) const

Preview b.

在文件 AvatarDocumentEditor.cpp 第 403 行定义.

引用了 index.

◆ previewG()

float eve::avatar_editor::AvatarDocumentEditor::previewG ( int  index) const

Preview g.

在文件 AvatarDocumentEditor.cpp 第 399 行定义.

引用了 index.

◆ previewH()

float eve::avatar_editor::AvatarDocumentEditor::previewH ( int  index) const

Preview h.

在文件 AvatarDocumentEditor.cpp 第 391 行定义.

引用了 index.

◆ previewLayerCount()

int eve::avatar_editor::AvatarDocumentEditor::previewLayerCount ( ) const
inline

Preview layer count.

在文件 AvatarDocumentEditor.h 第 95 行定义.

◆ previewName()

std::string eve::avatar_editor::AvatarDocumentEditor::previewName ( int  index) const

Preview name.

在文件 AvatarDocumentEditor.cpp 第 415 行定义.

引用了 index.

◆ previewR()

float eve::avatar_editor::AvatarDocumentEditor::previewR ( int  index) const

Preview r.

在文件 AvatarDocumentEditor.cpp 第 395 行定义.

引用了 index.

◆ previewRevision()

std::uint64_t eve::avatar_editor::AvatarDocumentEditor::previewRevision ( ) const
inlinenoexcept

Preview revision.

在文件 AvatarDocumentEditor.h 第 73 行定义.

◆ previewW()

float eve::avatar_editor::AvatarDocumentEditor::previewW ( int  index) const

Preview w.

在文件 AvatarDocumentEditor.cpp 第 387 行定义.

引用了 index.

◆ previewX()

float eve::avatar_editor::AvatarDocumentEditor::previewX ( int  index) const

Preview x.

在文件 AvatarDocumentEditor.cpp 第 379 行定义.

引用了 index.

◆ previewY()

float eve::avatar_editor::AvatarDocumentEditor::previewY ( int  index) const

Preview y.

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

引用了 index.

◆ redo()

avatar_editing::Result< editor::TransactionReceipt > eve::avatar_editor::AvatarDocumentEditor::redo ( )

◆ revision()

std::uint64_t eve::avatar_editor::AvatarDocumentEditor::revision ( ) const
inlinenoexcept

Revision.

在文件 AvatarDocumentEditor.h 第 71 行定义.

被这些函数引用 deleteSelectedLayer() , 以及 deleteSelectedParameter().

◆ selectedId()

std::string eve::avatar_editor::AvatarDocumentEditor::selectedId ( ) const
inline

Selected id.

在文件 AvatarDocumentEditor.h 第 77 行定义.

◆ selectedType()

std::string eve::avatar_editor::AvatarDocumentEditor::selectedType ( ) const
inline

Selected type.

在文件 AvatarDocumentEditor.h 第 79 行定义.

◆ selectExpression()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::selectExpression ( std::string  id)

◆ selectLayer()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::selectLayer ( std::string  id)

◆ selectParameter()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::selectParameter ( std::string  id)

◆ setLayerVisible()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::setLayerVisible ( bool  visible)

◆ setLayerZ()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::setLayerZ ( int  zIndex)

◆ setParameterValue()

avatar_editing::Result< void > eve::avatar_editor::AvatarDocumentEditor::setParameterValue ( double  value)

◆ target()

const avatar_editing::AvatarDocumentTarget & eve::avatar_editor::AvatarDocumentEditor::target ( ) const
inlinenoexcept

Borrow the authoritative avatar document.

在文件 AvatarDocumentEditor.h 第 41 行定义.

◆ undo()

avatar_editing::Result< editor::TransactionReceipt > eve::avatar_editor::AvatarDocumentEditor::undo ( )

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