Add property that determines if hidden scene graphs should be hidden in the gui

This commit is contained in:
Ylva Selling
2022-05-11 16:19:42 -04:00
parent 785084c318
commit b2110dfada
2 changed files with 9 additions and 0 deletions

View File

@@ -74,6 +74,12 @@ namespace {
"Hides or displays different settings in the GUI depending on how advanced they "
"are."
};
constexpr openspace::properties::Property::PropertyInfo ShowHiddenSceneInfo = {
"ShowHiddenSceneGraphNodes",
"Show Hidden Scene Graph Nodes",
"If checked, hidden scene graph nodes are visible in the UI"
};
} // namespace
namespace openspace {
@@ -86,6 +92,7 @@ CefWebGuiModule::CefWebGuiModule()
, _url(GuiUrlInfo, "")
, _guiScale(GuiScaleInfo, 1.f, 0.1f, 3.f)
, _visibility(VisibilityInfo)
, _showHiddenSceneGraphNodes(ShowHiddenSceneInfo, false)
{
addProperty(_enabled);
addProperty(_visible);
@@ -93,6 +100,7 @@ CefWebGuiModule::CefWebGuiModule()
addProperty(_url);
addProperty(_guiScale);
addProperty(_visibility);
addProperty(_showHiddenSceneGraphNodes);
using Visibility = openspace::properties::Property::Visibility;
_visibility.addOptions({

View File

@@ -55,6 +55,7 @@ private:
properties::TriggerProperty _reload;
properties::StringProperty _url;
properties::OptionProperty _visibility;
properties::BoolProperty _showHiddenSceneGraphNodes;
properties::FloatProperty _guiScale;
std::unique_ptr<BrowserInstance> _instance;