/* * PROJECT: FLARManager * http://transmote.com/flar * Copyright 2009, Eric Socolofsky * -------------------------------------------------------------------------------- * This work complements FLARToolkit, developed by Saqoosha as part of the Libspark project. * http://www.libspark.org/wiki/saqoosha/FLARToolKit * FLARToolkit is Copyright (C)2008 Saqoosha, * and is ported from NYARToolkit, which is ported from ARToolkit. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this framework; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * For further information please contact: * * http://transmote.com/flar * */ package com.transmote.flar.source { import flash.display.BitmapData; import flash.geom.Rectangle; /** * interface that defines a means of updating and accessing a * BitmapData instance to be analyzed by FLARToolkit's marker detection. * * @author Eric Socolofsky * @url http://transmote.com/flar */ public interface IFLARSource { /** * update the BitmapData source. */ function update () :void; /** * retrieve the BitmapData source used for analysis. * NOTE: returns the actual BitmapData object, not a clone. */ function get source () :BitmapData; /** * size of BitmapData source used for analysis. */ function get sourceSize () :Rectangle; /** * ratio of area of reported results to display size. * used to scale results of FLARToolkit analysis to correctly fit display area. */ function get resultsToDisplayRatio () :Number; /** * set to true to flip the camera image horizontally. */ function get mirrored () :Boolean; function set mirrored (val:Boolean) :void; } }