All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cogchar.sight.api.obs.VisionCanvas Maven / Gradle / Ivy

/*
 * VisionCanvas.java
 * 
 * Created on Jul 21, 2007, 7:34:11 PM
 * 
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.cogchar.sight.api.obs;

import java.awt.Graphics;

/**
 *
 * @author josh
 */
    public class VisionCanvas extends java.awt.Canvas {
    private RawVisionObserver m_picDraw;
    
    public void SetObserver(RawVisionObserver obs)
    {
        m_picDraw = obs;
    }
    
    public void update(Graphics g) {
        paint(g);
    }
    
    public void paint(Graphics g) {
        //super.paint(g);
        if ( m_picDraw != null ) {
            m_picDraw.DrawVideo(g);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy