EchoMap
2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Toggle main menu visibility
Loading...
Searching...
No Matches
Sensor.cpp
1
//
2
// Created by owd on 24/06/2026.
3
//
4
5
#include "Sensor.hpp"
6
7
namespace
echomap
8
{
9
10
Sensor::Sensor(
11
const
std::string_view name
12
) :
13
Object
(name)
14
{
15
}
16
17
Sensor::Sensor(
18
const
Position position,
19
const
std::string_view
name
20
) :
21
Object(name),
22
position(position)
23
{
24
}
25
26
Sensor::Sensor(
27
const
Sensor& old_sensor
28
) :
29
Object(CopyTag{}, old_sensor)
30
{
31
}
32
33
Sensor::Sensor(
34
const
Sensor& old_sensor,
35
const
std::string_view
new_name
36
) :
37
Object(CopyTag{}, old_sensor, new_name)
38
{
39
}
40
41
void
Sensor::set_colour(
42
const
Colour new_colour
43
)
noexcept
44
{
45
colour = new_colour;
46
}
47
48
void
Sensor::set_position(
49
const
Position new_position
50
)
noexcept
51
{
52
position = new_position;
53
}
54
55
}
// namespace echomap
std::string_view
echomap::Object
A participant in a runtime object model with a numerically unique identifier and display name.
Definition
Object.hpp:36
echomap
The main EchoMap outermost namespace for all non-exported symbols.
Definition
ActionController.hpp:20
src
objects
Sensor.cpp
Generated by
1.17.0