org.jdesktop.wonderland.client.jme.artimport
Class DeployedModel

java.lang.Object
  extended by org.jdesktop.wonderland.client.jme.artimport.DeployedModel

public class DeployedModel
extends java.lang.Object

This class represents a .dep file, which is a deployed model.

Author:
paulby

Constructor Summary
DeployedModel()
           
DeployedModel(java.lang.String modelLoaderClassname)
           
DeployedModel(java.net.URL modelURL, ModelLoader modelLoader)
           
 
Method Summary
 void addCellServerState(CellServerState cellServerState)
           
 void applyModelTransform(com.jme.scene.Node modelBG)
          Apply the model transform the modelBG node
static DeployedModel decode(java.io.InputStream in)
           
 void encode(java.io.OutputStream os)
          Writes the ModuleInfo class to an output stream.
 java.lang.String getAuthor()
           
 CellServerState getCellServerState()
           
 java.lang.Object getLoaderData()
           
 java.lang.String getLoaderDataURL()
          The URL of the .ldr file that contains loader specific data
 com.jme.bounding.BoundingVolume getModelBounds()
           
 ModelLoader getModelLoader()
           
 java.lang.String getModelLoaderClassname()
          Return the classname of the model loader used to load this model.
 com.jme.math.Quaternion getModelRotation()
           
 com.jme.math.Vector3f getModelScale()
           
 com.jme.math.Vector3f getModelTranslation()
           
 java.lang.String getModelURL()
           
 void recordModelBGTransform(com.jme.scene.Node modelBG)
          Record the local transform of the modelBG
 void setAuthor(java.lang.String author)
           
 void setLoaderData(java.lang.Object loaderDeploymentData)
           
 void setLoaderDataURL(java.lang.String loaderDataURL)
           
 void setModelBounds(com.jme.bounding.BoundingVolume modelBounds)
           
 void setModelRotation(com.jme.math.Quaternion modelBGRotation)
           
 void setModelScale(com.jme.math.Vector3f modelBGScale)
           
 void setModelTranslation(com.jme.math.Vector3f modelBGTranslation)
           
 void setModelURL(java.lang.String deployedURL)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DeployedModel

public DeployedModel()

DeployedModel

public DeployedModel(java.net.URL modelURL,
                     ModelLoader modelLoader)

DeployedModel

public DeployedModel(java.lang.String modelLoaderClassname)
Method Detail

getModelURL

public java.lang.String getModelURL()
Returns:
the deployedURL

setModelURL

public void setModelURL(java.lang.String deployedURL)
Parameters:
deployedURL - the deployedURL to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

recordModelBGTransform

public void recordModelBGTransform(com.jme.scene.Node modelBG)
Record the local transform of the modelBG

Parameters:
modelBG -

getModelLoaderClassname

public java.lang.String getModelLoaderClassname()
Return the classname of the model loader used to load this model.

Returns:

applyModelTransform

public void applyModelTransform(com.jme.scene.Node modelBG)
Apply the model transform the modelBG node


addCellServerState

public void addCellServerState(CellServerState cellServerState)

getCellServerState

public CellServerState getCellServerState()

getModelLoader

public ModelLoader getModelLoader()

getModelScale

public com.jme.math.Vector3f getModelScale()
Returns:
the modelBGScale

setModelScale

public void setModelScale(com.jme.math.Vector3f modelBGScale)
Parameters:
modelBGScale - the modelBGScale to set

getModelTranslation

public com.jme.math.Vector3f getModelTranslation()
Returns:
the modelBGTranslation

setModelTranslation

public void setModelTranslation(com.jme.math.Vector3f modelBGTranslation)
Parameters:
modelBGTranslation - the modelBGTranslation to set

getModelRotation

public com.jme.math.Quaternion getModelRotation()
Returns:
the modelBGRotation

setModelRotation

public void setModelRotation(com.jme.math.Quaternion modelBGRotation)
Parameters:
modelBGRotation - the modelBGRotation to set

getLoaderData

public java.lang.Object getLoaderData()
Returns:
the loaderDeploymentData

setLoaderData

public void setLoaderData(java.lang.Object loaderDeploymentData)
Parameters:
loaderDeploymentData - the loaderDeploymentData to set

getModelBounds

public com.jme.bounding.BoundingVolume getModelBounds()
Returns:
the modelBounds

setModelBounds

public void setModelBounds(com.jme.bounding.BoundingVolume modelBounds)
Parameters:
modelBounds - the modelBounds to set

getAuthor

public java.lang.String getAuthor()
Returns:
the author

setAuthor

public void setAuthor(java.lang.String author)
Parameters:
author - the author to set

getLoaderDataURL

public java.lang.String getLoaderDataURL()
The URL of the .ldr file that contains loader specific data

Returns:
the loaderDataURL

setLoaderDataURL

public void setLoaderDataURL(java.lang.String loaderDataURL)
Parameters:
loaderDataURL - the loaderDataURL to set

encode

public void encode(java.io.OutputStream os)
            throws javax.xml.bind.JAXBException
Writes the ModuleInfo class to an output stream.

Parameters:
os - The output stream to write to
Throws:
javax.xml.bind.JAXBException

decode

public static DeployedModel decode(java.io.InputStream in)
                            throws javax.xml.bind.JAXBException
Throws:
javax.xml.bind.JAXBException


Open Wonderland - http://openwonderland.org