nx_server_plugin_sdk 1.0 Server Plugin SDK

i_object_track_best_shot_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/i_attribute.h>
8 #include <nx/sdk/interface.h>
9
10 namespace nx::sdk::analytics {
11
15 class IObjectTrackBestShotPacket0: public Interface<IObjectTrackBestShotPacket0, IMetadataPacket0>
16 {
17 public:
18 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket"); }
19
25 virtual int64_t timestampUs() const override = 0;
26
28 protected: virtual void getTrackId(Uuid* outValue) const = 0;
30 public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
31
33 protected: virtual void getBoundingBox(Rect* outValue) const = 0;
38 public: Rect boundingBox() const { Rect value; getBoundingBox(&value); return value; }
39 };
40
41 class IObjectTrackBestShotPacket1:
42 public Interface<IObjectTrackBestShotPacket1, IObjectTrackBestShotPacket0>
43 {
44 public:
45 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket1"); }
46
51 virtual const char* imageUrl() const = 0;
52
57 virtual const char* imageData() const = 0;
58
62 virtual int imageDataSize() const = 0;
63
69 virtual const char* imageDataFormat() const = 0;
70
72 protected: virtual const IAttribute* getAttribute(int index) const = 0;
80 public: Ptr<const IAttribute> attribute(int index) const { return Ptr(getAttribute(index)); }
81
85 virtual int attributeCount() const = 0;
86 };
87
88 class IObjectTrackBestShotPacket:
89 public Interface<IObjectTrackBestShotPacket, IObjectTrackBestShotPacket1>
90 {
91 public:
92 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket2"); }
93
94 virtual Flags flags() const = 0;
95 };
96 using IObjectTrackBestShotPacket2 = IObjectTrackBestShotPacket;
97
98 } // namespace nx::sdk::analytics
nx::sdk::analytics::IObjectTrackBestShotPacket1::getAttribute
virtual const IAttribute * getAttribute(int index) const =0
nx::sdk::analytics::IObjectTrackBestShotPacket0::timestampUs
virtual int64_t timestampUs() const override=0
nx::sdk::analytics::IObjectTrackBestShotPacket0::trackId
Uuid trackId() const
Definition: i_object_track_best_shot_packet.h:30
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::analytics::IObjectTrackBestShotPacket1::attribute
Ptr< const IAttribute > attribute(int index) const
Definition: i_object_track_best_shot_packet.h:80
nx::sdk::analytics::IObjectTrackBestShotPacket1::imageUrl
virtual const char * imageUrl() const =0
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::analytics::IObjectTrackBestShotPacket1
Definition: i_object_track_best_shot_packet.h:41
nx::sdk::analytics::IObjectTrackBestShotPacket0::getTrackId
virtual void getTrackId(Uuid *outValue) const =0
nx::sdk::analytics
Definition: consuming_device_agent.cpp:25
nx::sdk::Uuid
Definition: uuid.h:22
nx::sdk::analytics::IObjectTrackBestShotPacket0::getBoundingBox
virtual void getBoundingBox(Rect *outValue) const =0
nx::sdk::IAttribute
Definition: i_attribute.h:9
nx::sdk::analytics::IObjectTrackBestShotPacket1::imageDataSize
virtual int imageDataSize() const =0
nx::sdk::analytics::IObjectTrackBestShotPacket1::attributeCount
virtual int attributeCount() const =0
nx::sdk::analytics::IObjectTrackBestShotPacket0
Definition: i_object_track_best_shot_packet.h:15
nx::sdk::analytics::IObjectTrackBestShotPacket1::imageData
virtual const char * imageData() const =0
nx::sdk::analytics::IObjectTrackBestShotPacket0::boundingBox
Rect boundingBox() const
Definition: i_object_track_best_shot_packet.h:38
nx::sdk::analytics::IObjectTrackBestShotPacket
Definition: i_object_track_best_shot_packet.h:88
nx::sdk::analytics::Rect
Definition: rect.h:9
nx::sdk::analytics::IObjectTrackBestShotPacket1::imageDataFormat
virtual const char * imageDataFormat() const =0