Agrarsense
SemanticColors.h
Go to the documentation of this file.
1// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2//
3// This work is licensed under the terms of the MIT license.
4// For a copy, see <https://opensource.org/licenses/MIT>.
5
6#pragma once
7
8#include "CoreMinimal.h"
9#include "Containers/Map.h"
10
11class AGRARSENSE_API USemanticColors
12{
13
14public:
15
16 static TMap<FString, FColor> GetSemanticColors()
17 {
18 return SemanticColors;
19 }
20
21private:
22
23 static const TMap<FString, FColor> SemanticColors;
24};
25
26const TMap<FString, FColor> USemanticColors::SemanticColors =
27{
28 {"None", FColor(0, 0, 0)}, // Black
29 {"Other", FColor(255, 255, 255)}, // White
30 {"Terrain", FColor(192, 96, 192)}, // Lavender
31
32 {"Prop", FColor(128, 64, 128)}, // Purple
33 {"Props", FColor(128, 64, 128)}, // Purple
34
35 {"Human", FColor(220, 20, 60)}, // Red
36 {"Animal", FColor(255, 0, 255)}, // Purple-Pink
37
38 // Add unique color for rocks
39 {"Rocks", FColor(139, 69, 19)}, // Brown
40
41 {"Vehicle", FColor(0, 0, 142)}, // Navy Blue
42 {"Forwarder", FColor(0, 0, 142)}, // Navy Blue
43 {"Harvester", FColor(0, 0, 142)}, // Navy Blue
44 {"Drone", FColor(0, 0, 142)}, // Navy Blue
45
46 {"Foliage", FColor(107, 142, 35)}, // Olive Green
47 {"Birch", FColor(0, 255, 0)}, // Bright Green
48 {"Pine", FColor(0, 128, 0)}, // Dark Green
49 {"Spruce", FColor(0, 192, 0)}, // Medium Green
50 {"Alder", FColor(0, 255, 128)}, // Mint Green
51 {"Willow", FColor(0, 255, 255)}, // Cyan
52
53 {"Snowflake", FColor(255, 255, 0)}, // Yellow
54 {"Road", FColor(169, 169, 169)}, // Grey
55 {"Building", FColor(0, 0, 255)} // Blue
56};
static TMap< FString, FColor > GetSemanticColors()
static const TMap< FString, FColor > SemanticColors