载入中...
搜索中...
未找到
eve::archspace 命名空间参考

类

class  ArchSpace
 Runtime ArchSpace module entry used for profile wiring and script discovery. 更多...
 
struct  CatalogEntry
 Built-in catalog entry resolved from an item catalogId. 更多...
 
struct  CatalogPart
 One parametric furniture part in catalog-local metres (Y-up). 更多...
 
struct  CellGridImport
 Flat row-major cell grid in level XZ (x grows with column, z with row). 更多...
 
class  Document
 Authoritative ArchSpace document (Pascal-like node graph). 更多...
 
struct  GridProjection
 Renderer-neutral occupancy grid rebuilt from an ArchSpace level. 更多...
 
class  IArchSpaceProjector
 Presentation adapter contract for ArchSpace documents. 更多...
 
struct  MeshArrays
 Interleaved GPU-upload arrays derived from MeshBake. 更多...
 
struct  MeshBake
 Renderer-neutral triangle mesh rebuilt from the document. 更多...
 
class  MeshSceneProjector
 Mesh bake projector for 3D / scene hosts. 更多...
 
struct  Node
 One authored architectural node. Only fields for the active kind are meaningful. 更多...
 
struct  SpaceAnchor
 Read-only item/anchor view. 更多...
 
struct  SpacePortal
 Read-only portal view from Opening or Portal nodes. 更多...
 
class  SpaceQuery
 Presentation-agnostic query facade over an ArchSpace document. 更多...
 
struct  SpaceRegion
 Read-only region view projected from Zone nodes. 更多...
 
struct  Vec2
 Metres on the level XZ plane. 更多...
 
struct  Vec3
 Metres in world/level space. 更多...
 

类型定义

using PassageMask = std::uint8_t
 Bitmask of PassageMode values.
 

枚举

enum class  ImportCellKind : std::uint8_t {
  Empty = 0 , Floor = 1 , Wall = 2 , Portal = 3 ,
  Solid = 4
}
 Raster cell kinds accepted by dungeon/cave grid import (procgen-facing). 更多...
 
enum class  GridCellKind : std::uint8_t {
  Empty = 0 , Floor , Wall , Portal ,
  Solid
}
 Semantic cell kind for grid projections (tilemap / HD2D hosts). 更多...
 
enum class  NodeKind : std::uint8_t {
  Site = 0 , Building , Level , Wall ,
  Slab , Zone , Item , Opening ,
  Portal
}
 Stable node kind discriminator for the architectural document. 更多...
 
enum class  OpeningKind : std::uint8_t { Door = 0 , Window }
 Opening semantic used by doors and windows hosted on walls. 更多...
 
enum class  TopologyKind : std::uint8_t { Architectural = 0 , Dungeon , Cave }
 Document topology dialect. Storage stays one node graph; semantics and authoring helpers differ by dialect. 更多...
 
enum class  PassageMode : std::uint8_t { Walk = 1 , Crawl = 2 , Fly = 4 , Swim = 8 }
 Passage capability bits for portals (walk/crawl/fly/swim). 更多...
 

函数

 Module_IMPL (ArchSpace, new ArchSpace())
 
std::optional< CatalogEntry > lookupCatalog (std::string_view catalogId)
 Resolve a built-in furniture catalog entry.
 
std::vector< std::string > listCatalogIds ()
 Stable list of built-in catalog ids for tools and inspector UIs.
 
void appendCatalogItem (MeshBake &bake, const std::string &itemId, const std::string &catalogId, const Vec3 &position, double yawDegrees)
 Append yaw-oriented catalog geometry into a mesh bake.
 
void appendWallWithOpenings (MeshBake &bake, const Node &wall, double elevation, const std::vector< const Node * > &openings)
 Bake one wall with merged opening cavities and explicit reveal liners.
 
eve::Result< void > importCellGrid (Document &document, const std::string &levelId, const CellGridImport &grid, const std::string &idPrefix="cell")
 Import a dungeon/cave occupancy grid into an existing level.
 
eve::Result< GridProjection > bakeGridProjection (const Document &document, const std::string &levelId, double cellSize, const std::string &orientation="orthogonal")
 Rasterize one level into a grid for ortho/iso/HD2D hosts.
 
MeshArrays toMeshArrays (const MeshBake &bake)
 Convert a MeshBake into flat arrays with per-triangle normals.
 
const char * nodeKindName (NodeKind kind) noexcept
 Stable wire name for a node kind. @ownership Non-owning pointer to a static string literal; do not free. @lifetime Valid for the process lifetime.
 
eve::Result< NodeKind > parseNodeKind (const std::string &text) noexcept
 Parse a node kind wire name.
 
const char * openingKindName (OpeningKind kind) noexcept
 Stable wire name for an opening kind. @ownership Non-owning pointer to a static string literal; do not free. @lifetime Valid for the process lifetime.
 
eve::Result< OpeningKind > parseOpeningKind (const std::string &text) noexcept
 Parse an opening kind wire name.
 
const char * topologyKindName (TopologyKind kind) noexcept
 Stable wire name for a topology kind. @ownership Non-owning pointer to a static string literal; do not free. @lifetime Valid for the process lifetime.
 
eve::Result< TopologyKind > parseTopologyKind (const std::string &text) noexcept
 Parse a topology kind wire name.
 

变量

constexpr PassageMask kPassageWalk = static_cast<PassageMask>(PassageMode::Walk)
 Default walkable mask.
 

类型定义说明

◆ PassageMask

using eve::archspace::PassageMask = typedef std::uint8_t

Bitmask of PassageMode values.

在文件 ArchSpaceTypes.h 第 44 行定义.

枚举类型说明

◆ GridCellKind

enum class eve::archspace::GridCellKind : std::uint8_t
strong

Semantic cell kind for grid projections (tilemap / HD2D hosts).

枚举值
Empty 
Floor 
Wall 
Portal 
Solid 

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

◆ ImportCellKind

enum class eve::archspace::ImportCellKind : std::uint8_t
strong

Raster cell kinds accepted by dungeon/cave grid import (procgen-facing).

Values align with GridCellKind so a baked projection can round-trip into import.

枚举值
Empty 
Floor 
Wall 
Portal 
Solid 

在文件 ArchSpaceImport.h 第 20 行定义.

◆ NodeKind

enum class eve::archspace::NodeKind : std::uint8_t
strong

Stable node kind discriminator for the architectural document.

枚举值
Site 
Building 
Level 
Wall 
Slab 
Zone 
Item 
Opening 
Portal 

Level-hosted portal connecting two regions (dungeon/cave or free openings).

在文件 ArchSpaceTypes.h 第 13 行定义.

◆ OpeningKind

enum class eve::archspace::OpeningKind : std::uint8_t
strong

Opening semantic used by doors and windows hosted on walls.

枚举值
Door 
Window 

在文件 ArchSpaceTypes.h 第 27 行定义.

◆ PassageMode

enum class eve::archspace::PassageMode : std::uint8_t
strong

Passage capability bits for portals (walk/crawl/fly/swim).

枚举值
Walk 
Crawl 
Fly 
Swim 

在文件 ArchSpaceTypes.h 第 36 行定义.

◆ TopologyKind

enum class eve::archspace::TopologyKind : std::uint8_t
strong

Document topology dialect. Storage stays one node graph; semantics and authoring helpers differ by dialect.

枚举值
Architectural 
Dungeon 
Cave 

在文件 ArchSpaceTypes.h 第 33 行定义.

函数说明

◆ appendCatalogItem()

void eve::archspace::appendCatalogItem ( MeshBake &  bake,
const std::string &  itemId,
const std::string &  catalogId,
const Vec3 &  position,
double  yawDegrees 
)

Append yaw-oriented catalog geometry into a mesh bake.

参数
bakeDestination mesh.
itemIdStable item node id used as the primitive id prefix.
catalogIdCatalog key; unknown ids emit a default marker box.
positionWorld/level position of the item origin.
yawDegreesRotation about +Y in degrees.

在文件 ArchSpaceCatalog.cpp 第 120 行定义.

引用了 c, center, itemId, lookupCatalog(), position, s , 以及 eve::archspace::Vec3::x.

被这些函数引用 eve::archspace::Document::bakeMesh().

◆ appendWallWithOpenings()

void eve::archspace::appendWallWithOpenings ( MeshBake &  bake,
const Node &  wall,
double  elevation,
const std::vector< const Node * > &  openings 
)

Bake one wall with merged opening cavities and explicit reveal liners.

Overlapping openings are merged along the wall parameter before carving. Reveal primitives use *.reveal.* ids so hosts can distinguish cavity liners from structure. This is a parametric boolean (segment solids + reveal faces), not IFC/CSG BREP.

在文件 ArchSpaceCatalog.cpp 第 135 行定义.

引用了 a, b, bottom, cursor, dir, Door, elevation, eve::archspace::Node::end, eve::archspace::Node::height, id, eve::archspace::Node::id, kind, Opening, eve::archspace::Node::start, eve::archspace::Node::thickness, top, Window, eve::archspace::Vec2::x , 以及 eve::archspace::Vec2::z.

被这些函数引用 eve::archspace::Document::bakeMesh().

◆ bakeGridProjection()

EVENGINE_API_WORLD eve::Result< GridProjection > eve::archspace::bakeGridProjection ( const Document &  document,
const std::string &  levelId,
double  cellSize,
const std::string &  orientation = "orthogonal" 
)

Rasterize one level into a grid for ortho/iso/HD2D hosts.

Floor cells come from Zone polygons; Wall from wall segments; Portal from openings and level portals. Orientation is recorded as metadata only — hosts apply map TileLayer projection separately.

参数
documentBorrowed authority.
levelIdLevel to rasterize.
cellSizeMetres per cell; must be finite and > 0.
orientationWire hint ("orthogonal" or "isometric").
返回
Grid on success; InvalidArgument when level/cellSize is invalid. @cost O(cells * regions + wall samples); amortize per document revision.

在文件 ArchSpaceProjector.cpp 第 61 行定义.

引用了 count, Empty, eve::archspace::Node::end, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::archspace::Document::find(), Floor, eve::ui::WidgetDesc::id, idx, eve::InvalidArgument, Level, level, mid, node, eve::archspace::Document::nodes(), eve::NotFound, Opening, p, eve::archspace::Node::parentId, Portal, region, eve::archspace::Node::start, eve::Result< T >::success(), Wall, x, eve::archspace::Vec2::x, z, eve::archspace::Vec2::z , 以及 Zone.

被这些函数引用 eve::archspace_map::TileMapProjector::sync().

◆ importCellGrid()

EVENGINE_API_WORLD eve::Result< void > eve::archspace::importCellGrid ( Document &  document,
const std::string &  levelId,
const CellGridImport &  grid,
const std::string &  idPrefix = "cell" 
)

Import a dungeon/cave occupancy grid into an existing level.

Flood-fills Floor cells into Region zones (AABB polygons). Portal cells are bridges — they do not join regions during flood fill — and become Portal nodes when they touch two distinct Floor regions. Sets document topology to Dungeon when currently Architectural.

Does not depend on procgen / map; callers feed cells from any generator.

参数
documentMutated in place; on failure the previous state is restored.
levelIdExisting Level node id.
gridRow-major cells; size must equal width*height.
idPrefixPrefix for generated region/portal ids (non-empty).
返回
Applied on success; InvalidArgument/NotFound on bad input. @cost O(cells) flood fill + portal scan; amortize per imported layout.

在文件 ArchSpaceImport.cpp 第 20 行定义.

引用了 a, eve::Applied, Architectural, b, created, eve::archspace::Document::createPortal(), eve::archspace::Document::createRegion(), cx, d, Dungeon, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::archspace::Document::find(), first, idx, eve::InvalidArgument, kPassageWalk, label, Level, level, eve::NotFound, nx, nz, Portal, position, q, regionCount, second, eve::archspace::Document::setTopology(), eve::Status::success(), eve::Result< T >::success(), eve::archspace::Document::topology(), topology, x , 以及 z.

◆ listCatalogIds()

EVENGINE_API_WORLD std::vector< std::string > eve::archspace::listCatalogIds ( )

Stable list of built-in catalog ids for tools and inspector UIs.

在文件 ArchSpaceCatalog.cpp 第 112 行定义.

引用了 ids , 以及 size.

◆ lookupCatalog()

EVENGINE_API_WORLD std::optional< CatalogEntry > eve::archspace::lookupCatalog ( std::string_view  catalogId)

Resolve a built-in furniture catalog entry.

返回
Entry when known; empty optional for unknown ids (bake falls back to a marker).

在文件 ArchSpaceCatalog.cpp 第 106 行定义.

引用了 end.

被这些函数引用 appendCatalogItem().

◆ Module_IMPL()

eve::archspace::Module_IMPL ( ArchSpace  ,
new   ArchSpace() 
)

◆ nodeKindName()

const char * eve::archspace::nodeKindName ( NodeKind  kind)
inlinenoexcept

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

在文件 ArchSpaceTypes.h 第 208 行定义.

引用了 Building, Item, kind, Level, Opening, Portal, Site, Slab, Wall , 以及 Zone.

被这些函数引用 eve::archspace_editing::ArchSpaceDocumentTarget::schema().

◆ openingKindName()

const char * eve::archspace::openingKindName ( OpeningKind  kind)
inlinenoexcept

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

在文件 ArchSpaceTypes.h 第 246 行定义.

引用了 kind , 以及 Window.

被这些函数引用 eve::archspace_editing::ArchSpaceDocumentTarget::gizmo().

◆ parseNodeKind()

eve::Result< NodeKind > eve::archspace::parseNodeKind ( const std::string &  text)
inlinenoexcept

Parse a node kind wire name.

返回
Parsed kind, or InvalidArgument when the text is unknown.

在文件 ArchSpaceTypes.h 第 227 行定义.

引用了 Building, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, Item, Level, Opening, Portal, Site, Slab, eve::Result< T >::success(), text, Wall , 以及 Zone.

◆ parseOpeningKind()

eve::Result< OpeningKind > eve::archspace::parseOpeningKind ( const std::string &  text)
inlinenoexcept

Parse an opening kind wire name.

返回
Parsed kind, or InvalidArgument when the text is unknown.

在文件 ArchSpaceTypes.h 第 254 行定义.

引用了 Door, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success(), text , 以及 Window.

◆ parseTopologyKind()

eve::Result< TopologyKind > eve::archspace::parseTopologyKind ( const std::string &  text)
inlinenoexcept

Parse a topology kind wire name.

返回
Parsed kind, or InvalidArgument when the text is unknown.

在文件 ArchSpaceTypes.h 第 280 行定义.

引用了 Architectural, Cave, Dungeon, eve::Diagnostic::error(), eve::Result< T >::failure(), eve::InvalidArgument, eve::Result< T >::success() , 以及 text.

◆ toMeshArrays()

MeshArrays eve::archspace::toMeshArrays ( const MeshBake &  bake)
inline

Convert a MeshBake into flat arrays with per-triangle normals.

在文件 ArchSpaceTypes.h 第 161 行定义.

引用了 a, b, c, i0, i1, i2, idx, eve::archspace::MeshBake::indices, n, out, p, eve::archspace::MeshBake::positions , 以及 eve::archspace::MeshArrays::positions.

被这些函数引用 eve::archspace::Document::bakeMeshArrays().

◆ topologyKindName()

const char * eve::archspace::topologyKindName ( TopologyKind  kind)
inlinenoexcept

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

在文件 ArchSpaceTypes.h 第 267 行定义.

引用了 Architectural, Cave, Dungeon , 以及 kind.

变量说明

◆ kPassageWalk

constexpr PassageMask eve::archspace::kPassageWalk = static_cast<PassageMask>(PassageMode::Walk)
inlineconstexpr

Default walkable mask.

在文件 ArchSpaceTypes.h 第 47 行定义.

被这些函数引用 importCellGrid().