载入中...
搜索中...
未找到
ArchSpaceProjector.h
浏览该文件的文档.
65 [[nodiscard]] virtual eve::Result<void> sync(const Document& document, std::uint64_t revision) = 0;
74 [[nodiscard]] virtual eve::Result<std::string> pickNode(Vec3 /*rayOrigin*/, Vec3 /*rayDir*/) const {
Move-only, checked operation results for the common layer.
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Authoritative ArchSpace document (Pascal-like node graph).
Definition ArchSpaceDocument.h:26
Presentation adapter contract for ArchSpace documents.
Definition ArchSpaceProjector.h:46
virtual const char * kind() const noexcept=0
Stable projector kind wire name. @ownership Non-owning pointer to a static string literal; do not fre...
virtual eve::Result< std::string > pickNode(Vec3, Vec3) const
Pick a document node under a world-space ray when supported.
Definition ArchSpaceProjector.h:74
virtual eve::Result< void > sync(const Document &document, std::uint64_t revision)=0
Rebuild derived presentation from document at revision.
virtual ~IArchSpaceProjector()=default
Releases IArchSpaceProjector resources.
Mesh bake projector for 3D / scene hosts.
Definition ArchSpaceProjector.h:86
const MeshBake & mesh() const noexcept
Last baked mesh; empty after clear or before the first successful sync. @ownership Borrowed from this...
Definition ArchSpaceProjector.h:107
MeshSceneProjector()=default
Mesh scene projector.
std::uint64_t revision() const noexcept
Revision last successfully synced; 0 before the first sync.
Definition ArchSpaceProjector.h:110
const char * kind() const noexcept override
Stable projector kind wire name. @ownership Non-owning pointer to a static string literal; do not fre...
Definition ArchSpaceProjector.h:96
Definition ArchSpace.cpp:14
GridCellKind
Semantic cell kind for grid projections (tilemap / HD2D hosts).
Definition ArchSpaceProjector.h:16
eve::Result< GridProjection > bakeGridProjection(const Document &document, const std::string &levelId, double cellSize, const std::string &orientation)
Rasterize one level into a grid for ortho/iso/HD2D hosts.
Definition ArchSpaceProjector.cpp:61
@ Unsupported
Definition Container.h:602
Renderer-neutral occupancy grid rebuilt from an ArchSpace level.
Definition ArchSpaceProjector.h:23
std::vector< GridCellKind > cells
Definition ArchSpaceProjector.h:31
std::vector< std::string > regionIds
Region id per cell (empty when none). Parallel to cells.
Definition ArchSpaceProjector.h:33
Renderer-neutral triangle mesh rebuilt from the document.
Definition ArchSpaceTypes.h:133