root / branches / tbeta / Windows-PS3EyeMuticam / apps / addonsExamples / VS2008 / src / testApp.cpp @ 198

View | Annotate | Download (1.9 KB)

1
#include "testApp.h"
2
#include "stdio.h"
3
#include "ofUtils.h"
4
//--------------------------------------------------------------
5
void testApp::setup()
6
{
7
        ccv = new ofxNCoreVision;
8
}
9
10
//--------------------------------------------------------------
11
void testApp::update(){}
12
13
//--------------------------------------------------------------
14
void testApp::draw()
15
{
16
//draw blobs
17
/*
18
        std::map<int, Blob> blobs;
19
        std::map<int, Blob>::iterator iter;
20
    blobs = ccv->getBlobs(); //get blobs from tracker
21
        for(iter=blobs.begin(); iter!=blobs.end(); iter++)
22
        {
23
                Blob drawBlob;
24
                drawBlob = iter->second;
25
                ofSetColor(drawBlob.color);
26
                ofFill();
27
                ofEllipse( (drawBlob.centroid.x - drawBlob.boundingRect.width/2) * ofGetWidth() , 
28
                                   (drawBlob.centroid.y - drawBlob.boundingRect.height/2) * ofGetHeight(),
29
                                    drawBlob.boundingRect.width * ofGetWidth(), 
30
                                    drawBlob.boundingRect.height * ofGetHeight());
31
        }
32
*/        
33
}
34
35
//--------------------------------------------------------------
36
void testApp::keyPressed  (int key){}
37
38
//--------------------------------------------------------------
39
void testApp::keyReleased  (int key){}
40
41
//--------------------------------------------------------------
42
void testApp::mouseMoved(int x, int y ){}
43
44
//--------------------------------------------------------------
45
void testApp::mouseDragged(int x, int y, int button){}
46
47
//--------------------------------------------------------------
48
void testApp::mousePressed(int x, int y, int button){}
49
50
//--------------------------------------------------------------
51
void testApp::mouseReleased(){}
52
53
/*****************************************************************************
54
 *        TOUCH EVENTS
55
 *****************************************************************************/
56
void testApp::TouchDown(Blob b){}
57
58
void testApp::TouchUp(Blob b){}
59
60
void testApp::TouchMoved( Blob b){}
61
62