Exemplo n.º 1
0
/******************************************************************************
* The draw function paints the textures onto the screen. It runs after update.
*****************************************************************************/
void ofxNCoreVision::_draw(ofEventArgs &e)
{
	if (showConfiguration)
	{
		//if calibration
		if (bCalibration)
		{
			//Don't draw main interface
			calib.passInContourFinder(contourFinder.nBlobs, contourFinder.blobs);
			calib.doCalibration();
			//filter->draw();
		}
		//if mini mode
		else if (bMiniMode)
		{
			drawMiniMode();
		}
		//if full mode
		else if (bShowInterface)
		{
			drawFullMode();
			if (!bMultiCamsInterface)
			{
				if(bDrawOutlines || bShowLabels) drawFingerOutlines();
				if(contourFinder.bTrackFiducials)
				{
					drawFiducials();
				}
			
				if(contourFinder.bTrackObjects && isSelecting)
				{
					ofNoFill();
					ofSetColor(255, 0, 0);
					ofRect(rect.x,rect.y,rect.width,rect.height);
					ofSetColor(0, 255, 0);
					ofRect(minRect.x,minRect.y,minRect.width, minRect.height);
					ofSetColor(0, 0, 255);
					ofRect(maxRect.x, maxRect.y, maxRect.width, maxRect.height);
				}
			}
			if (!bCalibration && !bMiniMode) {controls->draw();}
		
		}
	}
	if (bMultiCamsInterface && bDraggingImage ) 
		draggingImage->draw();
}
Exemplo n.º 2
0
/******************************************************************************
 * The draw function paints the textures onto the screen. It runs after update.
 *****************************************************************************/
void ofxNCoreAudio::_draw(ofEventArgs &e)
{
    if (showConfiguration) 
    {
        // if mini mode
        if (bMiniMode)
        {
            drawMiniMode();
        }
		
        // if full mode
        else if (bShowInterface)
        {
            drawFullMode();
        }
		
        // draw gui controls
        if (!bMiniMode) {
            controls->draw();
        }
    }
}