com.vodafone.v10.graphics.j3d
Class Figure

java.lang.Object
  |
  +--com.vodafone.v10.graphics.j3d.Figure

public class Figure
extends java.lang.Object

Model class.
To set the drawing scope, use the Graphics clipping function.


Constructor Summary
Figure(byte[] data)
          Figure constructor
Figure(java.lang.String name)
          Figure constructor
 
Method Summary
 void setPosture(ActionTable actTable, int action, int frame)
          Sets posture.
 void setTexture(Texture texture)
          Sets texture data.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Figure

public Figure(byte[] data)
Figure constructor
Parameters:
data - Model data
Throws:
NullPointerException - if data is null.
RuntimeException - if creation failed.
IllegalStateException - if called during sprite execution.

Figure

public Figure(java.lang.String name)
       throws java.io.IOException
Figure constructor
Parameters:
name - Resource name
Throws:
NullPointerException - if resource name is null.
RuntimeException - if creation failed.
java.io.IOException - if the resource could not be opened.
IllegalStateException - if called during sprite execution.
Method Detail

setPosture

public void setPosture(ActionTable actTable,
                       int action,
                       int frame)
Sets posture.
Parameters:
actTable - Action table
action - Action number
frame - Frame number
Throws:
NullPointerException - if actTable is null.
IllegalArgumentException - if action number is outside the action table range.
IllegalStateException - if called during sprite execution.

setTexture

public void setTexture(Texture texture)
Sets texture data.
Parameters:
texture - Texture data
Throws:
NullPointerException - if texture data is null.
IllegalArgumentException - if texture data is not for model use.


Copyright 2002,2003 Aplix Corporation. All rights reserved. Aplix Confidential and Restricted.