EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
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
10#include "Object.hpp"
11
12namespace echomap
13{
14
15class Sensor : public Object<Sensor>
16{
17public:
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
32template <> constexpr std::string_view Object<Sensor>::class_name = "Sensor";
33
34} // namespace echomap
35
36#endif // ECHOMAP_SENSOR_HPP
Colour specification.
Object specification.
Position specification.
static constexpr std::string_view class_name
Display name for objects of the type determined by the templated class.
Definition Object.hpp:235
The main EchoMap outermost namespace for all non-exported symbols.
A generic RGBA structure.
Definition Colour.hpp:20
A generic 3D position structure.
Definition Position.hpp:20