|
Agrarsense
|
#include <DeletionVolume.h>


Public Member Functions | |
| ADeletionVolume () | |
| void | ChangeOverlapBounds (FVector Bounds) |
| void | DestroyOverlappingActors (bool OnlyTrees) |
Protected Member Functions | |
| virtual void | BeginPlay () override |
| virtual void | EndPlay (const EEndPlayReason::Type EndPlayReason) override |
Protected Attributes | |
| UBoxComponent * | CollisionBox = nullptr |
| UBoundsVisualizerComponent * | VisualizerComponent = nullptr |
Definition at line 16 of file DeletionVolume.h.
| ADeletionVolume::ADeletionVolume | ( | ) |
Definition at line 19 of file DeletionVolume.cpp.
References CollisionBox, and VisualizerComponent.
|
overrideprotectedvirtual |
Definition at line 37 of file DeletionVolume.cpp.
References VisualizerComponent.
| void ADeletionVolume::ChangeOverlapBounds | ( | FVector | Bounds | ) |
Definition at line 65 of file DeletionVolume.cpp.
References CollisionBox, and VisualizerComponent.
Referenced by UROSCommands::HandleDestroyActors(), and USimulatorJsonParser::ParseVolumeDeletion().
| void ADeletionVolume::DestroyOverlappingActors | ( | bool | OnlyTrees | ) |
Destroys all actors overlapping with this actor's UBoxComponent. If OnlyTrees is true, only tree actors are destroyed; otherwise, all overlapping actors (InstancedActors) are destroyed.
| OnlyTrees | If true, only tree actors will be destroyed. If false, all overlapping actors will be destroyed. |
Definition at line 81 of file DeletionVolume.cpp.
References CollisionBox, Destroy, AInstancedRendererManager::DestroyOverlappingInstancesBox(), UAgrarsenseStatics::GetInstancedRenderer(), SimulatorLog::Log(), and Overlap.
Referenced by UROSCommands::HandleDestroyActors(), and USimulatorJsonParser::ParseVolumeDeletion().
|
overrideprotectedvirtual |
Definition at line 48 of file DeletionVolume.cpp.
References CollisionBox, and VisualizerComponent.
|
protected |
Definition at line 45 of file DeletionVolume.h.
Referenced by ADeletionVolume(), ChangeOverlapBounds(), DestroyOverlappingActors(), and EndPlay().
|
protected |
Definition at line 48 of file DeletionVolume.h.
Referenced by ADeletionVolume(), BeginPlay(), ChangeOverlapBounds(), and EndPlay().