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
10 namespace nx {
11 namespace sdk {
12 namespace analytics {
13
17 class IObjectTrackBestShotPacket: public Interface<IObjectTrackBestShotPacket, IMetadataPacket>
18 {
19 public:
20 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectTrackBestShotPacket"); }
21
26 virtual int64_t timestampUs() const override = 0;
27
29 protected: virtual void getTrackId(Uuid* outValue) const = 0;
30 public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
31
36 protected: virtual void getBoundingBox(Rect* outValue) const = 0;
37 public: Rect boundingBox() const { Rect value; getBoundingBox(&value); return value; }
38 };
39
40 } // namespace analytics
41 } // namespace sdk
42 } // namespace nx
nx::sdk::Interface
Definition: interface.h:28
nx::sdk::analytics::IObjectTrackBestShotPacket::getBoundingBox
virtual void getBoundingBox(Rect *outValue) const =0
nx::sdk::analytics::IObjectTrackBestShotPacket::timestampUs
virtual int64_t timestampUs() const override=0
nx::sdk::Uuid
Definition: uuid.h:21
nx
Definition: apple_utils.h:6
nx::sdk::analytics::IObjectTrackBestShotPacket::getTrackId
virtual void getTrackId(Uuid *outValue) const =0
nx::sdk::analytics::IObjectTrackBestShotPacket
Definition: i_object_track_best_shot_packet.h:17
nx::sdk::analytics::Rect
Definition: rect.h:9