SLProject 4.0.000
|
ImGui UI class for the UI of the demo applications. More...
#include <AppDemoGui.h>
Static Public Member Functions | |
static void | clear () |
static void | build (SLScene *s, SLSceneView *sv) |
This is the main building function for the GUI of the Demo apps. More... | |
static void | buildMenuBar (SLScene *s, SLSceneView *sv) |
Builds the entire menu bar once per frame. More... | |
static void | buildMenuEdit (SLScene *s, SLSceneView *sv) |
Builds the edit menu that can be in the menu bar and the context menu. More... | |
static void | buildMenuContext (SLScene *s, SLSceneView *sv) |
Builds context menu if right mouse click is over non-imgui area. More... | |
static void | buildSceneGraph (SLScene *s) |
Builds the scenegraph dialog once per frame. More... | |
static void | addSceneGraphNode (SLScene *s, SLNode *node) |
Builds the node information once per frame. More... | |
static void | buildProperties (SLScene *s, SLSceneView *sv) |
Builds the properties dialog once per frame. More... | |
static void | showTexInfos (SLGLTexture *tex) |
Shows UI infos for a texture. More... | |
static void | loadConfig (SLint dotsPerInch) |
Loads the UI configuration. More... | |
static void | saveConfig () |
Stores the UI configuration. More... | |
static void | showLUTColors (SLTexColorLUT *lut) |
Displays a editable color lookup table wit ImGui widgets. More... | |
static void | setActiveNamedLocation (int locIndex, SLSceneView *sv, SLVec3f lookAtPoint=SLVec3f::ZERO) |
Set the a new active named location from SLDeviceLocation. More... | |
Static Public Attributes | |
static SLstring | configTime = "-" |
Time of stored configuration. More... | |
static SLstring | infoAbout |
About info string. More... | |
static SLstring | infoCredits |
Credits info string. More... | |
static SLstring | infoHelp |
Help info string. More... | |
static SLstring | infoCalibrate |
Calibration info string. More... | |
static SLbool | hideUI = false |
Flag if menubar should be shown. More... | |
static SLbool | showProgress = false |
Flag if about info should be shown. More... | |
static SLbool | showDockSpace = true |
Flag if dock space should be enabled. More... | |
static SLbool | showAbout = false |
Flag if about info should be shown. More... | |
static SLbool | showHelp = false |
Flag if help info should be shown. More... | |
static SLbool | showHelpCalibration = false |
Flag if calibration info should be shown. More... | |
static SLbool | showCredits = false |
Flag if credits info should be shown. More... | |
static SLbool | showStatsTiming = false |
Flag if timing info should be shown. More... | |
static SLbool | showStatsScene = false |
Flag if scene info should be shown. More... | |
static SLbool | showStatsVideo = false |
Flag if video info should be shown. More... | |
static SLbool | showStatsWAI = false |
Flag if WAI info should be shown. More... | |
static SLbool | showImGuiMetrics = false |
Flag if imgui metrics infor should be shown. More... | |
static SLbool | showInfosSensors = false |
Flag if device sensors info should be shown. More... | |
static SLbool | showInfosDevice = false |
Flag if device info should be shown. More... | |
static SLbool | showInfosScene = false |
Flag if scene info should be shown. More... | |
static SLbool | showSceneGraph = false |
Flag if scene graph should be shown. More... | |
static SLbool | showProperties = false |
Flag if properties should be shown. More... | |
static SLbool | showErlebAR = false |
Flag if Christoffel infos should be shown. More... | |
static SLbool | showUIPrefs = false |
Flag if UI preferences. More... | |
static SLbool | showTransform = false |
Flag if transform dialog should be shown. More... | |
static SLbool | showDateAndTime = false |
Flag if date-time dialog should be shown. More... | |
static std::time_t | adjustedTime = 0 |
Adjusted GUI time for sun setting (default 0) More... | |
Static Private Member Functions | |
static void | setTransformEditMode (SLScene *s, SLSceneView *sv, SLNodeEditMode editMode) |
Adds a transform node for the selected node and toggles the edit mode. More... | |
static void | removeTransformNode (SLScene *s) |
Searches and removes the transform node. More... | |
static void | showHorizon (SLScene *s, SLSceneView *sv) |
Enables calculation and visualization of horizon line (using rotation sensors) More... | |
static void | hideHorizon (SLScene *s) |
Disables calculation and visualization of horizon line. More... | |
static void | loadSceneWithLargeModel (SLScene *s, SLSceneView *sv, string downloadFilename, string filenameToLoad, SLSceneID sceneIDToLoad) |
static void | downloadModelAndLoadScene (SLScene *s, SLSceneView *sv, string downloadFilename, string urlFolder, string dstFolder, string filenameToLoad, SLSceneID sceneIDToLoad) |
Parallel HTTP download, unzip and load scene job scheduling. More... | |
Static Private Attributes | |
static SLbool | _horizonVisuEnabled = false |
ImGui UI class for the UI of the demo applications.
Builds the node information once per frame.
|
static |
This is the main building function for the GUI of the Demo apps.
Is is passed to the AppDemoGui::build function in main of the app-Demo-SLProject app. This function will be called once per frame roughly at the end of SLSceneView::onPaint in SLSceneView::draw2DGL by calling ImGui::Render.
See also the comments on SLGLImGui.
|
static |
Builds the entire menu bar once per frame.
|
static |
Builds context menu if right mouse click is over non-imgui area.
|
static |
Builds the edit menu that can be in the menu bar and the context menu.
|
static |
Builds the properties dialog once per frame.
|
static |
Builds the scenegraph dialog once per frame.
|
static |
|
staticprivate |
Parallel HTTP download, unzip and load scene job scheduling.
|
staticprivate |
Disables calculation and visualization of horizon line.
|
static |
Loads the UI configuration.
|
staticprivate |
|
staticprivate |
Searches and removes the transform node.
|
static |
Stores the UI configuration.
|
static |
Set the a new active named location from SLDeviceLocation.
|
staticprivate |
Adds a transform node for the selected node and toggles the edit mode.
|
staticprivate |
Enables calculation and visualization of horizon line (using rotation sensors)
|
static |
Displays a editable color lookup table wit ImGui widgets.
|
static |
Shows UI infos for a texture.
|
staticprivate |
|
static |
Adjusted GUI time for sun setting (default 0)
|
static |
Time of stored configuration.
|
static |
Flag if menubar should be shown.
|
static |
About info string.
|
static |
Calibration info string.
|
static |
Credits info string.
|
static |
Help info string.
|
static |
Flag if about info should be shown.
|
static |
Flag if credits info should be shown.
|
static |
Flag if date-time dialog should be shown.
|
static |
Flag if dock space should be enabled.
|
static |
Flag if Christoffel infos should be shown.
|
static |
Flag if help info should be shown.
|
static |
Flag if calibration info should be shown.
|
static |
Flag if imgui metrics infor should be shown.
|
static |
Flag if device info should be shown.
|
static |
Flag if scene info should be shown.
|
static |
Flag if device sensors info should be shown.
|
static |
Flag if about info should be shown.
|
static |
Flag if properties should be shown.
|
static |
Flag if scene graph should be shown.
|
static |
Flag if scene info should be shown.
|
static |
Flag if timing info should be shown.
|
static |
Flag if video info should be shown.
|
static |
Flag if transform dialog should be shown.
|
static |
Flag if UI preferences.