6. メイン関数の実装
// Main
int _tmain( int argc, _TCHAR* argv[] ){
// Create a listener and controller
Listener listener;
Leap::Controller controller;
// Have the listener receive events from the controller
controller.addListener( listener );
// Keep this process running until Enter is pressed
std::cout << "Press Enter to quit..." << std::endl;
std::cin.get();
// Remove the listener when done
controller.removeListener( listener );
return 0;
}
11. class Leap::HandList
Leap::Hand operator[]( int index ) const
indexの手情報(Leap::Hand)を取得する
bool empty() const
手情報のリストが空
Class Leap::Hand
Leap::PointableList pointables() const
ポインター情報のリスト(Leap::PointableList)
Leap::FingerList fingers() const
指情報のリスト(Leap::FingerList)
12. class Leap::FingerList
Leap::Finger operator[]( int index ) const
indexの指情報(Leap::Finger)を取得する
bool empty() const
指情報のリストが空
class Leap::Finger : Leap::Pointable
Leap::Vector tipPosition() const
Leap Motion原点からの指先端のミリメートル位置(x, y, z) [mm]
Leap::Vector tipVelocity() const
指先端のミリメートル位置の秒変化率(速度) [mm/s]
13. class Leap::GestureList
Leap::Gesture operator[]( int index ) const
indexのジェスチャー情報(Leap::Gesture)を取得する
int count() const
リストに入っているジェスチャー情報の数
bool empty() const
ジェスチャー情報のリストが空
class Leap::Gesture
Leap::Type type() const
検出されたジェスチャーの種類