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, IMetadata0>
19 {
20 public:
21 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectMetadata"); }
22
24 protected: virtual void getTrackId(Uuid* outValue) const = 0;
30 public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
31
35 virtual const char* subtype() const = 0;
36
38 protected: virtual void getBoundingBox(Rect* outValue) const = 0;
42 public: Rect boundingBox() const { Rect value; getBoundingBox(&value); return value; }
43
44 };
45 using IObjectMetadata0 = IObjectMetadata;
46
47 } // namespace analytics
48 } // namespace sdk
49 } // namespace nx
nx::sdk::analytics::IObjectMetadata::boundingBox
Rect boundingBox() const
Definition: i_object_metadata.h:42
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::analytics::IObjectMetadata::subtype
virtual const char * subtype() const =0
nx::sdk::analytics::IObjectMetadata::trackId
Uuid trackId() const
Definition: i_object_metadata.h:30
nx::sdk::Uuid
Definition: uuid.h:22
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:11
nx::sdk::analytics::IObjectMetadata::getTrackId
virtual void getTrackId(Uuid *outValue) const =0