OSDN Git Service

Merge develop into pomconfig
[mikutoga/TogaGem.git] / src / main / java / jp / sfjp / mikutoga / pmd / parser / PmdBoneHandler.java
index 527bb54..2ae5048 100644 (file)
@@ -18,23 +18,25 @@ import jp.sfjp.mikutoga.bin.parser.ParseStage;
 public interface PmdBoneHandler extends LoopHandler {
 
     /** ボーン定義抽出ループ。 */
-    ParseStage BONE_LIST = new ParseStage();
+    public static final ParseStage BONE_LIST = new ParseStage();
 
     /** IKリスト抽出ループ。 */
-    ParseStage IK_LIST = new ParseStage();
+    public static final ParseStage IK_LIST = new ParseStage();
 
     /** IKチェーンリスト抽出ループ。 */
-    ParseStage IKCHAIN_LIST = new ParseStage();
+    public static final ParseStage IKCHAIN_LIST = new ParseStage();
 
     /** ボーングループ名抽出ループ。 */
-    ParseStage BONEGROUP_LIST = new ParseStage();
+    public static final ParseStage BONEGROUP_LIST = new ParseStage();
 
     /** ボーングループ内訳抽出ループ。 */
-    ParseStage GROUPEDBONE_LIST = new ParseStage();
+    public static final ParseStage GROUPEDBONE_LIST = new ParseStage();
 
     /**
      * ボーン定義情報の通知を受け取る。
+     *
      * <p>{@link #BONE_LIST}ループの構成要素。
+     *
      * @param boneName ボーン名
      * @param boneKind ボーン種別。
      * <ul>
@@ -49,81 +51,96 @@ public interface PmdBoneHandler extends LoopHandler {
      * <li>8:捩り
      * <li>9:回転連動
      * </ul>
-     * ※8,9はMMD4.0から?
-     * @throws MmdFormatException 不正フォーマットによる
-     * パース処理の中断をパーサに指示
+     *     ※8,9はMMD4.0から?
+     * @throws MmdFormatException
+     *     不正フォーマットによるパース処理の中断をパーサに指示
      */
-    void pmdBoneInfo(String boneName, byte boneKind)
+    public abstract void pmdBoneInfo(String boneName, byte boneKind)
             throws MmdFormatException;
 
     /**
      * ボーン間接続情報の通知を受け取る。
+     *
      * <p>{@link #BONE_LIST}ループの構成要素。
+     *
      * @param parentId 親(前)ボーンID。無い場合は0xffff。
      * @param tailId 子(次)ボーンID。末端の場合は0。
-     * 捩りボーンの場合は軸方向のボーンID、
-     * 回転連動ボーンの場合は影響元ボーンID
+     *     捩りボーンの場合は軸方向のボーンID、
+     *     回転連動ボーンの場合は影響元ボーンID
      * @param ikId 影響IKボーンID。未指定の場合は0。
-     * ※回転連動では影響度(0-100)、負や100以上もOK!
-     * @throws MmdFormatException 不正フォーマットによる
-     * パース処理の中断をパーサに指示
+     *     ※回転連動では影響度(0-100)、負や100以上もOK!
+     * @throws MmdFormatException
+     *     不正フォーマットによるパース処理の中断をパーサに指示
      */
-    void pmdBoneLink(int parentId, int tailId, int ikId)
+    public abstract void pmdBoneLink(int parentId, int tailId, int ikId)
             throws MmdFormatException;
 
     /**
      * ボーン位置情報の通知を受け取る。
+     *
      * <p>{@link #BONE_LIST}ループの構成要素。
+     *
      * @param xPos X座標
      * @param yPos Y座標
      * @param zPos Z座標
-     * @throws MmdFormatException 不正フォーマットによる
-     * パース処理の中断をパーサに指示
+     * @throws MmdFormatException
+     *     不正フォーマットによるパース処理の中断をパーサに指示
      */
-    void pmdBonePosition(float xPos, float yPos, float zPos)
+    public abstract void pmdBonePosition(float xPos, float yPos, float zPos)
             throws MmdFormatException;
 
     /**
      * IKボーン情報の通知を受け取る。
+     *
      * <p>{@link #IK_LIST}ループの構成要素。
+     *
      * @param boneId IKボーンID
      * @param targetId IKボーンが最初に接続するIK接続先ボーンID
      * @param depth 再帰演算の深さ
      * @param weight 制限角度強度
-     * @throws MmdFormatException 不正フォーマットによる
-     * パース処理の中断をパーサに指示
+     * @throws MmdFormatException
+     *     不正フォーマットによるパース処理の中断をパーサに指示
      */
-    void pmdIKInfo(int boneId, int targetId, int depth, float weight)
+    public abstract void pmdIKInfo(
+            int boneId, int targetId,
+            int depth, float weight)
             throws MmdFormatException;
 
     /**
      * IKチェイン要素の通知を受け取る。
+     *
      * <p>{@link #IK_LIST}ループの下位{@link #IKCHAIN_LIST}ループの構成要素。
+     *
      * @param childId IK影響下ボーンID
-     * @throws MmdFormatException 不正フォーマットによる
-     * パース処理の中断をパーサに指示
+     * @throws MmdFormatException
+     *     不正フォーマットによるパース処理の中断をパーサに指示
      */
-    void pmdIKChainInfo(int childId)
+    public abstract void pmdIKChainInfo(int childId)
             throws MmdFormatException;
 
     /**
      * ボーングループ名定義の通知を受け取る。
+     *
      * <p>{@link #BONEGROUP_LIST}ループの構成要素。
+     *
      * @param groupName ボーングループ名。末尾のLF(0x0a)は削除される。
-     * @throws MmdFormatException 不正フォーマットによる
-     * パース処理の中断をパーサに指示
+     * @throws MmdFormatException
+     *     不正フォーマットによるパース処理の中断をパーサに指示
      */
-    void pmdBoneGroupInfo(String groupName) throws MmdFormatException;
+    public abstract void pmdBoneGroupInfo(String groupName)
+            throws MmdFormatException;
 
     /**
      * ボーングループ内訳の通知を受け取る。
+     *
      * <p>{@link #GROUPEDBONE_LIST}ループの構成要素。
+     *
      * @param boneId グループに所属するボーンのID
      * @param groupId ボーンが所属するボーングループIDに1を足した数
-     * @throws MmdFormatException 不正フォーマットによる
-     * パース処理の中断をパーサに指示
+     * @throws MmdFormatException
+     *     不正フォーマットによるパース処理の中断をパーサに指示
      */
-    void pmdGroupedBoneInfo(int boneId, int groupId)
+    public abstract void pmdGroupedBoneInfo(int boneId, int groupId)
             throws MmdFormatException;
 
 }