com.mascotcapsule.micro3d.v3
Class ActionTable

java.lang.Object
  extended bycom.mascotcapsule.micro3d.v3.ActionTable

public class ActionTable
extends java.lang.Object

This class maintains action data that represents the movement of a 3D model. The pose of the 3D model can be changed by setting an action in the figure object. Animation can be displayed by continually changing the pose.


Constructor Summary
ActionTable(byte[] b)
          Action data table objects are generated from meta action data.
ActionTable(java.lang.String name)
          The action data table object is generated from the meta action data specified by the resource name.
 
Method Summary
 void dispose()
          Disposes of action data being maintained.
 int getNumAction()
          Deprecated. Method to be eliminated in the near future.
 int getNumActions()
          Gets the number of actions defined in the action table.
 int getNumFrame(int idx)
          Deprecated. Method to be eliminated in the near future.
 int getNumFrames(int idx)
          Gets the maximum frame value of actions specified in the action table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionTable

public ActionTable(byte[] b)
Action data table objects are generated from meta action data.

Parameters:
b - Data byte column
Throws:
java.lang.NullPointerException - When the argument is null.
java.lang.RuntimeException - Object generation failure, such as when the data is false.

ActionTable

public ActionTable(java.lang.String name)
            throws java.io.IOException
The action data table object is generated from the meta action data specified by the resource name.

Parameters:
name - Resource file name
Throws:
java.lang.NullPointerException - When the argument name is null.
java.lang.RuntimeException - Object generation failure, such as when the data is false.
java.io.IOException - I/O error on reading data.
Method Detail

dispose

public final void dispose()
Disposes of action data being maintained.


getNumAction

public final int getNumAction()
Deprecated. Method to be eliminated in the near future.

See Also:
getNumActions()

getNumActions

public final int getNumActions()
Gets the number of actions defined in the action table.

Returns:
Number of actions

getNumFrame

public final int getNumFrame(int idx)
Deprecated. Method to be eliminated in the near future.

See Also:
getNumFrames(int)

getNumFrames

public final int getNumFrames(int idx)
Gets the maximum frame value of actions specified in the action table.

Parameters:
idx - Action index value. Specifies a value higher than 0 and smaller than the return value of the getNumActions() method.
Returns:
Maximum number of frames
Throws:
java.lang.IllegalArgumentException - When argument idx is false.
See Also:
getNumActions()