public class ShapeTransient
extends java.lang.Object
implements com.jme3.export.Savable
Wrapper class for allowing an IShape to be stored in a JME3 Spatial as user data
ShapeTransient implements JME3's Savable interface but does not offer the ability to persist the IShape. This class exists solely to avoid IShape implementing Savable.
Constructor and Description |
---|
ShapeTransient(IShape shape)
Associates a new ShapeTransient with the given IShape
|
public ShapeTransient(IShape shape)
Associates a new ShapeTransient with the given IShape
shape
- The associated shape
public IShape getShape()
Returns the associated shape
The associated shape
public void read(com.jme3.export.JmeImporter importer) throws java.io.IOException
read
in interface com.jme3.export.Savable
java.io.IOException
public void write(com.jme3.export.JmeExporter exporter) throws java.io.IOException
write
in interface com.jme3.export.Savable
java.io.IOException