MeshLib C++ Docs
Loading...
Searching...
No Matches
MRItemEnabledPerViewport.h
Go to the documentation of this file.
1#pragma once
2
4#include "exports.h"
5
6namespace MR
7{
8
9// A base class for `RibbonMenuItem`s that can be toggled per viewport.
10// The intent is that the derived classes should also be derived from `RibbonMenuItem` and be registered in the ribbon schema.
11// Doing this ensures that you can loop over all items in the schema to get a list of all items toggleable in this way.
13{
14public:
15 [[nodiscard]] MRVIEWER_API ViewportMask getEnabledViewports() const;
16 MRVIEWER_API void setEnabledViewports( ViewportMask newMask );
17
18protected:
20
21private:
22 ViewportMask enabledViewports_ = ViewportMask::all();
23};
24
25}
Definition MRItemEnabledPerViewport.h:13
MRVIEWER_API void setEnabledViewports(ViewportMask newMask)
MRVIEWER_API ViewportMask getEnabledViewports() const
stores mask of viewport unique identifiers
Definition MRViewportId.h:42
static ViewportMask all()
mask meaning all or any viewports
Definition MRViewportId.h:49
Definition MRCameraOrientationPlugin.h:8