8#include "MRCommonPlugins/exports.h"
30 virtual const std::string&
uiName()
const override;
32 virtual void drawDialog(
float menuScaling, ImGuiContext* ctx )
override;
34 virtual bool blocking()
const override {
return false; }
45 virtual const std::string&
getName()
const = 0;
47 virtual void draw(
float menuScaling ) = 0;
67 virtual bool onEnable_()
override;
68 virtual bool onDisable_()
override;
70 void drawTab_(
float menuWidth,
float menuScaling );
72 void drawQuickTab_(
float menuWidth,
float menuScaling );
73 void drawApplicationTab_(
float menuWidth,
float menuScaling );
74 void drawControlTab_(
float menuWidth,
float menuScaling );
75 void drawViewportTab_(
float menuWidth,
float menuScaling );
76 void drawMeasurementUnitsTab_(
float menuScaling );
77 void drawFeaturesTab_(
float menuScaling );
79 void drawThemeSelector_(
float menuScaling );
80 void drawResetDialog_(
bool activated,
float menuScaling );
81 void drawShadingModeCombo_(
bool inGroup,
float menuScaling,
float toolWidth );
82 void drawProjectionModeSelector_(
float menuScaling,
float toolWidth );
83 void drawUpDirectionSelector_();
84 void drawBackgroundButton_(
bool allViewports );
85 void drawRenderOptions_(
float menuScaling );
86 void drawShadowsOptions_(
float menuWidth,
float menuScaling );
87 void drawMouseSceneControlsSettings_(
float menuWidth,
float menuScaling );
88 void drawSpaceMouseSettings_(
float menuWidth,
float menuScaling );
89 void drawTouchpadSettings_(
float menuScaling );
91 void drawGlobalSettings_(
float buttonWidth,
float menuScaling );
92 void drawCustomSettings_(
const std::string& separatorName,
bool needSeparator,
float menuScaling );
93 void drawSeparator_(
const std::string& separatorName,
float menuScaling );
97 void resetSettings_();
100 int storedSamples_{ 0 };
101 int maxSamples_{ 0 };
102 bool needReset_{
false };
103#ifndef __EMSCRIPTEN__
104 bool gpuOverridesMSAA_{
false };
107 Vector4f backgroundColor_;
109 int selectedUserPreset_{ 0 };
110 std::vector<std::string> userThemesPresets_;
112 std::unique_ptr<ShadowsGL> shadowGl_;
114 SpaceMouseParameters spaceMouseParams_;
115#if defined(_WIN32) || defined(__APPLE__)
116 bool activeMouseScrollZoom_{
false };
119 TouchpadParameters touchpadParameters_;
121 TabType activeTab_ = TabType::Quick;
122 TabType orderedTab_ = TabType::Count;
124 std::array<std::vector<std::shared_ptr<ExternalSettings>>, size_t(TabType::Count)> comboSettings_;
Definition MRViewerFwd.h:60
Definition MRViewerSettingsPlugin.h:41
virtual const std::string & getName() const =0
virtual void reset()
Definition MRViewerSettingsPlugin.h:49
virtual void draw(float menuScaling)=0
virtual ~ExternalSettings()
Definition MRViewerSettingsPlugin.h:43
virtual const char * separatorName() const
Definition MRViewerSettingsPlugin.h:51
Definition MRViewerSettingsPlugin.h:14
MRVIEWER_API void delComboSettings(const TabType tab, const ExternalSettings *settings)
delete external settings with UI combo box
MRVIEWER_API void setActiveTab(TabType tab)
changes active tab
virtual void drawDialog(float menuScaling, ImGuiContext *ctx) override
virtual bool blocking() const override
Definition MRViewerSettingsPlugin.h:34
MRVIEWER_API void addComboSettings(const TabType tab, std::shared_ptr< ExternalSettings > settings)
add external settings with UI combo box
MRVIEWER_API void updateThemes()
static MRVIEWER_API ViewerSettingsPlugin * instance()
virtual const std::string & uiName() const override
TabType
Definition MRViewerSettingsPlugin.h:18
Definition MRViewport.h:49
Definition MRCameraOrientationPlugin.h:8