Agrarsense
|
#include <Tagger.h>
Public Member Functions | |
ATagger () | |
void | ExportObjectLocationsToCSV () |
AActor * | GetActorByInstanceID (float InstanceID) |
Protected Member Functions | |
virtual void | BeginPlay () override |
virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
void | CreateCSVFile () |
void | TagExistingActors () |
void | OnActorSpawned (AActor *Actor) |
void | TagActor (AActor &Actor) |
void | WriteComponentToCSV (const FTaggedActorData Data) |
float | SetStencilValue (UPrimitiveComponent &Component, AActor &Actor, const ELabels &Label) |
void | TagLandscape (ALandscape *Landscape, AActor &Actor) |
ELabels | GetLabelFromString (const FString &String) |
ELabels | GetLabelFromStaticComponent (UStaticMeshComponent *StaticMeshComponentPtr) |
ELabels | GetLabelFromSkeletalMeshComponent (USkeletalMeshComponent *USkeletalMeshComponentPtr) |
ELabels | GetLabelFromPath (const FString &Path, FString &FolderName) |
template<typename T > | |
ELabels | GetLabelFromTag (const T *Object) |
Private Attributes | |
AGeoReferencingSystem * | GeoReferencingSystem = nullptr |
UCSVFile * | CSVFile = nullptr |
TArray< FTaggedActorData > | TaggedActors |
FDelegateHandle | ActorSpawnedDelegateHandle |
TMap< FString, ELabels > | LabelMap |
bool | TerrainIDCached = false |
uint32 | CachedTerrainID = 0 |
float | ID = 1.0f |
ATagger::ATagger | ( | ) |
Definition at line 26 of file Tagger.cpp.
|
overrideprotectedvirtual |
Definition at line 31 of file Tagger.cpp.
References ActorSpawnedDelegateHandle, UAgrarsenseSettings::IsPlayingInMainMenu(), LabelMap, OnActorSpawned(), and TagExistingActors().
|
protected |
Definition at line 232 of file Tagger.cpp.
References FCSVFileSettings::Append, UCSVFile::CreateCSVFile(), FCSVFileSettings::CreateUnique, CSVFile, FCSVFileSettings::Delimiter, FCSVFileSettings::FileWriteOption, GeoReferencingSystem, Queue, FCSVFileSettings::QueueSize, Semicolon, and UCSVFile::WriteRow().
Referenced by ExportObjectLocationsToCSV().
|
overrideprotectedvirtual |
Definition at line 55 of file Tagger.cpp.
References ActorSpawnedDelegateHandle, and TaggedActors.
void ATagger::ExportObjectLocationsToCSV | ( | ) |
Definition at line 192 of file Tagger.cpp.
References UCSVFile::Close(), CreateCSVFile(), CSVFile, TaggedActors, and WriteComponentToCSV().
AActor * ATagger::GetActorByInstanceID | ( | float | InstanceID | ) |
Definition at line 219 of file Tagger.cpp.
References TaggedActors.
Referenced by UROSCommands::HandleDestroyObjectByInstanceID(), and UROSCommands::HandleTeleportSpectatorByInstanceID().
|
protected |
Definition at line 445 of file Tagger.cpp.
References GetLabelFromString(), and None.
Referenced by GetLabelFromSkeletalMeshComponent(), and GetLabelFromStaticComponent().
|
protected |
Definition at line 415 of file Tagger.cpp.
References GetLabelFromPath(), GetLabelFromTag(), and None.
Referenced by TagActor().
|
protected |
Definition at line 385 of file Tagger.cpp.
References GetLabelFromPath(), GetLabelFromTag(), and None.
Referenced by TagActor().
|
protected |
Definition at line 369 of file Tagger.cpp.
References LabelMap, and None.
Referenced by GetLabelFromPath().
|
inlineprotected |
Definition at line 95 of file Tagger.h.
References None.
Referenced by GetLabelFromSkeletalMeshComponent(), and GetLabelFromStaticComponent().
|
protected |
Definition at line 87 of file Tagger.cpp.
References TagActor().
Referenced by BeginPlay().
|
protected |
Definition at line 170 of file Tagger.cpp.
References CastEnum(), and ID.
Referenced by TagActor().
|
protected |
Definition at line 101 of file Tagger.cpp.
References FTaggedActorData::Actor, GetLabelFromSkeletalMeshComponent(), GetLabelFromStaticComponent(), FTaggedActorData::InstanceID, FTaggedActorData::Label, SetStencilValue(), FTaggedActorData::SkeletalMeshComponent, FTaggedActorData::StaticMeshComponent, TaggedActors, and TagLandscape().
Referenced by OnActorSpawned(), and TagExistingActors().
|
protected |
Definition at line 63 of file Tagger.cpp.
References TagActor(), and TaggedActors.
Referenced by BeginPlay().
|
protected |
Definition at line 338 of file Tagger.cpp.
References CastEnum(), and Terrain.
Referenced by TagActor().
|
protected |
Definition at line 262 of file Tagger.cpp.
References FTaggedActorData::Actor, CSVFile, GeoReferencingSystem, FTaggedActorData::InstanceID, FTaggedActorData::SkeletalMeshComponent, FTaggedActorData::StaticMeshComponent, UCoordinateConversionUtilities::UnrealToGeographicCoordinates(), and UCSVFile::WriteRow().
Referenced by ExportObjectLocationsToCSV().
|
private |
Definition at line 113 of file Tagger.h.
Referenced by BeginPlay(), and EndPlay().
|
private |
Definition at line 109 of file Tagger.h.
Referenced by CreateCSVFile(), ExportObjectLocationsToCSV(), and WriteComponentToCSV().
|
private |
Definition at line 107 of file Tagger.h.
Referenced by CreateCSVFile(), and WriteComponentToCSV().
|
private |
Definition at line 123 of file Tagger.h.
Referenced by SetStencilValue().
|
private |
Definition at line 115 of file Tagger.h.
Referenced by BeginPlay(), and GetLabelFromString().
|
private |
Definition at line 111 of file Tagger.h.
Referenced by EndPlay(), ExportObjectLocationsToCSV(), GetActorByInstanceID(), TagActor(), and TagExistingActors().