Esempio n. 1
0
void ofApp::update() {
	ofBackground(0);
	
    #ifdef INTERACTIVE
        if(playState <= 1) {
            #ifdef KINECT
                updateKinect();
            #else
                updateWebcam();
            #endif
            
            updateBlobs();
            updateFBOs();
            if(ofGetFrameNum() % 60 == 0) {
                updateBrightness();
            }
        }
        else if(playState >= 2) {
            updateMovies();
        }
    #else
        if (playState == 1) playState = 2;
        updateMovies();
    #endif

	// Write
	if(ofGetMinutes() % 10 == 0) {
        writeDiagnostics();
	}

}
Esempio n. 2
0
MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{
    ui->setupUi(this);
	if (!kinect.valid())
		setWindowTitle("NO KINECT DETECTED!");
    ui->kinect_tab->setDevice(&kinect);
	ui->main_tab->setDevice(&kinect);
	DepthScanner::setKinectDevice(&kinect);

	connect(&timer, SIGNAL(timeout()), this, SLOT(updateKinect()));
	timer.start(40);
}
Esempio n. 3
0
void KinectV2Module::timerCallback()
{
	updateKinect();
}