nx_metadata_sdk 1.0 Metadata SDK

i_object_metadata.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 #include <nx/sdk/uuid.h>
7 #include <nx/sdk/i_attribute.h>
8 #include <nx/sdk/analytics/rect.h>
9 #include <nx/sdk/analytics/i_metadata.h>
10
11 namespace nx {
12 namespace sdk {
13 namespace analytics {
14
18 class IObjectMetadata: public Interface<IObjectMetadata, IMetadata>
19 {
20 public:
21 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectMetadata"); }
22
28 protected: virtual void getTrackId(Uuid* outValue) const = 0;
29 public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
30
34 virtual const char* subtype() const = 0;
35
39 protected: virtual void getBoundingBox(Rect* outValue) const = 0;
40 public: Rect boundingBox() const { Rect value; getBoundingBox(&value); return value; }
41
42 };
43
44 } // namespace analytics
45 } // namespace sdk
46 } // namespace nx
nx::sdk::Interface
Definition: interface.h:28
nx::sdk::analytics::IObjectMetadata::subtype
virtual const char * subtype() const =0
nx::sdk::Uuid
Definition: uuid.h:21
nx::sdk::analytics::IObjectMetadata
Definition: i_object_metadata.h:18
nx
Definition: apple_utils.h:6
nx::sdk::analytics::IObjectMetadata::getBoundingBox
virtual void getBoundingBox(Rect *outValue) const =0
nx::sdk::analytics::Rect
Definition: rect.h:9
nx::sdk::analytics::IObjectMetadata::getTrackId
virtual void getTrackId(Uuid *outValue) const =0