载入中...
搜索中...
未找到
eve::archspace::IArchSpaceProjector类 参考abstract

Presentation adapter contract for ArchSpace documents. 更多...

#include <ArchSpaceProjector.h>

类 eve::archspace::IArchSpaceProjector 继承关系图:
eve::archspace::MeshSceneProjector eve::archspace_hd2d::Hd2dSpaceProjector eve::archspace_map::TileMapProjector

Public 成员函数

virtual ~IArchSpaceProjector ()=default
 Releases IArchSpaceProjector resources.
 
virtual const char * kind () const noexcept=0
 Stable projector kind wire name. @ownership Non-owning pointer to a static string literal; do not free. @lifetime Valid for the process lifetime.
 
virtual eve::Result< void > sync (const Document &document, std::uint64_t revision)=0
 Rebuild derived presentation from document at revision.
 
virtual void clear ()=0
 Drop derived presentation state.
 
virtual eve::Result< std::string > pickNode (Vec3, Vec3) const
 Pick a document node under a world-space ray when supported.
 

详细描述

Presentation adapter contract for ArchSpace documents.

Implementations must treat the document as read-only authority and rebuild derived state on sync. Missing optional backends are expressed by not registering a projector, not by silent no-ops inside gameplay code.

@thread Owner thread only. @reentrancy Must not invoke unknown callbacks while holding projector locks.

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

构造及析构函数说明

◆ ~IArchSpaceProjector()

virtual eve::archspace::IArchSpaceProjector::~IArchSpaceProjector ( )
virtualdefault

Releases IArchSpaceProjector resources.

成员函数说明

◆ clear()

virtual void eve::archspace::IArchSpaceProjector::clear ( )
pure virtual

◆ kind()

virtual const char * eve::archspace::IArchSpaceProjector::kind ( ) const
pure virtualnoexcept

Stable projector kind wire name. @ownership Non-owning pointer to a static string literal; do not free. @lifetime Valid for the process lifetime.

在 eve::archspace::MeshSceneProjector, eve::archspace_hd2d::Hd2dSpaceProjector , 以及 eve::archspace_map::TileMapProjector 内被实现.

◆ pickNode()

virtual eve::Result< std::string > eve::archspace::IArchSpaceProjector::pickNode ( Vec3  ,
Vec3   
) const
inlinevirtual

Pick a document node under a world-space ray when supported.

返回
Node id on hit; NotFound when nothing is hit; Unsupported when picking is unavailable.

在文件 ArchSpaceProjector.h 第 74 行定义.

引用了 eve::Diagnostic::error(), eve::Result< T >::failure() , 以及 eve::Unsupported.

◆ sync()

virtual eve::Result< void > eve::archspace::IArchSpaceProjector::sync ( const Document &  document,
std::uint64_t  revision 
)
pure virtual

Rebuild derived presentation from document at revision.

参数
documentBorrowed authority; must outlive the call.
revisionCaller-owned monotonic revision token for cache skipping.
返回
Applied on success; Rejected when inputs are invalid. @cost Full rebuild of presentation state; amortize per document revision.

在 eve::archspace_hd2d::Hd2dSpaceProjector, eve::archspace_map::TileMapProjector , 以及 eve::archspace::MeshSceneProjector 内被实现.


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