CARLA
 
载入中...
搜索中...
未找到
MapGenFunctionLibrary.h
浏览该文件的文档.
1// Copyright (c) 2023 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#pragma once
8
9// Engine headers
10#include "CoreMinimal.h"
11#include "Kismet/BlueprintFunctionLibrary.h"
12#include "MeshDescription.h"
13#include "ProceduralMeshComponent.h"
14// Carla C++ headers
15
16// Carla plugin headers
18
19#include "MapGenFunctionLibrary.generated.h"
20
21
22DECLARE_LOG_CATEGORY_EXTERN(LogCarlaMapGenFunctionLibrary, Log, All);
23
24UCLASS(BlueprintType)
26{
27 GENERATED_BODY()
28public:
29 UFUNCTION(BlueprintCallable)
30 static UStaticMesh* CreateMesh(
31 const FProceduralCustomMesh& Data,
32 const TArray<FProcMeshTangent>& ParamTangents,
33 UMaterialInstance* MaterialInstance,
34 FString MapName,
35 FString FolderName,
36 FName MeshName);
37
38 static FMeshDescription BuildMeshDescriptionFromData(
39 const FProceduralCustomMesh& Data,
40 const TArray<FProcMeshTangent>& ParamTangents,
41 UMaterialInstance* MaterialInstance );
42
43 UFUNCTION(BlueprintCallable)
44 static FVector2D GetTransversemercProjection(float lat, float lon, float lat0, float lon0);
45
46 UFUNCTION(BlueprintCallable)
47 static void SetThreadToSleep(float seconds);
48
49 UFUNCTION(BlueprintCallable)
50 static void FlushRenderingCommandsInBlueprint();
51
52 UFUNCTION(BlueprintCallable)
53 static void CleanupGEngine();
54};
DECLARE_LOG_CATEGORY_EXTERN(LogCarlaMapGenFunctionLibrary, Log, All)
A definition of a Carla Mesh.