Mech-Eye API 2.5.0
API reference documentation for Mech-Eye 3D Laser Profiler
|
Describes the event of profiler. Use ProfilerEvent::registerProfilerEventCallback to register an event of interest. More...
#include <ProfilerEvent.h>
Classes | |
struct | EventData |
struct | EventInfo |
Describes the event information. More... | |
struct | PayloadMember |
Describes the data member of the event's payload. More... | |
Public Types | |
enum | Event { PROFILER_EVENT_DISCONNECTED = 0x0001 , PROFILER_EVENT_ALL = 0xFFFF } |
Describes the types of Event. More... | |
using | EventCallback = std::function< void(Event event, void *pUser)> |
using | Payload = std::vector< PayloadMember > |
using | ProfilerEventCallback = std::function< void(const EventData *eventData, const void *extraPayload)> |
callback function for a camera event. | |
Static Public Member Functions | |
static ErrorStatus | registerProfilerEventCallback (Profiler &profiler, EventCallback callback, void *pUser, unsigned int events) |
Registers a profiler event of interest. | |
static ErrorStatus | getSupportedEvents (const Profiler &profiler, std::vector< EventInfo > &eventInfos) |
Get supported events by the profiler. | |
static ErrorStatus | registerProfilerEventCallback (Profiler &profiler, uint16_t event, const ProfilerEventCallback &callback) |
Registers a callback function to be executed when the specified Event occurs on the specified Profiler object. | |
static ErrorStatus | unregisterProfilerEventCallback (Profiler &profiler, uint16_t event) |
Cancels the registration of a callback function for the specified event and Profiler object. | |
Describes the event of profiler. Use ProfilerEvent::registerProfilerEventCallback to register an event of interest.
Definition at line 48 of file ProfilerEvent.h.
using mmind::eye::ProfilerEvent::EventCallback = std::function<void(Event event, void* pUser)> |
Definition at line 61 of file ProfilerEvent.h.
using mmind::eye::ProfilerEvent::Payload = std::vector<PayloadMember> |
Definition at line 148 of file ProfilerEvent.h.
using mmind::eye::ProfilerEvent::ProfilerEventCallback = std::function<void(const EventData* eventData, const void* extraPayload)> |
callback function for a camera event.
[in] | eventData | shared data among events. |
[in] | extraPayload | event-specific data. |
Definition at line 155 of file ProfilerEvent.h.
Describes the types of Event.
Enumerator | |
---|---|
PROFILER_EVENT_DISCONNECTED | The profiler has disconnected. |
PROFILER_EVENT_ALL | All profiler events. |
Definition at line 56 of file ProfilerEvent.h.
|
static |
Get supported events by the profiler.
profiler | The profiler for which to get supported events. |
eventInfos | The information of the events supported. |
|
static |
Registers a profiler event of interest.
[in] | profiler | The profiler handle. |
[in] | callback | The callback function for responding to profiler events. |
[in] | pUser | Pointer used by the user. |
[in] | events | The profiler event. See ProfilerEvent::Event for details. |
|
static |
Registers a callback function to be executed when the specified Event occurs on the specified Profiler object.
profiler | The profiler for which the callback function is registered. |
event | The event for which the callback function is registered. |
callback | The callback function to be executed when the specified event occurs. |
|
static |
Cancels the registration of a callback function for the specified event and Profiler object.
profiler | The Profiler for which to cancel the registration of the callback function. |
event | The event for which to cancel the registration of the callback function. |