チェンジセット 1869: as3/FLARToolKit/trunk/src

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

--

ファイル:

凡例:

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

    r1862 r1869  
    5252                // int[][][] 
    5353 
    54                 private var width:int; 
    55  
    56                 private var height:int; 
     54                private var _width:int; 
     55 
     56                private var _height:int; 
    5757 
    5858                private var _pickFromRasterDivideX:Number; 
     
    8383                        this._extPatXwBase = WK_WORLD_BASE + frameWidthByDec; 
    8484                        this._extPatYwBase = WK_WORLD_BASE + frameHeightByDec; 
    85                         this._extPatXwStep = (WK_WORLD_ADD - frameWidthByDec*2); 
    86                         this._extPatYwStep = (WK_WORLD_ADD - frameHeightByDec*2); 
    87  
    88                         trace(this._extPatXwBase, this._extPatXwStep, this._extPatYwBase, this._extPatYwStep); 
    89                         this.width = i_width; 
    90                         this.height = i_height; 
     85                        this._extPatXwStep = (WK_WORLD_ADD - frameWidthByDec * 2); 
     86                        this._extPatYwStep = (WK_WORLD_ADD - frameHeightByDec * 2); 
     87 
     88                        this._width = i_width; 
     89                        this._height = i_height; 
    9190                        this._pickFromRasterDivideX = AR_PATT_SAMPLE_NUM / i_width; 
    9291                        this._pickFromRasterDivideY = AR_PATT_SAMPLE_NUM / i_height; 
     
    9493                } 
    9594 
     95                /** 
     96                 * マーカ全体を10とした場合の、枠の太さ(X方向)を取得 
     97                 */ 
     98                public function get frameWidthByDec():Number  
     99                { 
     100                        return this._extPatXwBase - WK_WORLD_BASE; 
     101                } 
     102                 
     103                /** 
     104                 * マーカ全体を10とした場合の、枠の太さ(X方向)を変更 
     105                 * @param       value   新しい値 
     106                 */ 
     107                public function set frameWidthByDec(value:Number):void  
     108                { 
     109                        this._extPatXwBase = WK_WORLD_BASE + value; 
     110                        this._extPatXwStep = (WK_WORLD_ADD - value * 2); 
     111                } 
     112                 
     113                /** 
     114                 * マーカ全体を10とした場合の、枠の太さ(Y方向)を取得 
     115                 */ 
     116                public function get frameHeightByDec():Number  
     117                { 
     118                        return this._extPatXwBase - WK_WORLD_BASE; 
     119                } 
     120                 
     121                /** 
     122                 * マーカ全体を10とした場合の、枠の太さ(Y方向)を変更 
     123                 * @param       value   新しい値 
     124                 */ 
     125                public function set frameHeightByDec(value:Number):void  
     126                { 
     127                        this._extPatXwBase = WK_WORLD_BASE + value; 
     128                        this._extPatYwStep = (WK_WORLD_ADD - value * 2); 
     129                } 
     130                 
     131                 
     132                public function get width():int { return _width; } 
     133                 
     134                public function set width(value:int):void  
     135                { 
     136                        this._width = value; 
     137                        this._pickFromRasterDivideX = AR_PATT_SAMPLE_NUM / value; 
     138                        this.extpat = ArrayUtil.createJaggedArray(this._height, this._width, 3); 
     139                } 
     140 
     141                public function get height():int { return _height; } 
     142                 
     143                public function set height(value:int):void  
     144                { 
     145                        this._height = value; 
     146                        this._pickFromRasterDivideY = AR_PATT_SAMPLE_NUM / value; 
     147                        this.extpat = ArrayUtil.createJaggedArray(this._height, this._width, 3); 
     148                } 
     149                 
    96150                // public void setSize(int i_new_width,int i_new_height) 
    97151                // {