API Documentation | All Packages | All Classes | Index | Frames No Frames |
PMDSkin

Package | org.b2ox.pv3d.MikuMikuDance
Class | public class PMDSkin
Inheritance | PMDSkin Object

PMDの表情を保持するためのクラス

Public Properties

| Property | Defined By
--- | --- | ---
|  | name : String [read-only] | PMDSkin
|  | size : int [read-only] | PMDSkin
|  | type : int [read-only] | PMDSkin
|  | weight : Number | PMDSkin

Public Methods

| Method | Defined By
--- | --- | ---
|  | PMDSkin(name:String, vcount:int, type:int) | PMDSkin
|  | calcTargetIndices(baseSkin:PMDSkin):void baseSkinが指しているオリジナルの頂点番号を取得する | PMDSkin
|  | effect(target:Array, baseSkin:PMDSkin):void ターゲットに対して表情変形を適用する | PMDSkin
|  | effectPlus(target:Array):void 表情変形を重ねがけする. | PMDSkin
|  | setVertex(i:int, bi:int, x:Number, y:Number, z:Number):void | PMDSkin

Public Constants

| Constant | Defined By
--- | --- | ---
|  | TYPE_BASE : int = 0 [static] | PMDSkin
|  | TYPE_EYE : int = 2 [static] | PMDSkin
|  | TYPE_EYEBROW : int = 1 [static] | PMDSkin
|  | TYPE_LIP : int = 3 [static] | PMDSkin
|  | TYPE_OTHER : int = 4 [static] | PMDSkin

Property Detail

name | property

`name:String` [read-only]

Implementation
`public function get name():String`

size | property |

`size:int` [read-only]

Implementation
`public function get size():int`

type | property |

`type:int` [read-only]

Implementation
`public function get type():int`

weight | property |

`weight:Number`

Implementation
`public function get weight():Number`
`public function set weight(value:Number):void`
Constructor Detail

PMDSkin | () | Constructor

`public function PMDSkin(name:String, vcount:int, type:int)`

Parameters

| `name:String`
| `vcount:int`
| `type:int`

Method Detail

calcTargetIndices | () | method

`public function calcTargetIndices(baseSkin:PMDSkin):void`

baseSkinが指しているオリジナルの頂点番号を取得する

Parameters

| `baseSkin:PMDSkin`

effect | () | method |

`public function effect(target:Array, baseSkin:PMDSkin):void`

ターゲットに対して表情変形を適用する

Parameters

| `target:Array`
| `baseSkin:PMDSkin`

effectPlus | () | method |

`public function effectPlus(target:Array):void`

表情変形を重ねがけする. これを使う前には必ずcalcTargetIndicesを実行すること(PMDController.addSkinの時に実行するのでユーザーは気にしなくて良い)

Parameters

| `target:Array`

setVertex | () | method |

`public function setVertex(i:int, bi:int, x:Number, y:Number, z:Number):void`

Parameters

| `i:int`
| `bi:int` — 基準頂点のインデックス
| `x:Number`
| `y:Number`
| `z:Number`

Constant Detail

TYPE_BASE | Constant

`public static const TYPE_BASE:int = 0`

TYPE_EYE | Constant |

`public static const TYPE_EYE:int = 2`

TYPE_EYEBROW | Constant |

`public static const TYPE_EYEBROW:int = 1`

TYPE_LIP | Constant |

`public static const TYPE_LIP:int = 3`

TYPE_OTHER | Constant |

`public static const TYPE_OTHER:int = 4`

Mon Aug 16 2010, 08:52 PM +09:00