| 1 |
/* |
|---|
| 2 |
* PROJECT: FLARToolKit |
|---|
| 3 |
* -------------------------------------------------------------------------------- |
|---|
| 4 |
* This work is based on the NyARToolKit developed by |
|---|
| 5 |
* R.Iizuka (nyatla) |
|---|
| 6 |
* http://nyatla.jp/nyatoolkit/ |
|---|
| 7 |
* |
|---|
| 8 |
* The FLARToolKit is ActionScript 3.0 version ARToolkit class library. |
|---|
| 9 |
* Copyright (C)2008 Saqoosha |
|---|
| 10 |
* |
|---|
| 11 |
* This program is free software: you can redistribute it and/or modify |
|---|
| 12 |
* it under the terms of the GNU General Public License as published by |
|---|
| 13 |
* the Free Software Foundation, either version 3 of the License, or |
|---|
| 14 |
* (at your option) any later version. |
|---|
| 15 |
* |
|---|
| 16 |
* This program is distributed in the hope that it will be useful, |
|---|
| 17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 19 |
* GNU General Public License for more details. |
|---|
| 20 |
* |
|---|
| 21 |
* You should have received a copy of the GNU General Public License |
|---|
| 22 |
* along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 23 |
* |
|---|
| 24 |
* For further information please contact. |
|---|
| 25 |
* http://www.libspark.org/wiki/saqoosha/FLARToolKit |
|---|
| 26 |
* <saq(at)saqoosha.net> |
|---|
| 27 |
* |
|---|
| 28 |
*/ |
|---|
| 29 |
package org.libspark.flartoolkit.core |
|---|
| 30 |
{ |
|---|
| 31 |
import jp.nyatla.nyartoolkit.as3.core.NyARCode; |
|---|
| 32 |
|
|---|
| 33 |
public class FLARCode extends NyARCode |
|---|
| 34 |
{ |
|---|
| 35 |
private var _markerPercentWidth:uint; |
|---|
| 36 |
private var _markerPercentHeight:uint; |
|---|
| 37 |
|
|---|
| 38 |
/** |
|---|
| 39 |
* |
|---|
| 40 |
* @param i_width 幅方向の分割数 |
|---|
| 41 |
* @param i_height 高さ方向の分割数 |
|---|
| 42 |
* @param i_markerPercentWidth マーカ全体(本体+枠)における、マーカ本体部分の割合(幅) |
|---|
| 43 |
* @param i_markerPercentHeight マーカ全体(本体+枠)における、マーカ本体部分の割合(高さ) |
|---|
| 44 |
*/ |
|---|
| 45 |
public function FLARCode(i_width:int, i_height:int,i_markerPercentWidth:uint = 50, i_markerPercentHeight:uint = 50) |
|---|
| 46 |
{ |
|---|
| 47 |
super(i_width, i_height); |
|---|
| 48 |
this._markerPercentWidth = i_markerPercentWidth; |
|---|
| 49 |
this._markerPercentHeight = i_markerPercentHeight; |
|---|
| 50 |
} |
|---|
| 51 |
|
|---|
| 52 |
public function loadARPatt(i_stream:String):void |
|---|
| 53 |
{ |
|---|
| 54 |
super.loadARPattFromFile(i_stream); |
|---|
| 55 |
return; |
|---|
| 56 |
} |
|---|
| 57 |
|
|---|
| 58 |
public function get markerPercentWidth():uint { |
|---|
| 59 |
return _markerPercentWidth; |
|---|
| 60 |
} |
|---|
| 61 |
|
|---|
| 62 |
public function get markerPercentHeight():uint { |
|---|
| 63 |
return _markerPercentHeight; |
|---|
| 64 |
} |
|---|
| 65 |
} |
|---|
| 66 |
|
|---|
| 67 |
} |
|---|