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 13 of file DeletionVolume.cpp.
References CollisionBox, and VisualizerComponent.
|
overrideprotectedvirtual |
Definition at line 28 of file DeletionVolume.cpp.
References VisualizerComponent.
void ADeletionVolume::ChangeOverlapBounds | ( | FVector | Bounds | ) |
Definition at line 56 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 72 of file DeletionVolume.cpp.
References CollisionBox, Destroy, AInstancedActor::IsTreeActor(), and SimulatorLog::Log().
Referenced by UROSCommands::HandleDestroyActors(), and USimulatorJsonParser::ParseVolumeDeletion().
|
overrideprotectedvirtual |
Definition at line 39 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().