Subversion Repositories Code-Repo

Rev

Blame | Last modification | View Log | RSS feed

#ifndef OPENNI_H
#define OPENNI_H

#include "GlobalDefines.h"
#include <QThread>

#include <XnOpenNI.h>
#include <XnLog.h>
#include <XnCppWrapper.h>
#include <XnFPSCalculator.h>

#define SAMPLE_XML_PATH "./SamplesConfig.xml"
#define SAMPLE_XML_PATH_LOCAL "SamplesConfig.xml"

class OpenNI : public QThread {
        Q_OBJECT

public:
        OpenNI(QObject *parent = 0);
        ~OpenNI();
        void run();

signals:
        void sensorConnected();
        void setStatusString(const QString &);
        void setFrameString(const QString &);
        void setFPSString(const QString &);
        void processDepthData(const cv::Mat &);
        void setFOV(float width, float height);

private:
        XnBool fileExists(const char *fn);
};

#endif // OPENNI_H