9 #include "CoreMinimal.h" 10 #include "Components/SceneComponent.h" 11 #include "Components/BoxComponent.h" 14 #include "SignComponent.generated.h" 32 UCLASS( ClassGroup=(Custom), meta=(BlueprintSpawnableComponent) )
33 class CARLA_API USignComponent :
public USceneComponent
40 UFUNCTION(Category =
"Traffic Sign", BlueprintPure)
41 const FString &GetSignId()
const;
43 UFUNCTION(Category =
"Traffic Sign", BlueprintCallable)
44 void SetSignId(
const FString &Id);
47 virtual void InitializeSign(
const cr::Map &
Map);
51 const TArray<UBoxComponent*> GetEffectTriggerVolume()
const;
55 virtual void BeginPlay()
override;
58 virtual void TickComponent(
float DeltaTime, ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction)
override;
60 TArray<std::pair<cr::RoadId, const cre::RoadInfoSignal*>>
61 GetAllReferencesToThisSignal(
const cr::Map &Map);
67 UBoxComponent* GenerateTriggerBox(
const FTransform &BoxTransform,
70 UBoxComponent* GenerateTriggerBox(
const FTransform &BoxTransform,
71 const FVector &BoxSize);
75 UPROPERTY(Category =
"Traffic Sign", EditAnywhere)
79 TArray<UBoxComponent*> EffectTriggerVolumes;
This file contains definitions of common data structures used in traffic manager. ...