Class J3MRootOutputCapsule
java.lang.Object
com.jme3.material.plugin.export.material.J3MOutputCapsule
com.jme3.material.plugin.export.material.J3MRootOutputCapsule
- All Implemented Interfaces:
com.jme3.export.OutputCapsule
The `J3MRootOutputCapsule` class extends `J3MOutputCapsule` and serves as the
root output capsule for exporting jME materials (`.j3m` files).
- Author:
- tsr
-
Field Summary
Fields inherited from class J3MOutputCapsule
exporter -
Constructor Summary
ConstructorsConstructorDescriptionJ3MRootOutputCapsule(J3MExporter exporter) Constructs a new `J3MRootOutputCapsule`. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears all data within this capsule and its superclass.com.jme3.export.OutputCapsulegetCapsule(com.jme3.export.Savable object) Retrieves an `OutputCapsule` for a given `Savable` object.voidvoidvoidvoidwriteToStream(Writer out) Methods inherited from class J3MOutputCapsule
format, formatMatParamTexture, formatWrapMode, putParameter, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, write, writeByteBufferArrayList, writeFloatBufferArrayList, writeIntSavableMap, writeParameter, writeSavableArrayList, writeSavableArrayListArray, writeSavableArrayListArray2D, writeSavableMap, writeStringSavableMap
-
Constructor Details
-
J3MRootOutputCapsule
Constructs a new `J3MRootOutputCapsule`.- Parameters:
exporter- The `J3MExporter` instance used for exporting savable objects.
-
-
Method Details
-
clear
public void clear()Clears all data within this capsule and its superclass. Resets material properties to their default or null values and clears the map of savable capsules.- Overrides:
clearin classJ3MOutputCapsule
-
getCapsule
public com.jme3.export.OutputCapsule getCapsule(com.jme3.export.Savable object) Retrieves an `OutputCapsule` for a given `Savable` object. If a capsule for the object does not exist, a new `J3MRenderStateOutputCapsule` is created and associated with the object.- Parameters:
object- The `Savable` object for which to retrieve or create a capsule.- Returns:
- The `OutputCapsule` associated with the given savable object.
-
writeToStream
- Overrides:
writeToStreamin classJ3MOutputCapsule- Throws:
IOException
-
write
- Specified by:
writein interfacecom.jme3.export.OutputCapsule- Overrides:
writein classJ3MOutputCapsule- Throws:
IOException
-
write
- Specified by:
writein interfacecom.jme3.export.OutputCapsule- Overrides:
writein classJ3MOutputCapsule- Throws:
IOException
-
write
public void write(com.jme3.export.Savable object, String name, com.jme3.export.Savable defVal) throws IOException - Specified by:
writein interfacecom.jme3.export.OutputCapsule- Overrides:
writein classJ3MOutputCapsule- Throws:
IOException
-