Presentation adapter contract for ArchSpace documents. 更多...
#include <ArchSpaceProjector.h>
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()
|
virtualdefault |
Releases IArchSpaceProjector resources.
成员函数说明
◆ clear()
|
pure virtual |
Drop derived presentation state.
在 eve::archspace::MeshSceneProjector, eve::archspace_hd2d::Hd2dSpaceProjector , 以及 eve::archspace_map::TileMapProjector 内被实现.
◆ kind()
|
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()
|
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()
|
pure virtual |
Rebuild derived presentation from document at revision.
- 参数
-
document Borrowed authority; must outlive the call. revision Caller-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 内被实现.
该类的文档由以下文件生成:
- src/modules/archspace/ArchSpaceProjector.h