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

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
//--------------------------------------------------------------
12
void testApp::update(){
13
14
}
15
16
//--------------------------------------------------------------
17
void testApp::draw(){
18
19
//draw blobs
20
/*
21
        std::map<int, Blob> blobs;
22
        std::map<int, Blob>::iterator iter;
23
    blobs = ccv->getBlobs(); //get blobs from tracker
24
        for(iter=blobs.begin(); iter!=blobs.end(); iter++)
25
        {
26
                Blob drawBlob;
27
                drawBlob = iter->second;
28
                ofSetColor(drawBlob.color);
29
                ofFill();
30
                ofEllipse( (drawBlob.centroid.x - drawBlob.boundingRect.width/2) * ofGetWidth() , 
31
                                   (drawBlob.centroid.y - drawBlob.boundingRect.height/2) * ofGetHeight(),
32
                                    drawBlob.boundingRect.width * ofGetWidth(), 
33
                                    drawBlob.boundingRect.height * ofGetHeight());
34
        }
35
*/        
36
}
37
38
//--------------------------------------------------------------
39
void testApp::keyPressed  (int key){
40
41
}
42
43
//--------------------------------------------------------------
44
void testApp::keyReleased  (int key){
45
46
}
47
48
//--------------------------------------------------------------
49
void testApp::mouseMoved(int x, int y ){
50
}
51
52
//--------------------------------------------------------------
53
void testApp::mouseDragged(int x, int y, int button){
54
}
55
56
//--------------------------------------------------------------
57
void testApp::mousePressed(int x, int y, int button){
58
}
59
60
//--------------------------------------------------------------
61
void testApp::mouseReleased(){
62
63
}
64
65
/*****************************************************************************
66
 *        TOUCH EVENTS
67
 *****************************************************************************/
68
void testApp::TouchDown( Blob b)
69
{
70
}
71
72
void testApp::TouchUp( Blob b)
73
{        
74
}
75
76
void testApp::TouchMoved( Blob b)
77
{
78
}
79
80