Agrarsense
Unreal
Agrarsense
Source
Agrarsense
Sensor
SensorModel.h
Go to the documentation of this file.
1
// Copyright (c) 2023 FrostBit Software Lab at the Lapland University of Applied Sciences
2
//
3
// This work is licensed under the terms of the MIT license.
4
// For a copy, see <https://opensource.org/licenses/MIT>.
5
6
#pragma once
7
8
#include "CoreMinimal.h"
9
#include "GameFramework/Actor.h"
10
11
#include "
Agrarsense/Utils/EnumUtilities.h
"
12
#include "
Agrarsense/Sensor/SensorTypes.h
"
13
14
#include "SensorModel.generated.h"
15
19
UCLASS()
20
class AGRARSENSE_API
ASensorModel
: public AActor
21
{
22
GENERATED_BODY()
23
24
public
:
26
UFUNCTION(BlueprintImplementableEvent, BlueprintCallable)
27
void InitAfterSpawn();
28
30
UFUNCTION(BlueprintPure)
31
ASensor
* GetAttachedToSensor()
const
32
{
33
return
AttachedToSensor;
34
}
35
37
UFUNCTION(BlueprintCallable)
38
void SetAttachedToSensor(
ASensor
* NewAttachedToSensor)
39
{
40
AttachedToSensor = NewAttachedToSensor;
41
}
42
43
protected
:
44
private
:
46
UPROPERTY()
47
TObjectPtr<
ASensor
> AttachedToSensor;
48
};
EnumUtilities.h
SensorTypes.h
ASensorModel
Definition:
SensorModel.h:21
ASensor
Definition:
Sensor.h:44
Generated by
1.9.4