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

Class to draw on HUD. More...

#include <CarlaHUD.h>

Inheritance diagram for ACarlaHUD:

Public Member Functions

 ACarlaHUD (const FObjectInitializer &ObjectInitializer)
void AddDebugVehicleForTelemetry (UChaosWheeledVehicleMovementComponent *NewDebugVehiclePtr)
void AddHUDString (const FString Str, const FVector Location, const FColor Color, double LifeTime)
void ClearDebugStrings ()
void DrawDebug (float &YL, float &YPos)
 Draw 2D debug text graphs on UI for the wheels, suspension and other systems.
virtual void DrawHUD () override

Public Attributes

UChaosWheeledVehicleMovementComponent * DebugVehicle = nullptr

Private Attributes

TArray< HUDString > StringList

Detailed Description

Class to draw on HUD.

Definition at line 44 of file CarlaHUD.h.

Constructor & Destructor Documentation

◆ ACarlaHUD()

ACarlaHUD::ACarlaHUD ( const FObjectInitializer & ObjectInitializer)
inline

Definition at line 50 of file CarlaHUD.h.

Member Function Documentation

◆ AddDebugVehicleForTelemetry()

void ACarlaHUD::AddDebugVehicleForTelemetry ( UChaosWheeledVehicleMovementComponent * NewDebugVehiclePtr)
inline

Definition at line 63 of file CarlaHUD.h.

References DebugVehicle.

Referenced by ACarlaWheeledVehicle::ShowDebugTelemetry().

◆ AddHUDString()

void ACarlaHUD::AddHUDString ( const FString Str,
const FVector Location,
const FColor Color,
double LifeTime )

Definition at line 56 of file CarlaHUD.cpp.

References StringList.

Referenced by FShapeVisitor::operator()().

◆ ClearDebugStrings()

void ACarlaHUD::ClearDebugStrings ( )
inline

Definition at line 70 of file CarlaHUD.h.

References StringList.

Referenced by FCarlaServer::FPimpl::BindActions().

◆ DrawDebug()

void ACarlaHUD::DrawDebug ( float & YL,
float & YPos )

Draw 2D debug text graphs on UI for the wheels, suspension and other systems.

Definition at line 64 of file CarlaHUD.cpp.

References DebugVehicle.

Referenced by DrawHUD().

◆ DrawHUD()

void ACarlaHUD::DrawHUD ( )
overridevirtual

Definition at line 17 of file CarlaHUD.cpp.

References DebugVehicle, DrawDebug(), and StringList.

Member Data Documentation

◆ DebugVehicle

UChaosWheeledVehicleMovementComponent* ACarlaHUD::DebugVehicle = nullptr

◆ StringList

TArray<HUDString> ACarlaHUD::StringList
private

Definition at line 76 of file CarlaHUD.h.

Referenced by AddHUDString(), ClearDebugStrings(), and DrawHUD().


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