MeshLib C++ Docs
Loading...
Searching...
No Matches
MRObjectTagEventDispatcher.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRSignal.h"
5
6namespace MR
7{
10
11
14{
15public:
17 MRMESH_API static ObjectTagEventDispatcher& instance();
18
19 using TagAddedSignal = Signal<void ( Object* obj, const std::string& tag )>;
22
23 using TagRemovedSignal = Signal<void ( Object* obj, const std::string& tag )>;
26
27private:
28 struct ProtectedTag {};
29 explicit ObjectTagEventDispatcher( ProtectedTag );
30};
31
32}
class for dispatching object tag addition/removal events
Definition MRObjectTagEventDispatcher.h:14
named object in the data model
Definition MRObject.h:62
static MRMESH_API ObjectTagEventDispatcher & instance()
returns singleton instance
TagRemovedSignal tagRemovedSignal
the signal is called when a tag is removed from any object
Definition MRObjectTagEventDispatcher.h:25
TagAddedSignal tagAddedSignal
the signal is called when a tag is added to any object
Definition MRObjectTagEventDispatcher.h:21
only for bindings generation
Definition MRCameraOrientationPlugin.h:8