|
Agrarsense
|
#include <Tagger.h>


Public Member Functions | |
| ATagger () | |
| void | ExportObjectLocationsToCSV () |
| AActor * | TryGetActorByInstanceID (int32 LabelIndex, int32 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) |
| int32 | 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 |
| TMap< ELabels, int32 > | LabelCounters |
| 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 222 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 180 of file Tagger.cpp.
References UCSVFile::Close(), CreateCSVFile(), CSVFile, TaggedActors, and WriteComponentToCSV().
|
protected |
Definition at line 451 of file Tagger.cpp.
References GetLabelFromString(), and None.
Referenced by GetLabelFromSkeletalMeshComponent(), and GetLabelFromStaticComponent().
|
protected |
Definition at line 421 of file Tagger.cpp.
References GetLabelFromPath(), GetLabelFromTag(), and None.
Referenced by TagActor().
|
protected |
Definition at line 391 of file Tagger.cpp.
References GetLabelFromPath(), GetLabelFromTag(), and None.
Referenced by TagActor().
|
protected |
Definition at line 375 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 151 of file Tagger.cpp.
References LabelCounters.
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 341 of file Tagger.cpp.
References Terrain.
Referenced by TagActor().
| AActor * ATagger::TryGetActorByInstanceID | ( | int32 | LabelIndex, |
| int32 | InstanceID | ||
| ) |
Definition at line 207 of file Tagger.cpp.
References TaggedActors.
Referenced by UROSCommands::HandleDestroyObjectByInstanceID(), and UROSCommands::HandleTeleportSpectatorByInstanceID().
|
protected |
Definition at line 252 of file Tagger.cpp.
References FTaggedActorData::Actor, CSVFile, GeoReferencingSystem, FTaggedActorData::InstanceID, FTaggedActorData::Label, 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 125 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(), TagActor(), TagExistingActors(), and TryGetActorByInstanceID().