Immersitech Logo Developer Home
immersitech_event_manager.h
Go to the documentation of this file.
1#pragma once
2
3#ifndef IMM_EVENT_MANAGER_H_
4#define IMM_EVENT_MANAGER_H_
5
6#include "immersitech.h"
7
10typedef enum {
22
29public:
30
35
39 virtual ~imm_event_manager() {}
40
45 virtual void create_room_event(int room_id) {}
46
51 virtual void destroy_room_event(int room_id) {}
52
60 virtual void add_participant_event(int room_id, int participant_id, const char* participant_name, imm_participant_configuration config) {}
61
67 virtual void remove_participant_event(int room_id, int participant_id) {}
68
75 virtual void set_participant_seat_event(int room_id, int participant_id, imm_seat seat) {}
76
84 virtual void set_participant_position_event(int room_id, int participant_id, imm_position position, imm_heading heading) {}
85
93 virtual void set_participant_state_event(int room_id, int participant_id, imm_audio_control control_to_edit, int value) {}
94
101 virtual void set_all_participants_state_event(int room_id, imm_audio_control control_to_edit, int value) {}
102
108 virtual void set_room_layout_event(int room_id, int room_layout_id) {}
109
116 virtual void set_name_event(int room_id, int participant_id, const char* name) {}
117
118private:
119};
120
121#endif //IMM_EVENT_MANAGER_H_
Default immersitech event manager.
Definition: immersitech_event_manager.h:28
virtual void set_participant_position_event(int room_id, int participant_id, imm_position position, imm_heading heading)
A function to propagate an IMM_EVENT_SET_PARTICIPANT_POSITION event.
Definition: immersitech_event_manager.h:84
virtual void destroy_room_event(int room_id)
A function to propagate an IMM_EVENT_DESTROY_ROOM event.
Definition: immersitech_event_manager.h:51
virtual void remove_participant_event(int room_id, int participant_id)
A function to propagate an IMM_EVENT_REMOVE_PARTICIPANT event.
Definition: immersitech_event_manager.h:67
virtual void set_room_layout_event(int room_id, int room_layout_id)
A function to propagate an IMM_EVENT_SET_ROOM_LAYOUT event.
Definition: immersitech_event_manager.h:108
virtual void create_room_event(int room_id)
A function to propagate an IMM_EVENT_CREATE_ROOM event.
Definition: immersitech_event_manager.h:45
virtual void set_participant_state_event(int room_id, int participant_id, imm_audio_control control_to_edit, int value)
A function to propagate an IMM_EVENT_SET_PARTICIPANT_STATE event.
Definition: immersitech_event_manager.h:93
virtual void set_participant_seat_event(int room_id, int participant_id, imm_seat seat)
A function to propagate an IMM_EVENT_SET_PARTICIPANT_SEAT event.
Definition: immersitech_event_manager.h:75
virtual ~imm_event_manager()
Destroy a default event manager.
Definition: immersitech_event_manager.h:39
imm_event_manager()
Create a default event manager.
Definition: immersitech_event_manager.h:34
virtual void add_participant_event(int room_id, int participant_id, const char *participant_name, imm_participant_configuration config)
A function to propagate an IMM_EVENT_ADD_PARTICIPANT event.
Definition: immersitech_event_manager.h:60
virtual void set_all_participants_state_event(int room_id, imm_audio_control control_to_edit, int value)
A function to propagate an IMM_EVENT_SET_ALL_PARTICIPANTS_STATE event.
Definition: immersitech_event_manager.h:101
virtual void set_name_event(int room_id, int participant_id, const char *name)
A function to propagate an IMM_EVENT_SET_NAME event.
Definition: immersitech_event_manager.h:116
imm_audio_control
Audio Controls you can change in real-time.
Definition: immersitech.h:79
imm_event_type
All possible events that an Immersitech Event manager can support.
Definition: immersitech_event_manager.h:10
@ IMM_EVENT_CREATE_ROOM
An event triggered when a room is created.
Definition: immersitech_event_manager.h:11
@ IMM_EVENT_ADD_PARTICIPANT
An event triggered when a participant is added to a room.
Definition: immersitech_event_manager.h:13
@ IMM_EVENT_DESTROY_ROOM
An event triggered when a room is destroyed.
Definition: immersitech_event_manager.h:12
@ IMM_EVENT_SET_PARTICIPANT_SEAT
An event triggered when a participant changes seats.
Definition: immersitech_event_manager.h:15
@ IMM_EVENT_SET_PARTICIPANT_STATE
An event triggered when a participant changes the value of an audio control.
Definition: immersitech_event_manager.h:17
@ IMM_EVENT_SET_NAME
An event triggered when a participant's name changes.
Definition: immersitech_event_manager.h:20
@ IMM_EVENT_SET_ALL_PARTICIPANTS_STATE
An event triggered when all participants change the value of an audio control.
Definition: immersitech_event_manager.h:18
@ IMM_EVENT_SET_ROOM_LAYOUT
An event triggered when a room has its layout changed.
Definition: immersitech_event_manager.h:19
@ IMM_EVENT_REMOVE_PARTICIPANT
An event triggered when a participant is removed from a room.
Definition: immersitech_event_manager.h:14
@ IMM_EVENT_SET_PARTICIPANT_POSITION
An event triggered when a participant changes position.
Definition: immersitech_event_manager.h:16
A structure to describe the direction a participant is facing in three-dimensional space.
Definition: immersitech.h:56
A structure to describe the configuration of a participant.
Definition: immersitech.h:172
A structure to describe a position within a three-dimensional space.
Definition: immersitech.h:43
A structure to describe a seat within a room.
Definition: immersitech.h:69