nx_server_plugin_sdk 1.0 Server Plugin 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/analytics/i_metadata.h>
6 #include <nx/sdk/analytics/rect.h>
7 #include <nx/sdk/i_attribute.h>
8 #include <nx/sdk/interface.h>
9 #include <nx/sdk/uuid.h>
10
11 namespace nx::sdk::analytics {
12
16 class IObjectMetadata: public Interface<IObjectMetadata, IMetadata0>
17 {
18 public:
19 static auto interfaceId() { return makeId("nx::sdk::analytics::IObjectMetadata"); }
20
22 protected: virtual void getTrackId(Uuid* outValue) const = 0;
28 public: Uuid trackId() const { Uuid value; getTrackId(&value); return value; }
29
33 virtual const char* subtype() const = 0;
34
36 protected: virtual void getBoundingBox(Rect* outValue) const = 0;
40 public: Rect boundingBox() const { Rect value; getBoundingBox(&value); return value; }
41
42 };
43 using IObjectMetadata0 = IObjectMetadata;
44
45 } // namespace nx::sdk::analytics
nx::sdk::analytics::IObjectMetadata::boundingBox
Rect boundingBox() const
Definition: i_object_metadata.h:40
nx::sdk::Interface
Definition: interface.h:48
nx::sdk::analytics::IObjectMetadata::subtype
virtual const char * subtype() const =0
nx::sdk::analytics::IObjectMetadata::trackId
Uuid trackId() const
Definition: i_object_metadata.h:28
nx::sdk::analytics
Definition: consuming_device_agent.cpp:25
nx::sdk::Uuid
Definition: uuid.h:22
nx::sdk::analytics::IObjectMetadata
Definition: i_object_metadata.h:16
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