载入中...
搜索中...
未找到
eve::grid::GridConfig结构体 参考

Grid shape, cell metrics, origin, and placement plane. Pure data; use GridProjection helpers for world/cell conversion. 更多...

#include <GridConfig.h>

静态 Public 成员函数

static const char * layoutName (GridLayout l)
 Stable string name for a layout enum value.
 
static GridLayout layoutFromName (const std::string &name)
 Parse a layout name; unknown names fall back to Rectangle.
 
static const char * planeName (GridPlane p)
 Stable string name for a plane enum value.
 
static GridPlane planeFromName (const std::string &name)
 Parse a plane name; unknown names fall back to XY.
 

Public 属性

GridLayout layout = GridLayout::Rectangle
 
GridPlane plane = GridPlane::XY
 
float cellW = 32.f
 
float cellH = 32.f
 
float cellGapX = 0.f
 
float cellGapY = 0.f
 
float originX = 0.f
 
float originY = 0.f
 
StaggerAxis staggerAxis = StaggerAxis::Y
 
StaggerIndex staggerIndex = StaggerIndex::Odd
 
float hexSideLength = 0.f
 

详细描述

Grid shape, cell metrics, origin, and placement plane. Pure data; use GridProjection helpers for world/cell conversion.

在文件 GridConfig.h 第 34 行定义.

成员函数说明

◆ layoutFromName()

GridLayout eve::grid::GridConfig::layoutFromName ( const std::string &  name)
static

Parse a layout name; unknown names fall back to Rectangle.

在文件 GridConfig.cpp 第 21 行定义.

引用了 eve::grid::Hexagon, eve::grid::Isometric, eve::grid::IsometricZAsY, name, eve::grid::Rectangle , 以及 eve::grid::Staggered.

被这些函数引用 eve::building::PlacementWorld::setGridLayout().

◆ layoutName()

const char * eve::grid::GridConfig::layoutName ( GridLayout  l)
static

Stable string name for a layout enum value.

在文件 GridConfig.cpp 第 5 行定义.

引用了 eve::grid::Hexagon, eve::grid::Isometric, eve::grid::IsometricZAsY, eve::grid::Rectangle , 以及 eve::grid::Staggered.

被这些函数引用 eve::building::PlacementWorld::getGridLayoutName().

◆ planeFromName()

GridPlane eve::grid::GridConfig::planeFromName ( const std::string &  name)
static

Parse a plane name; unknown names fall back to XY.

在文件 GridConfig.cpp 第 33 行定义.

引用了 name, eve::grid::XY , 以及 eve::grid::XZ.

被这些函数引用 eve::building::PlacementWorld::setGridPlane().

◆ planeName()

const char * eve::grid::GridConfig::planeName ( GridPlane  p)
static

Stable string name for a plane enum value.

在文件 GridConfig.cpp 第 29 行定义.

引用了 p , 以及 eve::grid::XZ.

被这些函数引用 eve::building::PlacementWorld::getGridPlaneName().

类成员变量说明

◆ cellGapX

float eve::grid::GridConfig::cellGapX = 0.f

在文件 GridConfig.h 第 39 行定义.

被这些函数引用 eve::grid::cellPitchX().

◆ cellGapY

float eve::grid::GridConfig::cellGapY = 0.f

在文件 GridConfig.h 第 40 行定义.

被这些函数引用 eve::grid::cellPitchY().

◆ cellH

float eve::grid::GridConfig::cellH = 32.f

在文件 GridConfig.h 第 38 行定义.

被这些函数引用 eve::grid::cellPitchY(), eve::grid::cellToDepthY() , 以及 eve::grid::worldToCell().

◆ cellW

float eve::grid::GridConfig::cellW = 32.f

在文件 GridConfig.h 第 37 行定义.

被这些函数引用 eve::grid::cellPitchX() , 以及 eve::grid::worldToCell().

◆ hexSideLength

float eve::grid::GridConfig::hexSideLength = 0.f

在文件 GridConfig.h 第 45 行定义.

被这些函数引用 eve::grid::cellToWorld().

◆ layout

GridLayout eve::grid::GridConfig::layout = GridLayout::Rectangle

在文件 GridConfig.h 第 35 行定义.

被这些函数引用 eve::grid::cellToWorld() , 以及 eve::grid::worldToCell().

◆ originX

float eve::grid::GridConfig::originX = 0.f

在文件 GridConfig.h 第 41 行定义.

被这些函数引用 eve::grid::cellToWorld() , 以及 eve::grid::worldToCell().

◆ originY

float eve::grid::GridConfig::originY = 0.f

在文件 GridConfig.h 第 42 行定义.

被这些函数引用 eve::grid::cellToWorld() , 以及 eve::grid::worldToCell().

◆ plane

GridPlane eve::grid::GridConfig::plane = GridPlane::XY

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

◆ staggerAxis

StaggerAxis eve::grid::GridConfig::staggerAxis = StaggerAxis::Y

在文件 GridConfig.h 第 43 行定义.

被这些函数引用 eve::grid::cellToWorld().

◆ staggerIndex

StaggerIndex eve::grid::GridConfig::staggerIndex = StaggerIndex::Odd

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


该结构体的文档由以下文件生成: