nx_server_plugin_sdk 1.0 Server Plugin SDK

i_object_track_title_packet.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <nx/sdk/analytics/i_metadata_packet.h>
6 #include <nx/sdk/analytics/rect.h>
7 #include <nx/sdk/interface.h>
8
9 namespace nx::sdk::analytics {
10
14 class IObjectTrackTitlePacket: public Interface<IObjectTrackTitlePacket, IMetadataPacket0>
15 {
16 public:
17 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackTitlePacket"); }
18
24 virtual int64_t timestampUs() const override = 0;
25
27 protected: virtual void getTrackId(Uuid* outValue) const = 0;
29 public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
30
32 protected: virtual void getBoundingBox(Rect* outValue) const = 0;
37 public: Rect boundingBox() const { Rect value; getBoundingBox(&value); return value; }
38
42 virtual const char* text() const = 0;
43
48 virtual const char* imageUrl() const = 0;
49
54 virtual const char* imageData() const = 0;
55
59 virtual int imageDataSize() const = 0;
60
66 virtual const char* imageDataFormat() const = 0;
67
68 virtual Flags flags() const = 0;
69 };
70 using IObjectTrackTitlePacket0 = IObjectTrackTitlePacket;
71
72 } // namespace nx::sdk::analytics
nx::sdk::analytics::IObjectTrackTitlePacket::imageDataFormat
virtual const char * imageDataFormat() const =0
nx::sdk::analytics::IObjectTrackTitlePacket::boundingBox
Rect boundingBox() const
Definition: i_object_track_title_packet.h:37
nx::sdk::analytics::IObjectTrackTitlePacket::imageUrl
virtual const char * imageUrl() const =0
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::analytics::IObjectTrackTitlePacket
Definition: i_object_track_title_packet.h:14
nx::sdk::analytics
Definition: consuming_device_agent.cpp:25
nx::sdk::Uuid
Definition: uuid.h:22
nx::sdk::analytics::IObjectTrackTitlePacket::getBoundingBox
virtual void getBoundingBox(Rect *outValue) const =0
nx::sdk::analytics::IObjectTrackTitlePacket::imageDataSize
virtual int imageDataSize() const =0
nx::sdk::analytics::IObjectTrackTitlePacket::timestampUs
virtual int64_t timestampUs() const override=0
nx::sdk::analytics::IObjectTrackTitlePacket::text
virtual const char * text() const =0
nx::sdk::analytics::IObjectTrackTitlePacket::imageData
virtual const char * imageData() const =0
nx::sdk::analytics::IObjectTrackTitlePacket::getTrackId
virtual void getTrackId(Uuid *outValue) const =0
nx::sdk::analytics::IObjectTrackTitlePacket::trackId
Uuid trackId() const
Definition: i_object_track_title_packet.h:29
nx::sdk::analytics::Rect
Definition: rect.h:9