载入中...
搜索中...
未找到
RoadTypes.h 文件参考
#include <optional>
#include "common/PrefabRootPose.h"
#include "common/ResourceRef.h"
#include "common/Result.h"
#include "procgen/road/RoadTerrainPolicy.h"
#include <cstdint>
#include <string>
#include <vector>

浏览源代码.

类

struct  eve::procgen::road::RoadControlPoint
 One authored control point on a road centerline (world space, Y-up). 更多...
 
struct  eve::procgen::road::RoadProfilePoint
 One 2D profile sample in the edge local (side, up) plane. 更多...
 
struct  eve::procgen::road::RoadStructureInterval
 Normalized arc-distance interval; nonoverlapping, sorted, owned by RoadNetwork. 更多...
 
struct  eve::procgen::road::RoadPrefabVertex
 Owned source vertex in prefab-local (side, up, forward) axes, with normal and UV. 更多...
 
struct  eve::procgen::road::RoadPrefabTriangle
 Indexed source-prefab triangle with renderer-neutral material. 更多...
 
struct  eve::procgen::road::RoadPrefabSegment
 Optional owned source segment for a prefab's start or end. Empty mesh omits the segment. 更多...
 
struct  eve::procgen::road::RoadFacilityPrefab
 Owned prefab mesh; local Z in [0,length] deforms along the facility arc. Source range preserves cut geometry on splits. UVs retain the authored source values. 更多...
 
struct  eve::procgen::road::RoadContinuousFacility
 Continuous facility over an authored edge interval; all profiles and prefab meshes are owned values. 更多...
 
struct  eve::procgen::road::RoadSideAssetBinding
 Stable asset link at an exact admitted package build; stale resolution fails without substituting newer data. 更多...
 
struct  eve::procgen::road::RoadSideTerrainRule
 Owned side-object ground rule; None height retains road height, while TerrainNormal alignment independently queries ground. 更多...
 
struct  eve::procgen::road::RoadSidePlacement
 Owning rigid-facility placement settings, copied with the road style. Explicit references ignore bake sideObjectOffset. Lateral offset is signed path-right metres, applied after width scaling; vertical offset is world-up metres after terrain selection. Yaw is world-Y degrees added to the resolved orientation before footprint queries. Center emits one stream if either side is enabled, preferring the left role when both are enabled. Missing snapshot settings retain LegacyOutside and zero offsets. No external lifetime or threading state. 更多...
 
struct  eve::procgen::road::RoadStyle
 Owning cross-section, width policy and structural authoring for one road edge. 更多...
 
struct  eve::procgen::road::RoadConnectionVertex
 Owning renderer-neutral custom connection vertex in node-local space. 更多...
 
struct  eve::procgen::road::RoadConnectionTriangle
 Material-qualified indexed triangle owned by a custom connection. 更多...
 
struct  eve::procgen::road::RoadConnectionPort
 Asset port with outward orthonormal frame, full seam section and network-local edge binding. 更多...
 
struct  eve::procgen::road::RoadFacilityRoute
 One explicit undirected facility route through a node; endpoints belong to incident edges. Each endpoint can occur in one route only. Network owns and validates these identities. 更多...
 
struct  eve::procgen::road::RoadConnection
 Owning custom junction asset snapshot; all geometry/ports share one node-local transform. 更多...
 
struct  eve::procgen::road::RoadNode
 Junction node owned by a road network. 更多...
 
struct  eve::procgen::road::RoadEdge
 Directed centerline edge with optional reverse lanes. 更多...
 
struct  eve::procgen::road::RoadEdgeSplitResult
 Stable identities produced by one atomic edge split. 更多...
 
struct  eve::procgen::road::RoadLaneConnection
 One legal lane-to-lane connection inside a junction. 更多...
 
struct  eve::procgen::road::RoadPolyline
 One renderer-neutral polyline chunk for navigation / marking overlays. 更多...
 
struct  eve::procgen::road::RoadOverlay
 Owning bake-time overlay snapshot (no pointers into the network). 更多...
 
struct  eve::procgen::road::RoadProfile
 Owning open profile polyline for one edge style and lane layout. 更多...
 

命名空间

namespace  eve
 Build metadata (engine git commit, build time, third-party version).
 
namespace  eve::procgen
 
namespace  eve::procgen::road
 

枚举

enum class  eve::procgen::road::RoadPathControl : std::uint8_t { eve::procgen::road::Spline = 0 , eve::procgen::road::StraightXZ = 1 , eve::procgen::road::StraightXYZ = 2 , eve::procgen::road::Circular = 3 }
 Outgoing road span controller; StraightXZ retains smooth height, StraightXYZ is fully linear. 更多...
 
enum class  eve::procgen::road::RoadMaterial : std::uint8_t {
  eve::procgen::road::Asphalt = 0 , eve::procgen::road::Curb , eve::procgen::road::Sidewalk , eve::procgen::road::Deck ,
  eve::procgen::road::Pier , eve::procgen::road::Marking , eve::procgen::road::MarkingYellow , eve::procgen::road::Nav ,
  eve::procgen::road::BridgeAsphalt , eve::procgen::road::TunnelAsphalt , eve::procgen::road::Tunnel , eve::procgen::road::TunnelPortalAsphalt
}
 Profile material tags used when lofting a road cross-section. 更多...
 
enum class  eve::procgen::road::RoadStructureKind : std::uint8_t { eve::procgen::road::Bridge = 0 , eve::procgen::road::Tunnel = 1 }
 Explicit structural treatment of a bounded road interval. 更多...
 
enum class  eve::procgen::road::RoadSideTerrainMode : std::uint8_t {
  eve::procgen::road::None = 0 , eve::procgen::road::Center = 1 , eve::procgen::road::Lowest = 2 , eve::procgen::road::Highest = 3 ,
  eve::procgen::road::Average = 4
}
 Height-only ground projection of generic side-object anchors; bounds are local horizontal footprint metres. 更多...
 
enum class  eve::procgen::road::RoadSideAlignment : std::uint8_t { eve::procgen::road::None = 0 , eve::procgen::road::TerrainNormal = 1 , eve::procgen::road::PathForward = 2 , eve::procgen::road::PathNormal = 3 }
 Owned side-instance orientation rule; height selection remains independently authored. 更多...
 
enum class  eve::procgen::road::RoadWidthInterpolation : std::uint8_t { eve::procgen::road::Linear = 0 , eve::procgen::road::CatmullRom = 1 }
 Cross-section and structural style for one road edge. 更多...
 
enum class  eve::procgen::road::RoadFrameOrientation : std::uint8_t { eve::procgen::road::ParallelTransport = 0 , eve::procgen::road::WorldUp = 1 }
 Cross-section orientation before authored roll; snapshots missing this field retain transport. 更多...
 
enum class  eve::procgen::road::RoadRollInterpolation : std::uint8_t { eve::procgen::road::Linear = 0 , eve::procgen::road::SmoothStep = 1 }
 Crossfall interpolation between authored markers. 更多...
 
enum class  eve::procgen::road::RoadSideDistribution : std::uint8_t { eve::procgen::road::LegacyCentered = 0 , eve::procgen::road::Fixed = 1 , eve::procgen::road::Average = 2 }
 Rigid side-anchor distribution; historical snapshots retain the half-spacing phase. Fixed starts at the clipped span start and excludes its end. Average fits a nearest-even, minimum-one interval count and adds the measured .005 metre interval bias. 更多...
 
enum class  eve::procgen::road::RoadSideReference : std::uint8_t { eve::procgen::road::LegacyOutside = 0 , eve::procgen::road::AsphaltEdges = 1 , eve::procgen::road::Center = 2 }
 Lateral origin for rigid facilities; LegacyOutside retains historical bake-option offsets. 更多...
 
enum class  eve::procgen::road::RoadSidePathSampling : std::uint8_t { eve::procgen::road::Analytic = 0 , eve::procgen::road::SurfaceSegments = 1 }
 Facility path policy; SurfaceSegments follows the road's retained section centers and segment directions. 更多...
 
enum class  eve::procgen::road::RoadSamplingPolicy : std::uint8_t { eve::procgen::road::MaximumIntervals = 0 , eve::procgen::road::ParametricDistanceTurn = 1 }
 Owning metric sampling semantics; absent snapshot fields retain MaximumIntervals. 更多...
 
enum class  eve::procgen::road::RoadJunctionControl : std::uint8_t { eve::procgen::road::Uncontrolled = 0 , eve::procgen::road::Yield , eve::procgen::road::Stop , eve::procgen::road::Signal }
 Authoritative traffic-control policy applied to every approach of one junction node. 更多...
 
enum class  eve::procgen::road::RoadLaneDirection : std::uint8_t { eve::procgen::road::Forward = 0 , eve::procgen::road::Backward }
 Travel direction of a lane relative to the authored edge centerline. 更多...
 

函数

Result< RoadProfile > eve::procgen::road::makeRoadProfile (const RoadStyle &style, int lanesForward, int lanesBackward)
 Build a mathematical road cross-section for the given lane counts.
 
const char * eve::procgen::road::roadMaterialGroup (RoadMaterial material) noexcept
 Map a material tag to the MeshBuild group name used by the baker. @ownership borrowed — returns a pointer to a static string literal; callers must not free it. @lifetime Program lifetime; the pointer remains valid for the process.