チェンジセット 1731

差分発生行の前後
無視リスト:
コミット日時:
2008/10/28 17:08:49 (2 ヶ月前)
コミッタ:
tarotarorg
ログメッセージ:

複数マーカ用のDetectorクラスの名前をそれらしく変更

ファイル:

凡例:

変更無し
追加
削除
更新
コピー
移動
  • as3/FLARToolKit/trunk/src/org/libspark/flartoolkit/detector/FLARMultiMarkerDetector.as

    r1727 r1731  
    5454         *  
    5555         */ 
    56         public class FLARDetectMarker { 
     56        public class FLARMultiMarkerDetector { 
    5757 
    5858                private static const AR_SQUARE_MAX:int = 300; 
     
    7777                private var _patt:IFLARColorPatt; 
    7878 
    79                 private var _result_holder:FLARDetectMarkerResultHolder = new FLARDetectMarkerResultHolder(); 
     79                private var _result_holder:FLARMultiMarkerDetectorResultHolder = new FLARMultiMarkerDetectorResultHolder(); 
    8080 
    8181                /** 
     
    9393                 * @throws FLARException 
    9494                 */ 
    95                 public function FLARDetectMarker(i_param:FLARParam, i_code:Array, i_marker_width:Array, i_number_of_code:int) { 
     95                public function FLARMultiMarkerDetector(i_param:FLARParam, i_code:Array, i_marker_width:Array, i_number_of_code:int) { 
    9696                        const scr_size:FLARIntSize = i_param.getScreenSize(); 
    9797                        // 解析オブジェクトを作る 
     
    198198                                } 
    199199                                // i番目のパターン情報を保存する。 
    200                                 var result:FLARDetectMarkerResult = this._result_holder.result_array[i]; 
     200                                var result:FLARMultiMarkerDetectorResult = this._result_holder.result_array[i]; 
    201201                                result.arcode_id = code_index; 
    202202                                result.confidence = confidence; 
     
    217217                 */ 
    218218                public function getTransmationMatrix(i_index:int, o_result:FLARTransMatResult):void { 
    219                         const result:FLARDetectMarkerResult = this._result_holder.result_array[i_index]; 
     219                        const result:FLARMultiMarkerDetectorResult = this._result_holder.result_array[i_index]; 
    220220                        // 一番一致したマーカーの位置とかその辺を計算 
    221221                        if (_is_continue) { 
     
    229229                public function getResult(i_index:int):Object 
    230230                { 
    231                         const result:FLARDetectMarkerResult = this._result_holder.result_array[i_index]; 
     231                        const result:FLARMultiMarkerDetectorResult = this._result_holder.result_array[i_index]; 
    232232                        var ret:Object = new Object(); 
    233233                        ret.square = result.ref_square; 
     
    284284import org.libspark.flartoolkit.core.FLARSquare;         
    285285 
    286 class FLARDetectMarkerResult { 
     286class FLARMultiMarkerDetectorResult { 
    287287 
    288288        public var arcode_id:int; 
     
    295295} 
    296296 
    297 class FLARDetectMarkerResultHolder { 
    298  
    299         public var result_array:Array = new Array(1); //new FLARDetectMarkerResult[1]; // FLARDetectMarkerResult[] 
     297class FLARMultiMarkerDetectorResultHolder { 
     298 
     299        public var result_array:Array = new Array(1); //new FLARMultiMarkerDetectorResult[1]; // FLARMultiMarkerDetectorResult[] 
    300300 
    301301        /** 
     
    307307                if (i_reserve_size >= result_array.length) { 
    308308                        var new_size:int = i_reserve_size + 5; 
    309                         result_array = new Array(new_size); //new FLARDetectMarkerResult[new_size]; 
     309                        result_array = new Array(new_size); //new FLARMultiMarkerDetectorResult[new_size]; 
    310310                        for (var i:int = 0; i < new_size; i++) { 
    311                                 result_array[i] = new FLARDetectMarkerResult(); 
     311                                result_array[i] = new FLARMultiMarkerDetectorResult(); 
    312312                        } 
    313313                }