载入中...
搜索中...
未找到
eve::map_editing::TileLayerTarget类 参考final

Non-owning editable adapter for a live map tile layer. 更多...

#include <TileLayerTarget.h>

类 eve::map_editing::TileLayerTarget 继承关系图:
eve::editing::IEditableTarget eve::editing::IIntFieldTarget eve::editing::IGridTarget

Public 成员函数

 TileLayerTarget (std::string id, map::TileLayer *layer)
 Bind a live layer which must outlive this adapter.
 
editing::TargetId targetId () const override
 Target id.
 
std::uint64_t revision () const override
 Revision.
 
editing::EditRegion dirtyRegion () const override
 Dirty region.
 
void clearDirtyRegion () override
 Clears dirty region.
 
int width () const override
 Width.
 
int height () const override
 Height.
 
bool containsCell (int x, int y) const override
 True if cell.
 
int readInt (int x, int y) const override
 Reads int.
 
editing::FieldWriteStatus writeInt (int x, int y, int value) override
 Writes int.
 
map::TileLayer * layer () const
 Return the borrowed live layer.
 
- Public 成员函数 继承自 eve::editing::IEditableTarget
virtual ~IEditableTarget ()=default
 Releases IEditableTarget resources.
 
virtual TargetDescriptor describe () const
 Describe the target for tools and automation.
 
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::IGridTarget
virtual ~IGridTarget ()=default
 Releases IGridTarget resources.
 

额外继承的成员函数

- 静态 Public 成员函数 继承自 eve::editing::IIntFieldTarget
static CapabilityId editingCapabilityId ()
 Editing capability id.
 

详细描述

Non-owning editable adapter for a live map tile layer.

在文件 TileLayerTarget.h 第 17 行定义.

构造及析构函数说明

◆ TileLayerTarget()

eve::map_editing::TileLayerTarget::TileLayerTarget ( std::string  id,
map::TileLayer *  layer 
)

Bind a live layer which must outlive this adapter.

在文件 TileLayerTarget.cpp 第 9 行定义.

成员函数说明

◆ clearDirtyRegion()

void eve::map_editing::TileLayerTarget::clearDirtyRegion ( )
inlineoverridevirtual

Clears dirty region.

实现了 eve::editing::IEditableTarget.

在文件 TileLayerTarget.h 第 28 行定义.

◆ containsCell()

bool eve::map_editing::TileLayerTarget::containsCell ( int  x,
int  y 
) const
overridevirtual

True if cell.

实现了 eve::editing::IGridTarget.

在文件 TileLayerTarget.cpp 第 15 行定义.

引用了 height(), width(), x , 以及 y.

被这些函数引用 readInt() , 以及 writeInt().

◆ dirtyRegion()

editing::EditRegion eve::map_editing::TileLayerTarget::dirtyRegion ( ) const
inlineoverridevirtual

Dirty region.

实现了 eve::editing::IEditableTarget.

在文件 TileLayerTarget.h 第 26 行定义.

◆ height()

int eve::map_editing::TileLayerTarget::height ( ) const
overridevirtual

Height.

实现了 eve::editing::IGridTarget.

在文件 TileLayerTarget.cpp 第 14 行定义.

引用了 eve::map::TileLayer::getMapHeight().

被这些函数引用 containsCell().

◆ layer()

map::TileLayer * eve::map_editing::TileLayerTarget::layer ( ) const
inline

Return the borrowed live layer.

返回
Borrowed pointer owned by the caller that constructed this adapter. @lifetime Valid only while the source layer outlives this adapter.

在文件 TileLayerTarget.h 第 46 行定义.

◆ readInt()

int eve::map_editing::TileLayerTarget::readInt ( int  x,
int  y 
) const
overridevirtual

Reads int.

实现了 eve::editing::IIntFieldTarget.

在文件 TileLayerTarget.cpp 第 18 行定义.

引用了 containsCell(), eve::map::TileLayer::getTile(), x , 以及 y.

◆ revision()

std::uint64_t eve::map_editing::TileLayerTarget::revision ( ) const
overridevirtual

Revision.

实现了 eve::editing::IEditableTarget.

在文件 TileLayerTarget.cpp 第 12 行定义.

◆ targetId()

editing::TargetId eve::map_editing::TileLayerTarget::targetId ( ) const
inlineoverridevirtual

Target id.

实现了 eve::editing::IEditableTarget.

在文件 TileLayerTarget.h 第 22 行定义.

◆ width()

int eve::map_editing::TileLayerTarget::width ( ) const
overridevirtual

Width.

实现了 eve::editing::IGridTarget.

在文件 TileLayerTarget.cpp 第 13 行定义.

引用了 eve::map::TileLayer::getMapWidth().

被这些函数引用 containsCell().

◆ writeInt()

editing::FieldWriteStatus eve::map_editing::TileLayerTarget::writeInt ( int  x,
int  y,
int  value 
)
overridevirtual

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