CARLA
CityMapMeshTag.cpp
Go to the documentation of this file.
1 // Copyright (c) 2017 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 "Carla.h"
8 #include "CityMapMeshTag.h"
9 
10 #include "Package.h"
11 
12 #include <array>
13 
15 {
16  return ECityMapMeshTag::RoadTwoLanes_LaneLeft;
17 }
18 
20 {
21  return 5u;
22 }
23 
25 {
26  const UEnum* ptr = FindObject<UEnum>(ANY_PACKAGE, TEXT("ECityMapMeshTag"), true);
27  if(!ptr)
28  return FString("Invalid");
29  return ptr->GetNameStringByIndex(static_cast<int32>(Tag));
30 }
static FString ToString(ECityMapMeshTag Tag)
Get Tag name as FString.
ECityMapMeshTag
Tag to identify the meshes used by the ProceduralMapGenerator.
static uint32 GetRoadIntersectionSize()
Get the size in tiles of a road intersection side.
static ECityMapMeshTag GetBaseMeshTag()
Return the base mesh. The base mesh defines the unit tile for map scaling.