From f7c14d0739bf38bc28661b57cf19b33ce2fdc6db Mon Sep 17 00:00:00 2001 From: samcake Date: Wed, 11 Jun 2014 00:46:09 -0700 Subject: [PATCH] Delete LeapMotionManager.h --- interface/src/devices/LeapMotionManager.h | 88 ----------------------- 1 file changed, 88 deletions(-) delete mode 100644 interface/src/devices/LeapMotionManager.h diff --git a/interface/src/devices/LeapMotionManager.h b/interface/src/devices/LeapMotionManager.h deleted file mode 100644 index 2aaddc555e..0000000000 --- a/interface/src/devices/LeapMotionManager.h +++ /dev/null @@ -1,88 +0,0 @@ -// -// LeapMotionManager.h -// interface/src/devices -// -// Created by Sam Cake on 6/2/2014 -// Copyright 2014 High Fidelity, Inc. -// -// Distributed under the Apache License, Version 2.0. -// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html -// - -#ifndef hifi_LeapMotionManager_h -#define hifi_LeapMotionManager_h - -#include -#include -#include - -#include - -#ifdef HAVE_LEAPMOTION -#include -/*extern "C" { -#include -}*/ -#endif - -/// Handles interaction with the LeapMotionManager skeleton tracking suit. -class LeapMotionManager : public QObject { - Q_OBJECT - -public: - - LeapMotionManager(); - virtual ~LeapMotionManager(); - - bool isActive() const { return !_hands.isEmpty(); } - - int nbHands() const { return _hands.size(); } - - glm::vec3 getHandPos( unsigned int handNb ) const; - - const QVector& getHumanIKJointIndices() const { return _humanIKJointIndices; } - const QVector& getJointRotations() const { return _jointRotations; } - - void update(float deltaTime); - void reset(); - -private slots: - - void renderCalibrationCountdown(); - -private: -#ifdef HAVE_LEAPMOTION - - class SampleListener : public ::Leap::Listener - { - public: - SampleListener(); - virtual ~SampleListener(); - - virtual void onConnect(const ::Leap::Controller &); - virtual void onDisconnect(const ::Leap::Controller &); - virtual void onExit(const ::Leap::Controller &); - virtual void onFocusGained(const ::Leap::Controller &); - virtual void onFocusLost(const ::Leap::Controller &); - virtual void onFrame(const ::Leap::Controller &); - virtual void onInit(const ::Leap::Controller &); - virtual void onServiceConnect(const ::Leap::Controller &); - virtual void onServiceDisconnect(const ::Leap::Controller &); - - }; - - SampleListener _listener; - Leap::Controller _controller; -#endif - glm::vec3 _leapBasePos; - glm::quat _leapBaseOri; - QVector _hands; - - QVector _humanIKJointIndices; - QVector _jointRotations; - QVector _lastJointRotations; - - QDateTime _calibrationCountdownStarted; -}; - -#endif // hifi_LeapMotionManager_h