nx_metadata_sdk 1.0 Metadata SDK

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 <vector>
6
7 #include <nx/sdk/helpers/ref_countable.h>
8 #include <nx/sdk/ptr.h>
9 #include <nx/sdk/analytics/i_object_track_best_shot_packet.h>
10
11 namespace nx {
12 namespace sdk {
13 namespace analytics {
14
15 class ObjectTrackBestShotPacket: public RefCountable<IObjectTrackBestShotPacket>
16 {
17 public:
18 ObjectTrackBestShotPacket(Uuid trackId, int64_t timestampUs, Rect boundingBox = Rect());
19
20 virtual int64_t timestampUs() const override;
21
22 protected:
23 virtual void getTrackId(Uuid* outValue) const override;
24 virtual void getBoundingBox(Rect* outValue) const override;
25
26 private:
27 Uuid m_trackId;
28 int64_t m_timestampUs = -1;
29 Rect m_boundingBox;
30 };
31
32 } // namespace analytics
33 } // namespace sdk
34 } // namespace nx
nx::sdk::Uuid
Definition: uuid.h:21
nx::sdk::analytics::ObjectTrackBestShotPacket
Definition: object_track_best_shot_packet.h:15
nx
Definition: apple_utils.h:6
nx::sdk::RefCountable
Definition: ref_countable.h:84
nx::sdk::analytics::Rect
Definition: rect.h:9