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.hpp
1
//
2
// Created by owd on 24/06/2026.
3
//
4
5
#ifndef ECHOMAP_SENSOR_HPP
6
#define ECHOMAP_SENSOR_HPP
7
8
#include "
../utility/Colour.hpp
"
9
#include "
../utility/Position.hpp
"
10
#include "
Object.hpp
"
11
12
namespace
echomap
13
{
14
15
class
Sensor :
public
Object<Sensor>
16
{
17
public
:
18
Position
position{};
19
Colour
colour{};
20
21
explicit
Sensor(
std::string_view
name
= {});
22
23
explicit
Sensor(
Position
position,
std::string_view
name
= {});
24
25
Sensor(
const
Sensor& old_sensor);
26
Sensor(
const
Sensor& old_sensor,
std::string_view
new_name);
27
28
void
set_colour(
Colour
new_colour)
noexcept
;
29
void
set_position(
Position
new_position)
noexcept
;
30
};
31
32
template
<>
constexpr
std::string_view
Object<Sensor>::class_name
=
"Sensor"
;
33
34
}
// namespace echomap
35
36
#endif
// ECHOMAP_SENSOR_HPP
Colour.hpp
Colour specification.
Object.hpp
Object specification.
Position.hpp
Position specification.
std::string_view
echomap::Object< Sensor >::name
std::string name
Definition
Object.hpp:239
echomap::Object::class_name
static constexpr std::string_view class_name
Display name for objects of the type determined by the templated class.
Definition
Object.hpp:235
echomap
The main EchoMap outermost namespace for all non-exported symbols.
Definition
ActionController.hpp:20
echomap::Colour
A generic RGBA structure.
Definition
Colour.hpp:20
echomap::Position
A generic 3D position structure.
Definition
Position.hpp:20
src
objects
Sensor.hpp
Generated by
1.17.0