#include <ObjectRegister.h>
Public Member Functions | |
void | EnableEnvironmentObjects (const TSet< uint64 > &EnvObjectIds, bool Enable) |
TArray< FEnvironmentObject > | GetEnvironmentObjects (uint8 InTagQueried=0xFF) const |
void | RegisterObjects (TArray< AActor *> Actors) |
UObjectRegister () | |
~UObjectRegister () | |
Private Member Functions | |
void | EnableActor (FEnvironmentObject &EnvironmentObject, bool Enable) |
void | EnableEnvironmentObject (FEnvironmentObject &EnvironmentObject, bool Enable) |
void | EnableISMComp (FEnvironmentObject &EnvironmentObject, bool Enable) |
void | EnableTrafficLight (FEnvironmentObject &EnvironmentObject, bool Enable) |
void | RegisterCharacter (ACharacter *Character) |
void | RegisterEnvironmentObject (AActor *Actor, FBoundingBox &BoundingBox, EnvironmentObjectType Type, uint8 Tag) |
void | RegisterISMComponents (AActor *Actor) |
void | RegisterSKMComponents (AActor *Actor) |
void | RegisterSMComponents (AActor *Actor) |
void | RegisterTrafficLight (ATrafficLightBase *TrafficLight) |
void | RegisterVehicle (ACarlaWheeledVehicle *Vehicle) |
Private Attributes | |
TArray< FEnvironmentObject > | EnvironmentObjects |
int | FoliageActorInstanceCount = 0 |
TMultiMap< uint64, const UStaticMeshComponent * > | ObjectIdToComp |
Definition at line 19 of file ObjectRegister.h.
|
inline |
Definition at line 25 of file ObjectRegister.h.
|
inline |
Definition at line 26 of file ObjectRegister.h.
References BoundingBox, Character, TrafficLight, and Vehicle.
|
private |
Definition at line 375 of file ObjectRegister.cpp.
References FEnvironmentObject::Actor, and FEnvironmentObject::CanTick.
Referenced by EnableEnvironmentObject().
|
private |
Definition at line 350 of file ObjectRegister.cpp.
References Character, EnableActor(), EnableISMComp(), EnableTrafficLight(), ISMComp, SKMComp, SMComp, TrafficLight, FEnvironmentObject::Type, and Vehicle.
Referenced by EnableEnvironmentObjects().
void UObjectRegister::EnableEnvironmentObjects | ( | const TSet< uint64 > & | EnvObjectIds, |
bool | Enable | ||
) |
Definition at line 108 of file ObjectRegister.cpp.
References EnableEnvironmentObject(), and EnvironmentObjects.
Referenced by ACarlaGameModeBase::EnableEnvironmentObjects().
|
private |
Definition at line 406 of file ObjectRegister.cpp.
References FEnvironmentObject::Id, ISMComp, FEnvironmentObject::Name, ObjectIdToComp, SMComp, and FEnvironmentObject::Transform.
Referenced by EnableEnvironmentObject().
|
private |
Definition at line 387 of file ObjectRegister.cpp.
References FEnvironmentObject::Id, ObjectIdToComp, and SMComp.
Referenced by EnableEnvironmentObject().
TArray< FEnvironmentObject > UObjectRegister::GetEnvironmentObjects | ( | uint8 | InTagQueried = 0xFF | ) | const |
Definition at line 23 of file ObjectRegister.cpp.
References carla::rpc::Any, and EnvironmentObjects.
|
private |
Definition at line 159 of file ObjectRegister.cpp.
References Character, UBoundingBoxCalculator::GetCharacterBoundingBox(), and RegisterEnvironmentObject().
Referenced by RegisterObjects().
|
private |
Definition at line 130 of file ObjectRegister.cpp.
References FEnvironmentObject::Actor, FEnvironmentObject::BoundingBox, BoundingBox, FEnvironmentObject::CanTick, EnvironmentObjects, FEnvironmentObject::Id, FEnvironmentObject::Name, FEnvironmentObject::ObjectLabel, FEnvironmentObject::Transform, and FEnvironmentObject::Type.
Referenced by RegisterCharacter(), and RegisterVehicle().
|
private |
Definition at line 212 of file ObjectRegister.cpp.
References EnvironmentObjects, FoliageActorInstanceCount, UBoundingBoxCalculator::GetISMBoundingBox(), ATagger::GetTagOfTaggedComponent(), ISMComp, ObjectIdToComp, and FEnvironmentObject::Transform.
Referenced by RegisterObjects().
void UObjectRegister::RegisterObjects | ( | TArray< AActor *> | Actors | ) |
Definition at line 41 of file ObjectRegister.cpp.
References Character, EnvironmentObjects, carla::client::detail::Get(), RegisterCharacter(), RegisterISMComponents(), RegisterSKMComponents(), RegisterSMComponents(), RegisterTrafficLight(), RegisterVehicle(), TrafficLight, and Vehicle.
Referenced by ACarlaGameModeBase::RegisterEnvironmentObjects().
|
private |
Definition at line 315 of file ObjectRegister.cpp.
References FEnvironmentObject::Actor, FEnvironmentObject::BoundingBox, FEnvironmentObject::CanTick, EnvironmentObjects, UBoundingBoxCalculator::GetBBsOfSkeletalMeshComponents(), FEnvironmentObject::Id, FEnvironmentObject::Name, FEnvironmentObject::ObjectLabel, SKMComp, FEnvironmentObject::Transform, and FEnvironmentObject::Type.
Referenced by RegisterObjects().
|
private |
Definition at line 282 of file ObjectRegister.cpp.
References FEnvironmentObject::Actor, FEnvironmentObject::BoundingBox, FEnvironmentObject::CanTick, EnvironmentObjects, UBoundingBoxCalculator::GetBBsOfStaticMeshComponents(), FEnvironmentObject::Id, FEnvironmentObject::Name, FEnvironmentObject::ObjectLabel, SMComp, FEnvironmentObject::Transform, and FEnvironmentObject::Type.
Referenced by RegisterObjects().
|
private |
Definition at line 166 of file ObjectRegister.cpp.
References FEnvironmentObject::Actor, FEnvironmentObject::BoundingBox, FEnvironmentObject::CanTick, EnvironmentObjects, UBoundingBoxCalculator::GetMeshCompsFromActorBoundingBox(), ATagger::GetTagAsString(), UBoundingBoxCalculator::GetTrafficLightBoundingBox(), FEnvironmentObject::Id, FEnvironmentObject::Name, ObjectIdToComp, FEnvironmentObject::ObjectLabel, TrafficLight, FEnvironmentObject::Transform, and FEnvironmentObject::Type.
Referenced by RegisterObjects().
|
private |
Definition at line 151 of file ObjectRegister.cpp.
References ATagger::GetTagOfTaggedComponent(), UBoundingBoxCalculator::GetVehicleBoundingBox(), RegisterEnvironmentObject(), and Vehicle.
Referenced by RegisterObjects().
|
private |
Definition at line 68 of file ObjectRegister.h.
Referenced by EnableEnvironmentObjects(), GetEnvironmentObjects(), RegisterEnvironmentObject(), RegisterISMComponents(), RegisterObjects(), RegisterSKMComponents(), RegisterSMComponents(), and RegisterTrafficLight().
|
private |
Definition at line 70 of file ObjectRegister.h.
Referenced by RegisterISMComponents().
|
private |
Definition at line 65 of file ObjectRegister.h.
Referenced by EnableISMComp(), EnableTrafficLight(), RegisterISMComponents(), and RegisterTrafficLight().