public void write(JmeExporter e) throws IOException { try { e.getCapsule(this).write((Type) myclass.newInstance(), "myclass", new Type()); } catch (Exception ee) { } e.getCapsule(this).writeSavableArrayList(new ArrayList(instances), "instances", null); }
@Override public void write(JmeExporter ex) throws IOException { serialize(); OutputCapsule out = ex.getCapsule(this); out.write(array, "array", null); out.write(index, "index", null); }
@Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule oc = ex.getCapsule(this); oc.write(targets, "targets", null); oc.write(skeleton, "skeleton", null); }
public void write(JmeExporter ex) throws IOException { OutputCapsule oc = ex.getCapsule(this); oc.write(def.getAssetName(), "material_def", null); oc.write(additionalState, "render_state", null); oc.write(transparent, "is_transparent", false); oc.writeStringSavableMap(paramValues, "parameters", null); }
public void write(JmeExporter ex) throws IOException { OutputCapsule oc = ex.getCapsule(this); oc.write(leftIndex, "left_index", 0); oc.write(rightIndex, "right_index", 0); oc.write(leftPlane, "left_plane", 0); oc.write(rightPlane, "right_plane", 0); oc.write(axis, "axis", 0); oc.write(left, "left_node", null); oc.write(right, "right_node", null); }
// /** // * Sets the material to the a specific batch of this BatchNode // * // * // * @param material the material to use for this geometry // */ // public void setMaterial(Material material,int batchIndex) { // if (!batches.isEmpty()) { // // } // // } // // /** // * Returns the material that is used for the first batch of this BatchNode // * // * use getMaterial(Material material,int batchIndex) to get a material from a specific batch // * // * @return the material that is used for the first batch of this BatchNode // * // * @see #setMaterial(com.jme3.material.Material) // */ // public Material getMaterial(int batchIndex) { // if (!batches.isEmpty()) { // Batch b = batches.get(batches.keySet().iterator().next()); // return b.geometry.getMaterial(); // } // return null;//material; // } @Override public void write(JmeExporter ex) throws IOException { super.write(ex); OutputCapsule oc = ex.getCapsule(this); // // if (material != null) { // oc.write(material.getAssetName(), "materialName", null); // } // oc.write(material, "material", null); }
public void write(JmeExporter ex) throws IOException { OutputCapsule capsule = ex.getCapsule(this); capsule.write(name, "name", null); capsule.write(worldBound, "world_bound", null); capsule.write(cullHint, "cull_mode", CullHint.Inherit); capsule.write(batchHint, "batch_hint", BatchHint.Inherit); capsule.write(queueBucket, "queue", RenderQueue.Bucket.Inherit); capsule.write(shadowMode, "shadow_mode", ShadowMode.Inherit); capsule.write(localTransform, "transform", Transform.IDENTITY); capsule.write(localLights, "lights", null); // Shallow clone the controls array to convert its type. capsule.writeSavableArrayList(new ArrayList(controls), "controlsList", null); capsule.writeStringSavableMap(userData, "user_data", null); }
public void write(JmeExporter e) throws IOException { OutputCapsule capsule = e.getCapsule(this); capsule.write(normal, "normal", Vector3d.ZERO); capsule.write(constant, "constant", 0); }
@Override public void write(JmeExporter ex) throws IOException { OutputCapsule oc = ex.getCapsule(this); oc.write(charSet, "charSet", null); oc.write(pages, "pages", null); }
public void write(JmeExporter e) throws IOException { OutputCapsule capsule = e.getCapsule(this); capsule.write(rot, "rot", new Quaternion()); capsule.write(translation, "translation", Vector3f.ZERO); capsule.write(scale, "scale", Vector3f.UNIT_XYZ); }
public void write(JmeExporter ex) throws IOException { OutputCapsule capsule = ex.getCapsule(this); capsule.write(scale, "scale", new Vector3f(1, 1, 1)); capsule.write(getMargin(), "margin", 0.0f); }
public void write(JmeExporter ex) throws IOException { OutputCapsule oc = ex.getCapsule(this); oc.write(numSamples, "numSamples", 0); oc.writeSavableArrayList((ArrayList) filters, "filters", null); }