CARLA
Loading...
Searching...
No Matches
UBoundingBoxCalculator Class Reference

#include <BoundingBoxCalculator.h>

Inheritance diagram for UBoundingBoxCalculator:

Static Public Member Functions

static FBoundingBox CombineBBs (const TArray< FBoundingBox > &BBsToCombine)
static void CombineBBsOfActor (const AActor *Actor, TArray< FBoundingBox > &OutBB, TArray< uint8 > &OutTag, const float DistanceThreshold=0.0f, uint8 TagToCombine=0xFF)
static FBoundingBox CombineBoxes (const TArray< UBoxComponent * > &BBsToCombine)
static FBoundingBox GetActorBoundingBox (const AActor *Actor, uint8 InTagQueried=0xFF)
 Compute the bounding box of the given Carla actor.
static TArray< FBoundingBox > GetBBsOfActor (const AActor *Actor, uint8 InTagQueried=0xFF)
static void GetBBsOfSkeletalMeshComponents (const TArray< USkeletalMeshComponent * > &SkeletalMeshComps, TArray< FBoundingBox > &OutBB, TArray< uint8 > &OutTag, uint8 InTagQueried=0xFF)
static void GetBBsOfStaticMeshComponents (const TArray< UStaticMeshComponent * > &StaticMeshComps, TArray< FBoundingBox > &OutBB, TArray< uint8 > &OutTag, uint8 InTagQueried=0xFF)
static TArray< FBoundingBox > GetBoundingBoxOfActors (const TArray< AActor * > &Actors, uint8 InTagQueried=0xFF)
static FBoundingBox GetCharacterBoundingBox (const ACharacter *Character, uint8 InTagQueried=0xFF)
static void GetISMBoundingBox (UInstancedStaticMeshComponent *ISMComp, TArray< FBoundingBox > &OutBoundingBox)
static void GetMeshCompsFromActorBoundingBox (const AActor *Actor, const FBoundingBox &InBB, TArray< UStaticMeshComponent * > &OutStaticMeshComps)
static FBoundingBox GetSkeletalMeshBoundingBox (const USkeletalMesh *SkeletalMesh)
static FBoundingBox GetSkeletalMeshBoundingBoxFromComponent (const USkeletalMeshComponent *SkeletalMeshComp)
static FBoundingBox GetStaticMeshBoundingBox (const UStaticMesh *StaticMesh)
static void GetTrafficLightBoundingBox (const ATrafficLightBase *TrafficLight, TArray< FBoundingBox > &OutBB, TArray< uint8 > &OutTag, uint8 InTagQueried=0xFF)
static FBoundingBox GetVehicleBoundingBox (const ACarlaWheeledVehicle *Vehicle, uint8 InTagQueried=0xFF)

Detailed Description

Definition at line 18 of file BoundingBoxCalculator.h.

Member Function Documentation

◆ CombineBBs()

FBoundingBox UBoundingBoxCalculator::CombineBBs ( const TArray< FBoundingBox > & BBsToCombine)
static

Definition at line 671 of file BoundingBoxCalculator.cpp.

References CombineBoundingBoxesGeneric().

Referenced by CombineBBsOfActor(), and GetActorBoundingBox().

◆ CombineBBsOfActor()

void UBoundingBoxCalculator::CombineBBsOfActor ( const AActor * Actor,
TArray< FBoundingBox > & OutBB,
TArray< uint8 > & OutTag,
const float DistanceThreshold = 0.0f,
uint8 TagToCombine = 0xFF )
static

◆ CombineBoxes()

FBoundingBox UBoundingBoxCalculator::CombineBoxes ( const TArray< UBoxComponent * > & BBsToCombine)
static

Definition at line 676 of file BoundingBoxCalculator.cpp.

References CombineBoundingBoxesGeneric().

◆ GetActorBoundingBox()

FBoundingBox UBoundingBoxCalculator::GetActorBoundingBox ( const AActor * Actor,
uint8 InTagQueried = 0xFF )
static

Compute the bounding box of the given Carla actor.

Warning
If the actor type is not supported a default initialized bounding box is returned.
Traffic signs return its trigger box instead.

Definition at line 40 of file BoundingBoxCalculator.cpp.

References ApplyTransformToBB(), Character, CombineBBs(), FBoundingBox::Extent, GetBBsOfActor(), GetSkeletalMeshBoundingBoxFromComponent(), FBoundingBox::Origin, FBoundingBox::Rotation, TriggerVolume, and Vehicle.

Referenced by CaService::AddBasicVehicleContainerHighFrequency(), FActorRegistry::MakeCarlaActor(), and UCarlaEpisode::SerializeActor().

◆ GetBBsOfActor()

◆ GetBBsOfSkeletalMeshComponents()

void UBoundingBoxCalculator::GetBBsOfSkeletalMeshComponents ( const TArray< USkeletalMeshComponent * > & SkeletalMeshComps,
TArray< FBoundingBox > & OutBB,
TArray< uint8 > & OutTag,
uint8 InTagQueried = 0xFF )
static

◆ GetBBsOfStaticMeshComponents()

void UBoundingBoxCalculator::GetBBsOfStaticMeshComponents ( const TArray< UStaticMeshComponent * > & StaticMeshComps,
TArray< FBoundingBox > & OutBB,
TArray< uint8 > & OutTag,
uint8 InTagQueried = 0xFF )
static

◆ GetBoundingBoxOfActors()

TArray< FBoundingBox > UBoundingBoxCalculator::GetBoundingBoxOfActors ( const TArray< AActor * > & Actors,
uint8 InTagQueried = 0xFF )
static

Definition at line 480 of file BoundingBoxCalculator.cpp.

References GetBBsOfActor().

Referenced by ACarlaGameModeBase::GetAllBBsOfLevel().

◆ GetCharacterBoundingBox()

FBoundingBox UBoundingBoxCalculator::GetCharacterBoundingBox ( const ACharacter * Character,
uint8 InTagQueried = 0xFF )
static

◆ GetISMBoundingBox()

void UBoundingBoxCalculator::GetISMBoundingBox ( UInstancedStaticMeshComponent * ISMComp,
TArray< FBoundingBox > & OutBoundingBox )
static

◆ GetMeshCompsFromActorBoundingBox()

void UBoundingBoxCalculator::GetMeshCompsFromActorBoundingBox ( const AActor * Actor,
const FBoundingBox & InBB,
TArray< UStaticMeshComponent * > & OutStaticMeshComps )
static

◆ GetSkeletalMeshBoundingBox()

FBoundingBox UBoundingBoxCalculator::GetSkeletalMeshBoundingBox ( const USkeletalMesh * SkeletalMesh)
static

◆ GetSkeletalMeshBoundingBoxFromComponent()

FBoundingBox UBoundingBoxCalculator::GetSkeletalMeshBoundingBoxFromComponent ( const USkeletalMeshComponent * SkeletalMeshComp)
static

Definition at line 303 of file BoundingBoxCalculator.cpp.

Referenced by GetActorBoundingBox(), and GetCharacterBoundingBox().

◆ GetStaticMeshBoundingBox()

FBoundingBox UBoundingBoxCalculator::GetStaticMeshBoundingBox ( const UStaticMesh * StaticMesh)
static

Definition at line 359 of file BoundingBoxCalculator.cpp.

Referenced by GetBBsOfStaticMeshComponents(), and GetISMBoundingBox().

◆ GetTrafficLightBoundingBox()

void UBoundingBoxCalculator::GetTrafficLightBoundingBox ( const ATrafficLightBase * TrafficLight,
TArray< FBoundingBox > & OutBB,
TArray< uint8 > & OutTag,
uint8 InTagQueried = 0xFF )
static

◆ GetVehicleBoundingBox()


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