Agrarsense
Public Member Functions | Public Attributes | List of all members
USensorDataAsset Class Reference

#include <SensorDataAsset.h>

Inheritance diagram for USensorDataAsset:
Inheritance graph
[legend]
Collaboration diagram for USensorDataAsset:
Collaboration graph
[legend]

Public Member Functions

FText GetShortNameWithFallback ()
 

Public Attributes

FString UniqueIdentifier
 
ESensorTypes SensorType
 
FText Name
 
FText ShortName
 
FText Description
 
TSubclassOf< ASensorModelModelClass
 
TSubclassOf< ASensorActorClass
 
TObjectPtr< UTexture2D > Icon
 

Detailed Description

Data class to represent data of a sensor e.g. Lidar, thermal camera

Definition at line 23 of file SensorDataAsset.h.

Member Function Documentation

◆ GetShortNameWithFallback()

FText USensorDataAsset::GetShortNameWithFallback ( )
inline

Get short name if set, otherwise fallback to default longer name

Definition at line 31 of file SensorDataAsset.h.

32 {
33 return ShortName.IsEmpty() ? Name : ShortName;
34 }

Member Data Documentation

◆ ActorClass

TSubclassOf<ASensor> USensorDataAsset::ActorClass

Actual sensor class to spawn

Definition at line 62 of file SensorDataAsset.h.

◆ Description

FText USensorDataAsset::Description

Description about what this sensor does, how it works where it is used etc.

Definition at line 54 of file SensorDataAsset.h.

◆ Icon

TObjectPtr<UTexture2D> USensorDataAsset::Icon

Sensor icon for UI

Definition at line 66 of file SensorDataAsset.h.

◆ ModelClass

TSubclassOf<ASensorModel> USensorDataAsset::ModelClass

Class of the visual 3D-model which should be spawned

Definition at line 58 of file SensorDataAsset.h.

Referenced by USensorFactory::SpawnModelClassForSensor().

◆ Name

FText USensorDataAsset::Name

Long name of the sensor e.g. "Thermal Camera" or "Lidar"

Definition at line 46 of file SensorDataAsset.h.

◆ SensorType

ESensorTypes USensorDataAsset::SensorType

Which sensor type is this data for

Definition at line 42 of file SensorDataAsset.h.

◆ ShortName

FText USensorDataAsset::ShortName

Shorter name e.g. Thermal Camera -> Thermal etc.

Definition at line 50 of file SensorDataAsset.h.

◆ UniqueIdentifier

FString USensorDataAsset::UniqueIdentifier

Unique identifier

Definition at line 38 of file SensorDataAsset.h.

Referenced by USensorMapDataAsset::GetAssetDataByUniqueIdentifier().


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