CARLA
Toggle main menu visibility
Loading...
Searching...
No Matches
Unreal
CarlaUnreal
Plugins
Carla
Source
Carla
MapGen
CityMapMeshTag.cpp
Go to the documentation of this file.
1
// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2
// de Barcelona (UAB).
3
//
4
// This work is licensed under the terms of the MIT license.
5
// For a copy, see <https://opensource.org/licenses/MIT>.
6
7
#include "
CityMapMeshTag.h
"
8
#include "
Carla.h
"
9
10
#include <util/ue-header-guard-begin.h>
11
#include "UObject/Package.h"
12
#include <util/ue-header-guard-end.h>
13
14
#include <array>
15
16
ECityMapMeshTag
CityMapMeshTag::GetBaseMeshTag
()
17
{
18
return
ECityMapMeshTag::RoadTwoLanes_LaneLeft;
19
}
20
21
uint32
CityMapMeshTag::GetRoadIntersectionSize
()
22
{
23
return
5u;
24
}
25
26
FString
CityMapMeshTag::ToString
(
ECityMapMeshTag
Tag)
27
{
28
static_assert
(TIsEnumClass<ECityMapMeshTag>::Value);
29
return
StaticEnum<ECityMapMeshTag>()->GetNameStringByValue((int64)Tag);
30
}
Carla.h
CityMapMeshTag.h
ECityMapMeshTag
ECityMapMeshTag
Tag to identify the meshes used by the ProceduralMapGenerator.
Definition
CityMapMeshTag.h:19
CityMapMeshTag::ToString
static FString ToString(ECityMapMeshTag Tag)
Get Tag name as FString.
Definition
CityMapMeshTag.cpp:26
CityMapMeshTag::GetBaseMeshTag
static ECityMapMeshTag GetBaseMeshTag()
Return the base mesh. The base mesh defines the unit tile for map scaling.
Definition
CityMapMeshTag.cpp:16
CityMapMeshTag::GetRoadIntersectionSize
static uint32 GetRoadIntersectionSize()
Get the size in tiles of a road intersection side.
Definition
CityMapMeshTag.cpp:21
Generated by
1.18.0