MeshLib Documentation
Loading...
Searching...
No Matches
MRImGuiMenuListeners.h
Go to the documentation of this file.
1#pragma once
2
3#include "exports.h"
6
7namespace MR
8{
9
10// A helper base class to subscribe to `ImGuiMenu::manuallySelectObjectSignal`.
12{
14 virtual ~NameTagClickListener() = default;
15 MRVIEWER_API virtual void connect( Viewer* viewer, int group, boost::signals2::connect_position pos ) override;
16protected:
17 virtual bool onNameTagClicked_( Object& object, ImGuiMenu::NameTagSelectionMode mode ) = 0;
18};
19
20// A helper base class to subscribe to `ImGuiMenu::drawSceneUiSignal`.
22{
24 virtual ~DrawSceneUiListener() = default;
25 MRVIEWER_API virtual void connect( Viewer* viewer, int group, boost::signals2::connect_position pos ) override;
26protected:
27 virtual void onDrawSceneUi_( float menuScaling, ViewportId viewportId, UiRenderParams::UiTaskList& tasks ) = 0;
28};
29
30}
NameTagSelectionMode
Definition ImGuiMenu.h:295
named object in the data model
Definition MRObject.h:60
Definition MRViewportId.h:16
Definition MRCameraOrientationPlugin.h:8
Definition Viewer.dox.py:1
Definition MRViewerEventsListener.h:20
Definition MRImGuiMenuListeners.h:22
virtual void onDrawSceneUi_(float menuScaling, ViewportId viewportId, UiRenderParams::UiTaskList &tasks)=0
MR_ADD_CTOR_DELETE_MOVE(DrawSceneUiListener)
virtual ~DrawSceneUiListener()=default
virtual MRVIEWER_API void connect(Viewer *viewer, int group, boost::signals2::connect_position pos) override
Definition MRImGuiMenuListeners.h:12
virtual bool onNameTagClicked_(Object &object, ImGuiMenu::NameTagSelectionMode mode)=0
virtual ~NameTagClickListener()=default
virtual MRVIEWER_API void connect(Viewer *viewer, int group, boost::signals2::connect_position pos) override
MR_ADD_CTOR_DELETE_MOVE(NameTagClickListener)
std::vector< std::shared_ptr< BasicUiRenderTask > > UiTaskList
Definition MRIRenderObject.h:111