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/interface.h>
6
7 #include <nx/sdk/analytics/i_metadata_packet.h>
8 #include <nx/sdk/analytics/rect.h>
9 #include <nx/sdk/i_attribute.h>
10
11 namespace nx {
12 namespace sdk {
13 namespace analytics {
14
18 class IObjectTrackBestShotPacket0: public Interface<IObjectTrackBestShotPacket0, IMetadataPacket0>
19 {
20 public:
21 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket"); }
22
28 virtual int64_t timestampUs() const override = 0;
29
31 protected: virtual void getTrackId(Uuid* outValue) const = 0;
33 public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
34
36 protected: virtual void getBoundingBox(Rect* outValue) const = 0;
41 public: Rect boundingBox() const { Rect value; getBoundingBox(&value); return value; }
42 };
43
44 class IObjectTrackBestShotPacket1:
45 public Interface<IObjectTrackBestShotPacket1, IObjectTrackBestShotPacket0>
46 {
47 public:
48 static auto interfaceId()
49 {
50 return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket1");
51 }
52
57 virtual const char* imageUrl() const = 0;
58
63 virtual const char* imageData() const = 0;
64
68 virtual int imageDataSize() const = 0;
69
75 virtual const char* imageDataFormat() const = 0;
76
78 protected: virtual const IAttribute* getAttribute(int index) const = 0;
85 public: Ptr<const IAttribute> attribute(int index) const { return toPtr(getAttribute(index)); }
86
90 virtual int attributeCount() const = 0;
91 };
92
93 class IObjectTrackBestShotPacket:
94 public Interface<IObjectTrackBestShotPacket, IObjectTrackBestShotPacket1>
95 {
96 public:
97 static auto interfaceId()
98 {
99 return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket2");
100 }
101
102 virtual Flags flags() const = 0;
103 };
104 using IObjectTrackBestShotPacket2 = IObjectTrackBestShotPacket;
105
106 } // namespace analytics
107 } // namespace sdk
108 } // namespace nx
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:33
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::analytics::IObjectTrackBestShotPacket1::attribute
Ptr< const IAttribute > attribute(int index) const
Definition: i_object_track_best_shot_packet.h:85
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:44
nx::sdk::analytics::IObjectTrackBestShotPacket0::getTrackId
virtual void getTrackId(Uuid *outValue) const =0
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:10
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:18
nx::sdk::analytics::IObjectTrackBestShotPacket1::imageData
virtual const char * imageData() const =0
nx
Definition: apple_utils.h:6
nx::sdk::analytics::IObjectTrackBestShotPacket0::boundingBox
Rect boundingBox() const
Definition: i_object_track_best_shot_packet.h:41
nx::sdk::analytics::IObjectTrackBestShotPacket
Definition: i_object_track_best_shot_packet.h:93
nx::sdk::analytics::Rect
Definition: rect.h:11
nx::sdk::analytics::IObjectTrackBestShotPacket1::imageDataFormat
virtual const char * imageDataFormat() const =0