com.jmex.model.converters
Class MaxToJme

java.lang.Object
  extended by com.jmex.model.converters.FormatConverter
      extended by com.jmex.model.converters.MaxToJme

public class MaxToJme
extends FormatConverter

Started Date: Jun 26, 2004

Converts .3ds files into jME binary

Author:
Jack Lindamood

Field Summary
 
Fields inherited from class com.jmex.model.converters.FormatConverter
properties
 
Constructor Summary
MaxToJme()
           
 
Method Summary
 void convert(java.io.InputStream max, java.io.OutputStream bin)
          Converts a .3ds file (represented by the InputStream) to jME format.
static SpatialTransformer findController(Node model)
          This function returns the controller of a loaded 3ds model.
static void main(java.lang.String[] args)
          Converts a .3ds file to .jme via command prompt
 
Methods inherited from class com.jmex.model.converters.FormatConverter
attemptFileConvert, clearProperty, getProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxToJme

public MaxToJme()
Method Detail

main

public static void main(java.lang.String[] args)
Converts a .3ds file to .jme via command prompt

Parameters:
args - The array of parameters. args="file1.3ds file2.jme" will convert file1.3ds to jme and save it to file2.jme.

convert

public void convert(java.io.InputStream max,
                    java.io.OutputStream bin)
             throws java.io.IOException
Converts a .3ds file (represented by the InputStream) to jME format.

Specified by:
convert in class FormatConverter
Parameters:
max - The .3ds file as an InputStream
bin - The place to put the jME format
Throws:
java.io.IOException - If read/write goes wrong.

findController

public static SpatialTransformer findController(Node model)
This function returns the controller of a loaded 3ds model. Will return null if a correct SpatialTransformer could not be found, or if one does not exist.

Parameters:
model - The model that was loaded.
Returns:
The controller for that 3ds model.