Search in sources :

Example 91 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class AudioTrack method write.

/**
     * Internal use only serialization
     *
     * @param ex exporter
     * @throws IOException exception
     */
public void write(JmeExporter ex) throws IOException {
    OutputCapsule out = ex.getCapsule(this);
    out.write(audio, "audio", null);
    out.write(length, "length", 0);
    out.write(startOffset, "startOffset", 0);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 92 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class FilterPostProcessor method write.

public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(numSamples, "numSamples", 0);
    oc.writeSavableArrayList(new ArrayList(filters), "filters", null);
}
Also used : SafeArrayList(com.jme3.util.SafeArrayList) ArrayList(java.util.ArrayList)

Example 93 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class AbstractControl method write.

public void write(JmeExporter ex) throws IOException {
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(enabled, "enabled", true);
    oc.write(spatial, "spatial", null);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 94 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class AssetLinkNode method write.

@Override
public void write(JmeExporter e) throws IOException {
    SafeArrayList<Spatial> childs = children;
    children = new SafeArrayList<Spatial>(Spatial.class);
    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);
    capsule.writeSavableArrayList(assetLoaderKeys, "assetLoaderKeyList", null);
    children = childs;
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Example 95 with OutputCapsule

use of com.jme3.export.OutputCapsule in project jmonkeyengine by jMonkeyEngine.

the class Geometry method write.

@Override
public void write(JmeExporter ex) throws IOException {
    super.write(ex);
    OutputCapsule oc = ex.getCapsule(this);
    oc.write(mesh, "mesh", null);
    if (material != null) {
        oc.write(material.getAssetName(), "materialName", null);
    }
    oc.write(material, "material", null);
    oc.write(ignoreTransform, "ignoreTransform", false);
}
Also used : OutputCapsule(com.jme3.export.OutputCapsule)

Aggregations

OutputCapsule (com.jme3.export.OutputCapsule)119 Vector3f (com.jme3.math.Vector3f)17 Matrix3f (com.jme3.math.Matrix3f)4 SafeArrayList (com.jme3.util.SafeArrayList)2 ArrayList (java.util.ArrayList)2 Generic6DofConstraint (com.bulletphysics.dynamics.constraintsolver.Generic6DofConstraint)1 BoundingSphere (com.jme3.bounding.BoundingSphere)1 BoxCollisionShape (com.jme3.bullet.collision.shapes.BoxCollisionShape)1 ChildCollisionShape (com.jme3.bullet.collision.shapes.infos.ChildCollisionShape)1 RotationalLimitMotor (com.jme3.bullet.joints.motors.RotationalLimitMotor)1 Plane (com.jme3.math.Plane)1 Quaternion (com.jme3.math.Quaternion)1 Vector2f (com.jme3.math.Vector2f)1 Mesh (com.jme3.scene.Mesh)1 ShaderNodeVariable (com.jme3.shader.ShaderNodeVariable)1 List (java.util.List)1