CARLA
Static Public Member Functions | List of all members
CityMapMeshTag Class Reference

Helper class for working with ECityMapMeshTag. More...

#include <CityMapMeshTag.h>

Static Public Member Functions

static ECityMapMeshTag GetBaseMeshTag ()
 Return the base mesh. The base mesh defines the unit tile for map scaling. More...
 
static constexpr uint8 GetNumberOfTags ()
 Return the number of tags. More...
 
static uint32 GetRoadIntersectionSize ()
 Get the size in tiles of a road intersection side. More...
 
Tag conversions
static constexpr uint8 ToUInt (ECityMapMeshTag Tag)
 Convert Tag to an unsigned integer type. More...
 
static ECityMapMeshTag FromUInt (uint8 Value)
 Convert an unsigned integer to a ECityMapMeshTag. More...
 
static FString ToString (ECityMapMeshTag Tag)
 Get Tag name as FString. More...
 
static FString ToString (uint8 Value)
 Convert Value to ECityMapMeshTag and get its name as FString. More...
 

Detailed Description

Helper class for working with ECityMapMeshTag.

Definition at line 76 of file CityMapMeshTag.h.

Member Function Documentation

◆ FromUInt()

static ECityMapMeshTag CityMapMeshTag::FromUInt ( uint8  Value)
inlinestatic

Convert an unsigned integer to a ECityMapMeshTag.

Definition at line 101 of file CityMapMeshTag.h.

References GetNumberOfTags(), and ToString().

Referenced by ACityMapMeshHolder::ACityMapMeshHolder(), and ToString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBaseMeshTag()

ECityMapMeshTag CityMapMeshTag::GetBaseMeshTag ( )
static

Return the base mesh. The base mesh defines the unit tile for map scaling.

Definition at line 14 of file CityMapMeshTag.cpp.

Referenced by GetNumberOfTags(), and ACityMapMeshHolder::UpdateMapScale().

+ Here is the caller graph for this function:

◆ GetNumberOfTags()

static constexpr uint8 CityMapMeshTag::GetNumberOfTags ( )
inlinestatic

Return the number of tags.

Definition at line 81 of file CityMapMeshTag.h.

References GetBaseMeshTag(), GetRoadIntersectionSize(), NUMBER_OF_TAGS, and ToUInt().

Referenced by FromUInt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRoadIntersectionSize()

uint32 CityMapMeshTag::GetRoadIntersectionSize ( )
static

Get the size in tiles of a road intersection side.

I.e., return N such NxN is the size of a road intersection piece.

Definition at line 19 of file CityMapMeshTag.cpp.

Referenced by ACityMapGenerator::GenerateRoadMap(), ACityMapGenerator::GenerateRoads(), and GetNumberOfTags().

+ Here is the caller graph for this function:

◆ ToString() [1/2]

FString CityMapMeshTag::ToString ( ECityMapMeshTag  Tag)
static

Get Tag name as FString.

Definition at line 24 of file CityMapMeshTag.cpp.

Referenced by FromUInt(), ToString(), and ACityMapMeshHolder::UpdateMapScale().

+ Here is the caller graph for this function:

◆ ToString() [2/2]

static FString CityMapMeshTag::ToString ( uint8  Value)
inlinestatic

Convert Value to ECityMapMeshTag and get its name as FString.

Definition at line 110 of file CityMapMeshTag.h.

References FromUInt(), and ToString().

+ Here is the call graph for this function:

◆ ToUInt()

static constexpr uint8 CityMapMeshTag::ToUInt ( ECityMapMeshTag  Tag)
inlinestatic

Convert Tag to an unsigned integer type.

Definition at line 96 of file CityMapMeshTag.h.

Referenced by GetNumberOfTags().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following files: