|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmri.v3ds.Scene3ds
public class Scene3ds
Toplevel class for parsing a 3ds-file and containing a 3D Studio vector animation.
The Scene3ds class constructors takes 3ds-file data as input,
parses the data and builds a memory image of the relevant 3D vector
animation data.
A successfully created Scene3ds object contains the following "global" data:
- An array of meshes
- An array of materials
- An array of cameras
- Start end end frame number of animation
| Field Summary | |
|---|---|
static int |
DECODE_ALL
Decode level constant. |
static int |
DECODE_USED_PARAMS
Decode level constant. |
static int |
DECODE_USED_PARAMS_AND_CHUNKS
Decode level constant. |
| Constructor Summary | |
|---|---|
Scene3ds(byte[] file_image)
Construct a Scene3ds object from a 3ds-file RAM image. |
|
Scene3ds(byte[] file_image,
TextDecode3ds decode,
int level)
Construct (and decode) a Scene3ds object from a 3ds-file RAM image. |
|
Scene3ds(java.io.File file)
Construct a Scene3ds object from a local 3ds-file. |
|
Scene3ds(java.io.File file,
TextDecode3ds decode,
int level)
Construct (and decode) a Scene3ds object from a local 3ds-file. |
|
Scene3ds(java.io.InputStream stream)
Construct a Scene3ds object from an InputStream containing 3ds-file data. |
|
Scene3ds(java.io.InputStream stream,
TextDecode3ds decode,
int level)
Construct (and decode) a Scene3ds object from an InputStream containing 3ds-file data. |
|
| Method Summary | |
|---|---|
Camera3ds |
camera(int i)
Access a specific camera in the camera array. |
int |
cameras()
Get number of cameras. |
int |
endFrame()
Get animation end frame. |
Light3ds |
light(int i)
Access a specific light in the light array. |
int |
lights()
Get number of lights. |
Material3ds |
material(int i)
Access a specific material in the material array. |
int |
materials()
Get number of materials. |
Mesh3ds |
mesh(int i)
Access a specific mesh in the mesh array. |
int |
meshes()
Get number of meshes. |
int |
startFrame()
Get animation start frame. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DECODE_ALL
public static final int DECODE_USED_PARAMS
public static final int DECODE_USED_PARAMS_AND_CHUNKS
| Constructor Detail |
|---|
public Scene3ds(byte[] file_image,
TextDecode3ds decode,
int level)
throws Exception3ds
byte[]
array and passed as the file_image parameter.
file_image - file image of whole .3ds filedecode - destination object for text decodelevel - decode level (DECODE_ALL, DECODE_USED_PARAMS,
DECODE_USED_PARAMS_AND_CHUNKS)
Exception3ds - in case of parsing problems
public Scene3ds(byte[] file_image)
throws Exception3ds
byte[]
array and passed as the file_image parameter.
file_image - file image of whole .3ds file
Exception3ds - in case of parsing problems
public Scene3ds(java.io.File file,
TextDecode3ds decode,
int level)
throws Exception3ds
file - 3ds-filedecode - destination object for text decodelevel - decode level (DECODE_ALL, DECODE_USED_PARAMS,
DECODE_USED_PARAMS_AND_CHUNKS)
Exception3ds - in case of I/O or parsing problems
public Scene3ds(java.io.File file)
throws Exception3ds
file - 3ds-file
Exception3ds - in case of I/O or parsing problems
public Scene3ds(java.io.InputStream stream,
TextDecode3ds decode,
int level)
throws Exception3ds
stream - InputStream containing 3ds-file datadecode - destination object for text decodelevel - decode level (DECODE_ALL, DECODE_USED_PARAMS,
DECODE_USED_PARAMS_AND_CHUNKS)
Exception3ds - in case of I/O or parsing problems
public Scene3ds(java.io.InputStream stream)
throws Exception3ds
stream - InputStream containing 3ds-file data
Exception3ds - in case of I/O or parsing problems| Method Detail |
|---|
public int meshes()
public Mesh3ds mesh(int i)
i - index into mesh array [0 ... meshes()-1]
public int cameras()
public Camera3ds camera(int i)
i - index into camera array [0 ... cameras()-1]
public int materials()
public Material3ds material(int i)
i - index into material array [0 ... materials()-1]
public int lights()
public Light3ds light(int i)
i - index into light array [0 ... lights()-1]
public int startFrame()
public int endFrame()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||