チェンジセット 1862

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

マーカの枠の太さを動的に変更可能なIFLARColorPattの実装クラスを作成

ファイル:

凡例:

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

    r1832 r1862  
    272272                        patpowBW[0] = patpowBW[1] = patpowBW[2] = patpowBW[3] = mbw == 0 ? 0.0000001 : Math.sqrt(mbw); 
    273273                } 
     274                 
     275                public function toString():String  
     276                { 
     277                        return this.generatePatFileString(this.pat); 
     278                } 
     279                 
     280                private function generatePatFileString(pat:Array):String { 
     281                        var x:int, y:int, c:int; 
     282                        var out:String = ''; 
     283                        for (c = 2; c >= 0; c--) { 
     284                                for (x = 15; x >= 0; x--) { 
     285                                        for (y = 0; y < 16; y++) { 
     286                                                out += String('    ' + int(pat[y][x][c])).substr(-4); 
     287                                        } 
     288                                        out += '\n'; 
     289                                } 
     290                        } 
     291                        out += '\n'; 
     292                        for (c = 2; c >= 0; c--) { 
     293                                for (y = 15; y >= 0; y--) { 
     294                                        for (x = 15; x >= 0; x--) { 
     295                                                out += String('    ' + int(pat[y][x][c])).substr(-4); 
     296                                        } 
     297                                        out += '\n'; 
     298                                } 
     299                        } 
     300                        out += '\n'; 
     301                        for (c = 2; c >= 0; c--) { 
     302                                for (x = 0; x < 16; x++) { 
     303                                        for (y = 15; y >= 0; y--) { 
     304                                                out += String('    ' + int(pat[y][x][c])).substr(-4); 
     305                                        } 
     306                                        out += '\n'; 
     307                                } 
     308                        } 
     309                        out += '\n'; 
     310                        for (c = 2; c >= 0; c--) { 
     311                                for (y = 0; y < 16; y++) { 
     312                                        for (x = 0; x < 16; x++) { 
     313                                                out += String('    ' + int(pat[y][x][c])).substr(-4); 
     314                                        } 
     315                                        out += '\n'; 
     316                                } 
     317                        } 
     318                        out += '\n'; 
     319                        return out; 
     320                } 
    274321 
    275322        }