载入中...
搜索中...
未找到
eve::procgen::road::RoadStyle结构体 参考

Owning cross-section, width policy and structural authoring for one road edge. 更多...

#include <RoadTypes.h>

Public 属性

RoadSidePlacement sidePlacement
 Single source for rigid-facility origin and transform offsets.
 
RoadSideTerrainRule sideTerrain
 Terrain height selection for side.left/right anchors only.
 
RoadRollInterpolation rollInterpolation
 New roads ease crossfall per spline span; old snapshots retain Linear.
 
RoadFrameOrientation frameOrientation
 New roads retain horizontal unbanked sections.
 
RoadWidthInterpolation widthInterpolation
 
std::vector< RoadProfilePoint > crossSection
 Empty selects the standard road; custom segment tags are explicit.
 
bool crossSectionClosed = false
 Close the final-to-first section segment.
 
bool automaticStructures = true
 Empty intervals retain legacy decks/piers unless explicitly disabled.
 
std::vector< RoadStructureInterval > structures
 Explicit normalized arc intervals; nonempty disables legacy automatic structures.
 
std::vector< RoadContinuousFacility > facilities
 Continuous swept facilities, clipped by sockets.
 
float laneWidth = 3.5f
 
float curbWidth = 0.45f
 Jersey-barrier thickness.
 
float curbHeight = 0.55f
 Raised barrier height (readable asphalt channel).
 
float sidewalkWidth = 1.5f
 
float sidewalkHeight = 0.14f
 
float deckThickness = 0.70f
 
float pierWidth = 1.35f
 
float pierDepth = 1.35f
 
float pierSpacing = 11.f
 
float pierClearance = 1.5f
 
float markingWidth = 0.22f
 
float dashLength = 3.5f
 
float dashGap = 3.f
 
float uvMeters = 8.f
 World-space metres per texture repeat.
 
float speedLimitMps = 13.8889f
 Navigation speed limit in metres per second.
 
int trafficPriority = 0
 Higher incoming-road values win uncontrolled junction priority.
 
float sideObjectStartOffset = 0.f
 Empty distance before the first side-object anchor.
 
RoadSideDistribution sideObjectDistribution
 Explicit rigid-anchor spacing policy.
 
float sideObjectEndOffset = 0.f
 Empty distance after the last side-object anchor.
 
bool sideObjectsLeft = true
 Emit anchors on the authored centerline's left side.
 
bool sideObjectsRight = true
 Emit anchors on the authored centerline's right side.
 
float samplingSpacingMeters
 New roads use the measured 2m trigger; explicit zero keeps legacy fixed counts.
 
float samplingAngleDegrees = 45.f
 New roads match the reference 45 degree target; scan requires >=1.
 
int crossSectionSubdivisions = 1
 Subdivide every authored section segment, bounded to [1,32].
 
RoadSamplingPolicy samplingPolicy
 
RoadTerrainPolicy terrainPolicy
 Authoritative ground-channel policy; execution remains explicit.
 

详细描述

Owning cross-section, width policy and structural authoring for one road edge.

在文件 RoadTypes.h 第 182 行定义.

类成员变量说明

◆ automaticStructures

bool eve::procgen::road::RoadStyle::automaticStructures = true

Empty intervals retain legacy decks/piers unless explicitly disabled.

在文件 RoadTypes.h 第 194 行定义.

被这些函数引用 eve::procgen::road::applyRailwayRoadType() , 以及 eve::procgen::road::makeRailwayStyle().

◆ crossSection

std::vector<RoadProfilePoint> eve::procgen::road::RoadStyle::crossSection

◆ crossSectionClosed

bool eve::procgen::road::RoadStyle::crossSectionClosed = false

◆ crossSectionSubdivisions

int eve::procgen::road::RoadStyle::crossSectionSubdivisions = 1

Subdivide every authored section segment, bounded to [1,32].

在文件 RoadTypes.h 第 224 行定义.

被这些函数引用 eve::procgen::road::detail::validateRoadAuthoring().

◆ curbHeight

◆ curbWidth

◆ dashGap

float eve::procgen::road::RoadStyle::dashGap = 3.f

在文件 RoadTypes.h 第 211 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle().

◆ dashLength

float eve::procgen::road::RoadStyle::dashLength = 3.5f

在文件 RoadTypes.h 第 210 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle().

◆ deckThickness

◆ facilities

std::vector<RoadContinuousFacility> eve::procgen::road::RoadStyle::facilities

Continuous swept facilities, clipped by sockets.

在文件 RoadTypes.h 第 197 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle(), eve::procgen::road::detail::reverseRoadAuthoring() , 以及 eve::procgen::road::detail::validateRoadAuthoring().

◆ frameOrientation

RoadFrameOrientation eve::procgen::road::RoadStyle::frameOrientation
初始值:

New roads retain horizontal unbanked sections.

在文件 RoadTypes.h 第 187 行定义.

被这些函数引用 eve::procgen::road::detail::validateRoadAuthoring().

◆ laneWidth

◆ markingWidth

float eve::procgen::road::RoadStyle::markingWidth = 0.22f

在文件 RoadTypes.h 第 209 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle().

◆ pierClearance

float eve::procgen::road::RoadStyle::pierClearance = 1.5f

◆ pierDepth

float eve::procgen::road::RoadStyle::pierDepth = 1.35f

◆ pierSpacing

float eve::procgen::road::RoadStyle::pierSpacing = 11.f

◆ pierWidth

float eve::procgen::road::RoadStyle::pierWidth = 1.35f

◆ rollInterpolation

RoadRollInterpolation eve::procgen::road::RoadStyle::rollInterpolation
初始值:

New roads ease crossfall per spline span; old snapshots retain Linear.

在文件 RoadTypes.h 第 185 行定义.

被这些函数引用 eve::procgen::road::detail::validateRoadAuthoring().

◆ samplingAngleDegrees

float eve::procgen::road::RoadStyle::samplingAngleDegrees = 45.f

New roads match the reference 45 degree target; scan requires >=1.

在文件 RoadTypes.h 第 223 行定义.

被这些函数引用 eve::procgen::road::detail::validateRoadAuthoring().

◆ samplingPolicy

RoadSamplingPolicy eve::procgen::road::RoadStyle::samplingPolicy
初始值:

New roads scan metric distance/turn; legacy snapshots retain their policy.

在文件 RoadTypes.h 第 225 行定义.

被这些函数引用 eve::procgen::road::detail::validateRoadAuthoring().

◆ samplingSpacingMeters

float eve::procgen::road::RoadStyle::samplingSpacingMeters
初始值:
=
2.f

New roads use the measured 2m trigger; explicit zero keeps legacy fixed counts.

在文件 RoadTypes.h 第 221 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle() , 以及 eve::procgen::road::detail::validateRoadAuthoring().

◆ sideObjectDistribution

RoadSideDistribution eve::procgen::road::RoadStyle::sideObjectDistribution
初始值:

Explicit rigid-anchor spacing policy.

在文件 RoadTypes.h 第 216 行定义.

◆ sideObjectEndOffset

float eve::procgen::road::RoadStyle::sideObjectEndOffset = 0.f

Empty distance after the last side-object anchor.

在文件 RoadTypes.h 第 218 行定义.

◆ sideObjectsLeft

bool eve::procgen::road::RoadStyle::sideObjectsLeft = true

Emit anchors on the authored centerline's left side.

在文件 RoadTypes.h 第 219 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle().

◆ sideObjectsRight

bool eve::procgen::road::RoadStyle::sideObjectsRight = true

Emit anchors on the authored centerline's right side.

在文件 RoadTypes.h 第 220 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle().

◆ sideObjectStartOffset

float eve::procgen::road::RoadStyle::sideObjectStartOffset = 0.f

Empty distance before the first side-object anchor.

在文件 RoadTypes.h 第 215 行定义.

◆ sidePlacement

RoadSidePlacement eve::procgen::road::RoadStyle::sidePlacement

Single source for rigid-facility origin and transform offsets.

在文件 RoadTypes.h 第 183 行定义.

◆ sideTerrain

RoadSideTerrainRule eve::procgen::road::RoadStyle::sideTerrain

Terrain height selection for side.left/right anchors only.

在文件 RoadTypes.h 第 184 行定义.

被这些函数引用 eve::procgen::road::detail::validateRoadAuthoring().

◆ sidewalkHeight

float eve::procgen::road::RoadStyle::sidewalkHeight = 0.14f

◆ sidewalkWidth

◆ speedLimitMps

float eve::procgen::road::RoadStyle::speedLimitMps = 13.8889f

Navigation speed limit in metres per second.

在文件 RoadTypes.h 第 213 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle().

◆ structures

std::vector<RoadStructureInterval> eve::procgen::road::RoadStyle::structures

Explicit normalized arc intervals; nonempty disables legacy automatic structures.

在文件 RoadTypes.h 第 196 行定义.

被这些函数引用 eve::procgen::road::applyRailwayRoadType(), eve::procgen::road::detail::reverseRoadAuthoring() , 以及 eve::procgen::road::detail::validateRoadAuthoring().

◆ terrainPolicy

RoadTerrainPolicy eve::procgen::road::RoadStyle::terrainPolicy

Authoritative ground-channel policy; execution remains explicit.

在文件 RoadTypes.h 第 228 行定义.

被这些函数引用 eve::procgen::road::applyRailwayRoadType(), eve::procgen::road::RoadTerrainPlan::prepare() , 以及 eve::procgen::road::detail::validateRoadAuthoring().

◆ trafficPriority

int eve::procgen::road::RoadStyle::trafficPriority = 0

Higher incoming-road values win uncontrolled junction priority.

在文件 RoadTypes.h 第 214 行定义.

被这些函数引用 eve::procgen::road::RoadNetwork::makeRoundabout().

◆ uvMeters

float eve::procgen::road::RoadStyle::uvMeters = 8.f

World-space metres per texture repeat.

在文件 RoadTypes.h 第 212 行定义.

被这些函数引用 eve::procgen::road::makeRailwayStyle().

◆ widthInterpolation

RoadWidthInterpolation eve::procgen::road::RoadStyle::widthInterpolation
初始值:

New roads match reference cubic width; old snapshots migrate to Linear.

在文件 RoadTypes.h 第 189 行定义.

被这些函数引用 eve::procgen::road::detail::validateRoadAuthoring().


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