view UI code/6Dbox.h @ 24:b339acf124df

new box - not really rendering properly
author Robert Tubb <rt300@eecs.qmul.ac.uk>
date Mon, 27 Oct 2014 17:40:05 +0000
parents 055e0c43afe5
children 8eb530e0601b
line wrap: on
line source
//
//  6Dbox.h
//  riftathon
//
//  Created by Robert Tubb on 27/10/2014.
//
//

#ifndef __riftathon___Dbox__
#define __riftathon___Dbox__
#include "3DboxGL.h"
#include <iostream>

class Leap6DBox : public Leap3DBoxGL {
    
public:
    Leap6DBox(float ax,
                float ay,
                float awidth,
                float aheight,
                float azx,
                float azy,
                const UIProps& props);

    
    void drawIndicatorBlob(float x, float y, float z, ofColor c);
    void draw6DOFIndicatorBlob(float x, float y, float z, ofColor c, float r, float p, float yaw);
    void setTexture(ofImage* img);
private:
    float hw, hh, hl, scale;
    void setUpHandMesh();
    
    float roll, pitch, yaw;
    
    ofMesh handMesh;
    ofImage* texImg;
    ofImage defaultImage;
};


#endif /* defined(__riftathon___Dbox__) */