nx_metadata_sdk 1.0 Metadata 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()
46 {
47 return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket1");
48 }
49
54 virtual const char* imageUrl() const = 0;
55
60 virtual const char* imageData() const = 0;
61
65 virtual int imageDataSize() const = 0;
66
72 virtual const char* imageDataFormat() const = 0;
73
75 protected: virtual const IAttribute* getAttribute(int index) const = 0;
82 public: Ptr<const IAttribute> attribute(int index) const { return Ptr(getAttribute(index)); }
83
87 virtual int attributeCount() const = 0;
88 };
89
90 class IObjectTrackBestShotPacket:
91 public Interface<IObjectTrackBestShotPacket, IObjectTrackBestShotPacket1>
92 {
93 public:
94 static auto interfaceId()
95 {
96 return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket2");
97 }
98
99 virtual Flags flags() const = 0;
100 };
101 using IObjectTrackBestShotPacket2 = IObjectTrackBestShotPacket;
102
103 } // 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:82
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:24
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:90
nx::sdk::analytics::Rect
Definition: rect.h:9
nx::sdk::analytics::IObjectTrackBestShotPacket1::imageDataFormat
virtual const char * imageDataFormat() const =0