#include <BoundingBoxCalculator.h>
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. More... | |
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 | 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) |
Definition at line 18 of file BoundingBoxCalculator.h.
|
static |
Definition at line 599 of file BoundingBoxCalculator.cpp.
References CombineBoundingBoxesGeneric().
Referenced by CombineBBsOfActor(), and GetActorBoundingBox().
|
static |
Definition at line 498 of file BoundingBoxCalculator.cpp.
References CombineBBs(), GetBBsOfStaticMeshComponents(), FBoundingBox::Origin, and FBoundingBox::Rotation.
Referenced by GetTrafficLightBoundingBox().
|
static |
Definition at line 604 of file BoundingBoxCalculator.cpp.
References CombineBoundingBoxesGeneric().
Referenced by GetActorBoundingBox().
|
static |
Compute the bounding box of the given Carla actor.
Definition at line 41 of file BoundingBoxCalculator.cpp.
References Character, CombineBBs(), CombineBoxes(), GetBBsOfActor(), FBoundingBox::Origin, FBoundingBox::Rotation, TriggerVolume, and Vehicle.
Referenced by FActorRegistry::MakeCarlaActor(), and UCarlaEpisode::SerializeActor().
|
static |
Definition at line 422 of file BoundingBoxCalculator.cpp.
References carla::rpc::Any, BoundingBox, Character, FBoundingBox::Extent, GetBBsOfSkeletalMeshComponents(), GetBBsOfStaticMeshComponents(), GetCharacterBoundingBox(), GetISMBoundingBox(), ATagger::GetTagOfTaggedComponent(), GetTrafficLightBoundingBox(), GetVehicleBoundingBox(), TrafficLight, and Vehicle.
Referenced by GetActorBoundingBox(), and GetBoundingBoxOfActors().
|
static |
Definition at line 375 of file BoundingBoxCalculator.cpp.
References carla::rpc::Any, ApplyTransformToBB(), BoundingBox, FBoundingBox::Extent, GetSkeletalMeshBoundingBox(), and ATagger::GetTagOfTaggedComponent().
Referenced by GetBBsOfActor(), and UObjectRegister::RegisterSKMComponents().
|
static |
Definition at line 337 of file BoundingBoxCalculator.cpp.
References carla::rpc::Any, ApplyTransformToBB(), BoundingBox, GetStaticMeshBoundingBox(), and ATagger::GetTagOfTaggedComponent().
Referenced by CombineBBsOfActor(), GetBBsOfActor(), GetMeshCompsFromActorBoundingBox(), and UObjectRegister::RegisterSMComponents().
|
static |
Definition at line 408 of file BoundingBoxCalculator.cpp.
References GetBBsOfActor().
Referenced by ACarlaGameModeBase::GetAllBBsOfLevel().
|
static |
Definition at line 192 of file BoundingBoxCalculator.cpp.
References carla::rpc::Any, ApplyTransformToBB(), BoundingBox, FBoundingBox::Extent, and FBoundingBox::Origin.
Referenced by GetBBsOfActor(), and UObjectRegister::RegisterCharacter().
|
static |
Definition at line 304 of file BoundingBoxCalculator.cpp.
References ApplyTransformToBB(), BoundingBox, and GetStaticMeshBoundingBox().
Referenced by GetBBsOfActor(), and UObjectRegister::RegisterISMComponents().
|
static |
Definition at line 617 of file BoundingBoxCalculator.cpp.
References GetBBsOfStaticMeshComponents(), and FBoundingBox::Origin.
Referenced by UObjectRegister::RegisterTrafficLight().
|
static |
Definition at line 259 of file BoundingBoxCalculator.cpp.
Referenced by GetBBsOfSkeletalMeshComponents(), and GetVehicleBoundingBox().
|
static |
Definition at line 291 of file BoundingBoxCalculator.cpp.
Referenced by GetBBsOfStaticMeshComponents(), and GetISMBoundingBox().
|
static |
Definition at line 223 of file BoundingBoxCalculator.cpp.
References carla::rpc::Any, CombineBBsOfActor(), and carla::rpc::TrafficLight.
Referenced by FCarlaServer::FPimpl::BindActions(), GetBBsOfActor(), and UObjectRegister::RegisterTrafficLight().
|
static |
Definition at line 114 of file BoundingBoxCalculator.cpp.
References carla::rpc::Any, ApplyTransformToBB(), FBoundingBox::Extent, GetSkeletalMeshBoundingBox(), ATagger::GetTagOfTaggedComponent(), FBoundingBox::Origin, and FBoundingBox::Rotation.
Referenced by ACarlaWheeledVehicle::AdjustVehicleBounds(), GetBBsOfActor(), and UObjectRegister::RegisterVehicle().