CARLA
Public Member Functions | Private Member Functions | Private Attributes | List of all members
UTaggedComponent Class Reference

#include <TaggedComponent.h>

+ Inheritance diagram for UTaggedComponent:
+ Collaboration diagram for UTaggedComponent:

Public Member Functions

virtual FBoxSphereBounds CalcBounds (const FTransform &LocalToWorld) const
 
virtual FPrimitiveSceneProxy * CreateSceneProxy () override
 
FLinearColor GetColor ()
 
virtual void OnRegister () override
 
void SetColor (FLinearColor color)
 
virtual void TickComponent (float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction) override
 
 UTaggedComponent (const FObjectInitializer &ObjectInitializer)
 

Private Member Functions

FPrimitiveSceneProxy * CreateSceneProxy (UStaticMeshComponent *StaticMeshComponent)
 
FPrimitiveSceneProxy * CreateSceneProxy (USkeletalMeshComponent *SkeletalMeshComponent)
 
FPrimitiveSceneProxy * CreateSceneProxy (UHierarchicalInstancedStaticMeshComponent *MeshComponent)
 
FPrimitiveSceneProxy * CreateSceneProxy (UInstancedStaticMeshComponent *MeshComponent)
 

Private Attributes

bool bShouldWaitFrame = true
 
bool bSkeletalMesh = false
 
FLinearColor Color
 
int NumFramesToWait = 2
 
UMaterial * TaggedMaterial
 
UMaterialInstanceDynamic * TaggedMID
 

Detailed Description

Definition at line 11 of file TaggedComponent.h.

Constructor & Destructor Documentation

◆ UTaggedComponent()

UTaggedComponent::UTaggedComponent ( const FObjectInitializer &  ObjectInitializer)

Definition at line 11 of file TaggedComponent.cpp.

References TaggedMaterial.

Member Function Documentation

◆ CalcBounds()

FBoxSphereBounds UTaggedComponent::CalcBounds ( const FTransform &  LocalToWorld) const
virtual

Definition at line 53 of file TaggedComponent.cpp.

◆ CreateSceneProxy() [1/5]

FPrimitiveSceneProxy * UTaggedComponent::CreateSceneProxy ( )
overridevirtual

Definition at line 63 of file TaggedComponent.cpp.

References bSkeletalMesh, and IsValid().

+ Here is the call graph for this function:

◆ CreateSceneProxy() [2/5]

FPrimitiveSceneProxy * UTaggedComponent::CreateSceneProxy ( UStaticMeshComponent *  StaticMeshComponent)
private

Definition at line 102 of file TaggedComponent.cpp.

References TaggedMID.

◆ CreateSceneProxy() [3/5]

FPrimitiveSceneProxy * UTaggedComponent::CreateSceneProxy ( USkeletalMeshComponent *  SkeletalMeshComponent)
private

Definition at line 129 of file TaggedComponent.cpp.

References bShouldWaitFrame, and TaggedMID.

◆ CreateSceneProxy() [4/5]

FPrimitiveSceneProxy * UTaggedComponent::CreateSceneProxy ( UHierarchicalInstancedStaticMeshComponent *  MeshComponent)
private

Definition at line 156 of file TaggedComponent.cpp.

References TaggedMID.

◆ CreateSceneProxy() [5/5]

FPrimitiveSceneProxy * UTaggedComponent::CreateSceneProxy ( UInstancedStaticMeshComponent *  MeshComponent)
private

Definition at line 177 of file TaggedComponent.cpp.

References TaggedMID.

◆ GetColor()

FLinearColor UTaggedComponent::GetColor ( )

Definition at line 48 of file TaggedComponent.cpp.

References Color.

◆ OnRegister()

void UTaggedComponent::OnRegister ( )
overridevirtual

Definition at line 24 of file TaggedComponent.cpp.

References Color, IsValid(), SetColor(), TaggedMaterial, and TaggedMID.

+ Here is the call graph for this function:

◆ SetColor()

void UTaggedComponent::SetColor ( FLinearColor  color)

Definition at line 38 of file TaggedComponent.cpp.

References Color, IsValid(), and TaggedMID.

Referenced by OnRegister(), and ATagger::TagActor().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ TickComponent()

void UTaggedComponent::TickComponent ( float  DeltaTime,
enum ELevelTick  TickType,
FActorComponentTickFunction *  ThisTickFunction 
)
overridevirtual

Definition at line 197 of file TaggedComponent.cpp.

References bShouldWaitFrame, bSkeletalMesh, and NumFramesToWait.

Member Data Documentation

◆ bShouldWaitFrame

bool UTaggedComponent::bShouldWaitFrame = true
private

Definition at line 44 of file TaggedComponent.h.

Referenced by CreateSceneProxy(), and TickComponent().

◆ bSkeletalMesh

bool UTaggedComponent::bSkeletalMesh = false
private

Definition at line 36 of file TaggedComponent.h.

Referenced by CreateSceneProxy(), and TickComponent().

◆ Color

FLinearColor UTaggedComponent::Color
private

Definition at line 28 of file TaggedComponent.h.

Referenced by GetColor(), OnRegister(), and SetColor().

◆ NumFramesToWait

int UTaggedComponent::NumFramesToWait = 2
private

Definition at line 45 of file TaggedComponent.h.

Referenced by TickComponent().

◆ TaggedMaterial

UMaterial* UTaggedComponent::TaggedMaterial
private

Definition at line 31 of file TaggedComponent.h.

Referenced by OnRegister(), and UTaggedComponent().

◆ TaggedMID

UMaterialInstanceDynamic* UTaggedComponent::TaggedMID
private

Definition at line 34 of file TaggedComponent.h.

Referenced by CreateSceneProxy(), OnRegister(), and SetColor().


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