SLProject 4.0.000
AppDemoGui.cpp File Reference
#include <AppDemoGui.h>
#include <AppDemo.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 <SLGLImGui.h>
#include <SLHorizonNode.h>
#include <SLFileStorage.h>
#include <AverageTiming.h>
#include <imgui.h>
#include <bezier.hpp>
#include <imgui_color_gradient.h>
#include <ftplib.h>
#include <HttpUtils.h>
#include <ZipUtils.h>
#include <Profiler.h>
Include dependency graph for AppDemoGui.cpp:

Functions

bool myComboBox (const char *label, int *currIndex, SLVstring &values)
 Combobox that allows to pass the items as a string vector. More...
 
void centerNextWindow (SLSceneView *sv, SLfloat widthPC=0.9f, SLfloat heightPC=0.9f)
 Centers the next ImGui window in the parent. More...
 
int ftpCallbackXfer (off64_t xfered, void *arg)
 
CVCalibration guessCalibration (bool mirroredH, bool mirroredV, CVCameraType camType)
 

Variables

CVTracked * tracker
 
SLNode * trackedNode
 
SLGLTexture * gTexMRI3D
 Global pointer to 3D MRI texture for volume rendering for threaded loading. More...
 
SLNode * gDragonModel
 Global pointer to dragon model for threaded loading. More...
 
static auto vectorGetter
 Vector getter callback for combo and listbox with std::vector<std::string> More...
 
static SLNode * bern = nullptr
 
static SLNode * balda_stahl = nullptr
 
static SLNode * balda_glas = nullptr
 
static SLNode * chrAlt = nullptr
 
static SLNode * chrNeu = nullptr
 
static SLTransformNode * transformNode = nullptr
 
off64_t ftpXferSizeMax = 0
 

Function Documentation

◆ centerNextWindow()

void centerNextWindow ( SLSceneView *  sv,
SLfloat  widthPC = 0.9f,
SLfloat  heightPC = 0.9f 
)

Centers the next ImGui window in the parent.

◆ ftpCallbackXfer()

int ftpCallbackXfer ( off64_t  xfered,
void *  arg 
)

◆ guessCalibration()

CVCalibration guessCalibration ( bool  mirroredH,
bool  mirroredV,
CVCameraType  camType 
)

◆ myComboBox()

bool myComboBox ( const char *  label,
int *  currIndex,
SLVstring &  values 
)

Combobox that allows to pass the items as a string vector.

Variable Documentation

◆ balda_glas

SLNode* balda_glas = nullptr
static

◆ balda_stahl

SLNode* balda_stahl = nullptr
static

◆ bern

SLNode* bern = nullptr
static

◆ chrAlt

SLNode* chrAlt = nullptr
static

◆ chrNeu

SLNode* chrNeu = nullptr
static

◆ ftpXferSizeMax

off64_t ftpXferSizeMax = 0

◆ gDragonModel

SLNode* gDragonModel
extern

Global pointer to dragon model for threaded loading.

◆ gTexMRI3D

SLGLTexture* gTexMRI3D
extern

Global pointer to 3D MRI texture for volume rendering for threaded loading.

◆ trackedNode

SLNode* trackedNode
extern

Global pointer to a node that from witch the tracker changes the pose. it gets updated in the following onUpdateTracking routine

◆ tracker

CVTracked* tracker
extern

Global pointer for a tracker that is set in AppDemoLoad for video scenes It gets updated in the following onUpdateTracking routine

◆ transformNode

SLTransformNode* transformNode = nullptr
static

◆ vectorGetter

auto vectorGetter
static
Initial value:
= [](void* vec, int idx, const char** out_text)
{
auto& vector = *(SLVstring*)vec;
if (idx < 0 || idx >= (int)vector.size())
return false;
*out_text = vector.at((SLuint)idx).c_str();
return true;
}
unsigned int SLuint
Definition: SL.h:171
vector< SLstring > SLVstring
Definition: SL.h:201

Vector getter callback for combo and listbox with std::vector<std::string>