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

#include <ObjectRegister.h>

Inheritance diagram for UObjectRegister:

Public Member Functions

void EnableEnvironmentObjects (const TSet< uint64 > &EnvObjectIds, bool Enable)
TSet< uint64 > FindEnvironmentObjects (const TSet< uint64 > &EnvObjectIds) const
 The ids of EnvObjectIds that are registered now.
TSet< uint64 > FindEnvironmentObjectsOf (const TSet< uint64 > &EnvObjectIds, const TSet< const AActor * > &Actors) const
 The ids of EnvObjectIds registered now for an actor of Actors.
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, TWeakObjectPtr< const UStaticMeshComponent > > ObjectIdToComp

Detailed Description

Definition at line 21 of file ObjectRegister.h.

Constructor & Destructor Documentation

◆ UObjectRegister()

UObjectRegister::UObjectRegister ( )
inline

Definition at line 27 of file ObjectRegister.h.

◆ ~UObjectRegister()

UObjectRegister::~UObjectRegister ( )
inline

Definition at line 28 of file ObjectRegister.h.

Member Function Documentation

◆ EnableActor()

void UObjectRegister::EnableActor ( FEnvironmentObject & EnvironmentObject,
bool Enable )
private

Definition at line 429 of file ObjectRegister.cpp.

References FEnvironmentObject::Actor, and FEnvironmentObject::CanTick.

Referenced by EnableEnvironmentObject().

◆ EnableEnvironmentObject()

void UObjectRegister::EnableEnvironmentObject ( FEnvironmentObject & EnvironmentObject,
bool Enable )
private

◆ EnableEnvironmentObjects()

void UObjectRegister::EnableEnvironmentObjects ( const TSet< uint64 > & EnvObjectIds,
bool Enable )

◆ EnableISMComp()

void UObjectRegister::EnableISMComp ( FEnvironmentObject & EnvironmentObject,
bool Enable )
private

◆ EnableTrafficLight()

void UObjectRegister::EnableTrafficLight ( FEnvironmentObject & EnvironmentObject,
bool Enable )
private

Definition at line 445 of file ObjectRegister.cpp.

References FEnvironmentObject::Id, ObjectIdToComp, and SMComp.

Referenced by EnableEnvironmentObject().

◆ FindEnvironmentObjects()

TSet< uint64 > UObjectRegister::FindEnvironmentObjects ( const TSet< uint64 > & EnvObjectIds) const

The ids of EnvObjectIds that are registered now.

Definition at line 145 of file ObjectRegister.cpp.

References EnvironmentObjects.

Referenced by ACarlaGameModeBase::EnableEnvironmentObjects(), and ACarlaGameModeBase::RegisterEnvironmentObjects().

◆ FindEnvironmentObjectsOf()

TSet< uint64 > UObjectRegister::FindEnvironmentObjectsOf ( const TSet< uint64 > & EnvObjectIds,
const TSet< const AActor * > & Actors ) const

The ids of EnvObjectIds registered now for an actor of Actors.

Definition at line 162 of file ObjectRegister.cpp.

References EnvironmentObjects.

Referenced by ACarlaGameModeBase::RegisterEnvironmentObjects().

◆ GetEnvironmentObjects()

TArray< FEnvironmentObject > UObjectRegister::GetEnvironmentObjects ( uint8 InTagQueried = 0xFF) const

Definition at line 23 of file ObjectRegister.cpp.

References carla::rpc::Any, and EnvironmentObjects.

◆ RegisterCharacter()

void UObjectRegister::RegisterCharacter ( ACharacter * Character)
private

◆ RegisterEnvironmentObject()

◆ RegisterISMComponents()

◆ RegisterObjects()

◆ RegisterSKMComponents()

◆ RegisterSMComponents()

◆ RegisterTrafficLight()

◆ RegisterVehicle()

void UObjectRegister::RegisterVehicle ( ACarlaWheeledVehicle * Vehicle)
private

Member Data Documentation

◆ EnvironmentObjects

◆ FoliageActorInstanceCount

int UObjectRegister::FoliageActorInstanceCount = 0
private

Definition at line 80 of file ObjectRegister.h.

Referenced by RegisterISMComponents(), and RegisterObjects().

◆ ObjectIdToComp

TMultiMap<uint64, TWeakObjectPtr<const UStaticMeshComponent> > UObjectRegister::ObjectIdToComp
private

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