UI with the ImGUI framework fully rendered in OpenGL 3+.
More...
#include <AppDemoGui.h>
#include <AppCommon.h>
#include <AppDemoSceneID.h>
#include <SLEnums.h>
#include <Utils.h>
#include <SL.h>
#include <CVCapture.h>
#include <CVImage.h>
#include <CVTrackedFeatures.h>
#include <SLAssetManager.h>
#include <SLAnimPlayback.h>
#include <SLGLDepthBuffer.h>
#include <SLGLProgramManager.h>
#include <SLGLShader.h>
#include <SLGLTexture.h>
#include <SLInterface.h>
#include <SLDeviceRotation.h>
#include <SLLightDirect.h>
#include <SLLightRect.h>
#include <SLLightSpot.h>
#include <SLShadowMap.h>
#include <SLMaterial.h>
#include <SLMesh.h>
#include <SLParticleSystem.h>
#include <SLNode.h>
#include <SLScene.h>
#include <SLSceneView.h>
#include <SLSkybox.h>
#include <SLTexColorLUT.h>
#include <SLImGui.h>
#include <SLHorizonNode.h>
#include <SLFileStorage.h>
#include <AverageTiming.h>
#include <bezier.hpp>
#include <imgui.h>
#include <ftplib.h>
#include <HttpUtils.h>
#include <ZipUtils.h>
#include <Profiler.h>
Go to the source code of this file.
UI with the ImGUI framework fully rendered in OpenGL 3+.
- Date
- Summer 2017
- Authors
- Marcus Hudritsch
- Copyright
- http://opensource.org/licenses/GPL-3.0
Definition in file AppDemoGui.cpp.
◆ IMGUI_DEFINE_MATH_OPERATORS
#define IMGUI_DEFINE_MATH_OPERATORS |
◆ centerNextWindow()
Centers the next ImGui window in the parent.
Definition at line 95 of file AppDemoGui.cpp.
103 ImGui::SetNextWindowSize(ImVec2(width, height), ImGuiCond_Always);
104 ImGui::SetNextWindowPos(ImVec2(offsetX, offsetY), ImGuiCond_Always);
SceneView class represents a dynamic real time 3D view onto the scene.
◆ ftpCallbackXfer()
int ftpCallbackXfer |
( |
off64_t |
xfered, |
|
|
void * |
arg |
|
) |
| |
Definition at line 204 of file AppDemoGui.cpp.
208 int xferedPC = (int)((
float)xfered / (float)
ftpXferSizeMax * 100.0f);
213 cout <<
"Bytes transferred: " << xfered << endl;
214 return xfered ? 1 : 0;
static int jobProgressNum()
◆ guessCalibration()
Definition at line 1431 of file AppDemoGui.cpp.
1435 #ifndef SL_EMSCRIPTEN
1440 if (!strF.empty() && !strW.empty() && !strH.empty())
1442 float devF = strF.empty() ? 0.0f : stof(strF);
1443 float devW = strW.empty() ? 0.0f : stof(strW);
1444 float devH = strH.empty() ? 0.0f : stof(strH);
static map< string, string > deviceParameter
Generic device parameter.
Live video camera calibration class with OpenCV an OpenCV calibration.
CVMat lastFrame
last frame grabbed in BGR
static CVCapture * instance()
Public static instance getter for singleton pattern.
◆ myComboBox()
bool myComboBox |
( |
const char * |
label, |
|
|
int * |
currIndex, |
|
|
SLVstring & |
values |
|
) |
| |
Combobox that allows to pass the items as a string vector.
Definition at line 82 of file AppDemoGui.cpp.
87 return ImGui::Combo(label,
static auto vectorGetter
Vector getter callback for combo and listbox with std::vector<std::string>
◆ balda_glas
◆ balda_stahl
◆ bern
◆ chrAlt
◆ chrNeu
◆ ftpXferSizeMax
off64_t ftpXferSizeMax = 0 |
◆ gDragonModel
◆ gTexMRI3D
◆ gVideoTrackedNode
Global pointer to a node that from witch the gVideoTracker changes the pose. it gets updated in the following onUpdateTracking routine
Definition at line 42 of file AppDemoVideo.cpp.
◆ gVideoTracker
Global pointer for a gVideoTracker that is set in AppDemoLoad for video scenes It gets updated in the following onUpdateTracking routine
Definition at line 37 of file AppDemoVideo.cpp.
◆ transformNode
◆ vectorGetter
Initial value:=
[](void* vec, int idx, const char** out_text)
{
if (idx < 0 || idx >= (int)vector.size())
return false;
*out_text = vector.at((
SLuint)idx).c_str();
return true;
}
vector< SLstring > SLVstring
Vector getter callback for combo and listbox with std::vector<std::string>
Definition at line 69 of file AppDemoGui.cpp.