fileconvert
Class WriteLWO

java.lang.Object
  |
  +--fileconvert.WriteLWO

public class WriteLWO
extends java.lang.Object

This class writes a LWO file


Constructor Summary
WriteLWO()
          Creates new WriteLWO
WriteLWO(Info3d info, java.lang.String fname)
          Creates a new Write LWO and Writes the file
 
Method Summary
 void setInfo3d(Info3d info)
          sets 3d info
 boolean write(Info3d info, java.lang.String fname)
          Writes the LWO File
 boolean write(java.lang.String fname)
          Writes a LWO file(info must be set before writing)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteLWO

public WriteLWO()
Creates new WriteLWO

WriteLWO

public WriteLWO(Info3d info,
                java.lang.String fname)
         throws java.io.IOException
Creates a new Write LWO and Writes the file
Parameters:
info - 3d info to be written
fname - Name of the file to be written
Throws:
java.io.IOException - throws IOException
Method Detail

setInfo3d

public void setInfo3d(Info3d info)
sets 3d info
Parameters:
info - The variable containing all the 3d info

write

public boolean write(Info3d info,
                     java.lang.String fname)
              throws java.io.IOException
Writes the LWO File
Parameters:
info - The 3d info to be written
fname - The path of the file
Returns:
Returns a boolean stating whether it was successful or not
Throws:
java.io.IOException - throws IOException

write

public boolean write(java.lang.String fname)
              throws java.io.IOException
Writes a LWO file(info must be set before writing)
Parameters:
fname - The path of the file to be written
Returns:
Returns a boolean stating whether it was successful or not
Throws:
java.io.IOException - throws IOException