EchoMap 2026-07-25 6d3977c
An experimental cross-platform digital signal processing application for sound-source localisation.
Loading...
Searching...
No Matches
echomap::Sensor Class Reference
Inheritance diagram for echomap::Sensor:
[legend]

Public Member Functions

 Sensor (std::string_view name={})
 Sensor (Position position, std::string_view name={})
 Sensor (const Sensor &old_sensor)
 Sensor (const Sensor &old_sensor, std::string_view new_name)
void set_colour (Colour new_colour) noexcept
void set_position (Position new_position) noexcept
Public Member Functions inherited from echomap::Object< Sensor >
 ~Object ()=default
 Non-virtual base destructor.
id_type get_id () const noexcept
bool is_valid () const noexcept
void set_name (const std::string_view new_name)
std::string_view get_name () const noexcept
const char * get_imgui_name () const noexcept
 Object (const Object &)=delete
Object & operator= (const Object &)=delete
bool operator== (const Object &other) const noexcept
 Determine shallow equality between two Object instances.

Public Attributes

Position position {}
Colour colour {}

Additional Inherited Members

Static Public Member Functions inherited from echomap::Object< Sensor >
static std::string_view get_class_name () noexcept
Protected Member Functions inherited from echomap::Object< Sensor >
void move_identity_from (Object &&other) noexcept
 Helper for derived classes to provide move-assignment operations.

Detailed Description

Definition at line 15 of file Sensor.hpp.

Constructor & Destructor Documentation

◆ Sensor() [1/4]

echomap::Sensor::Sensor ( std::string_view name = {})
explicit

Definition at line 10 of file Sensor.cpp.

12 :
13 Object(name)
14{
15}

◆ Sensor() [2/4]

echomap::Sensor::Sensor ( Position position,
std::string_view name = {} )
explicit

Definition at line 17 of file Sensor.cpp.

20 :
21 Object(name),
22 position(position)
23{
24}

◆ Sensor() [3/4]

echomap::Sensor::Sensor ( const Sensor & old_sensor)

Definition at line 26 of file Sensor.cpp.

28 :
29 Object(CopyTag{}, old_sensor)
30{
31}

◆ Sensor() [4/4]

echomap::Sensor::Sensor ( const Sensor & old_sensor,
std::string_view new_name )

Definition at line 33 of file Sensor.cpp.

36 :
37 Object(CopyTag{}, old_sensor, new_name)
38{
39}

Member Function Documentation

◆ set_colour()

void echomap::Sensor::set_colour ( Colour new_colour)
noexcept

Definition at line 41 of file Sensor.cpp.

44{
45 colour = new_colour;
46}

◆ set_position()

void echomap::Sensor::set_position ( Position new_position)
noexcept

Definition at line 48 of file Sensor.cpp.

51{
52 position = new_position;
53}

Member Data Documentation

◆ colour

Colour echomap::Sensor::colour {}

Definition at line 19 of file Sensor.hpp.

19{};

◆ position

Position echomap::Sensor::position {}

Definition at line 18 of file Sensor.hpp.

18{};

The documentation for this class was generated from the following files: