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{
8
11{
12public:
15
16 using TagAddedSignal = Signal<void ( Object* obj, const std::string& tag )>;
19
20 using TagRemovedSignal = Signal<void ( Object* obj, const std::string& tag )>;
23
24private:
25 struct ProtectedTag {};
26 explicit ObjectTagEventDispatcher( ProtectedTag );
27};
28
29} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:80
class for dispatching object tag addition/removal events
Definition MRObjectTagEventDispatcher.h:11
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:22
TagAddedSignal tagAddedSignal
the signal is called when a tag is added to any object
Definition MRObjectTagEventDispatcher.h:18
named object in the data model
Definition MRObject.h:62
Definition MRCameraOrientationPlugin.h:8