SLProject 4.0.000
AppDemoVideo.cpp File Reference
#include <SLScene.h>
#include <SLSceneView.h>
#include <CVCapture.h>
#include <CVTracked.h>
#include <CVTrackedAruco.h>
#include <SLGLTexture.h>
#include <CVCalibrationEstimator.h>
#include <AppDemoSceneView.h>
#include <AppDemo.h>
#include <GlobalTimer.h>
#include <Profiler.h>
#include <FtpUtils.h>
Include dependency graph for AppDemoVideo.cpp:

Functions

void updateTrackingSceneCamera (CVCamera *ac)
 
void runCalibrationEstimator (CVCamera *ac, SLScene *s, SLSceneView *sv)
 
void ensureValidCalibration (CVCamera *ac, SLSceneView *sv)
 logic that ensures that we have a valid calibration state More...
 
bool onUpdateVideo ()
 Implements the update per frame for video update and feature tracking. More...
 

Variables

SLGLTexturevideoTexture = nullptr
 
CVTracked * tracker = nullptr
 
SLNodetrackedNode = nullptr
 

Function Documentation

◆ ensureValidCalibration()

void ensureValidCalibration ( CVCamera *  ac,
SLSceneView sv 
)

logic that ensures that we have a valid calibration state

◆ onUpdateVideo()

bool onUpdateVideo ( )

Implements the update per frame for video update and feature tracking.

This routine is called once per frame before any other update within the the main rendering loop (see: AppDemoMainGLFW::onPaint or GLES3View::onDrawFrame). See the documentation within SLCVTracked and in all of its inheritants.

◆ runCalibrationEstimator()

void runCalibrationEstimator ( CVCamera *  ac,
SLScene s,
SLSceneView sv 
)

◆ updateTrackingSceneCamera()

void updateTrackingSceneCamera ( CVCamera *  ac)

Variable Documentation

◆ trackedNode

SLNode* trackedNode = nullptr

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

◆ tracker

CVTracked* tracker = nullptr

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

◆ videoTexture

SLGLTexture* videoTexture = nullptr

Global pointer for the video texture defined in AppDemoLoad for video scenes It gets updated in the following onUpdateTracking routine