Here are the examples of the java api com.jme3.export.OutputCapsule taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
100 Examples
17
Source : VariableMapping.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
/**
* jme seralization (not used)
*
* @param ex the exporter
* @throws IOException
*/
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(leftVariable, "leftVariable", null);
oc.write(rightVariable, "rightVariable", null);
oc.write(condition, "condition", "");
oc.write(leftSwizzling, "leftSwizzling", "");
oc.write(rightSwizzling, "rightSwizzling", "");
}
17
Source : ShaderNodeVariable.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
/**
* jme seralization (not used)
*
* @param ex the exporter
* @throws IOException
*/
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(name, "name", "");
oc.write(type, "type", "");
oc.write(nameSpace, "nameSpace", "");
oc.write(condition, "condition", null);
oc.write(shaderOutput, "shaderOutput", false);
oc.write(multiplicity, "multiplicity", null);
}
16
Source : SimpleLodThreshold.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = ex.getCapsule(this);
oc.write(size, "size", 16);
oc.write(lodMultiplier, "lodMultiplier", 2);
}
16
Source : LodDistanceCalculatorFactory.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
OutputCapsule c = ex.getCapsule(this);
c.write(lodThreshold, "lodThreshold", null);
c.write(lodThresholdSize, "lodThresholdSize", 2);
}
16
Source : DistanceLodCalculator.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = ex.getCapsule(this);
oc.write(size, "patchSize", 32);
oc.write(lodMultiplier, "lodMultiplier", 32);
}
16
Source : AssetTileLoader.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
OutputCapsule c = ex.getCapsule(this);
c.write(replacedetPath, "replacedetPath", null);
c.write(name, "name", null);
}
16
Source : SpotLightShadowRenderer.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(zFarOverride, "zFarOverride", 0);
oc.write(light, "light", null);
oc.write(fadeInfo, "fadeInfo", null);
oc.write(fadeLength, "fadeLength", 0f);
}
16
Source : PssmShadowFilter.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
}
16
Source : PointLightShadowRenderer.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(light, "light", null);
}
16
Source : DirectionalLightShadowRenderer.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(lambda, "lambda", 0.65f);
oc.write(zFarOverride, "zFarOverride", 0);
oc.write(light, "light", null);
oc.write(fadeInfo, "fadeInfo", null);
oc.write(fadeLength, "fadeLength", 0f);
}
16
Source : AbstractShadowRenderer.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
/**
* Serialize this instance, for example when saving to a J3O file.
*
* @param ex exporter (not null)
*/
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(nbShadowMaps, "nbShadowMaps", 1);
oc.write(shadowMapSize, "shadowMapSize", 0);
oc.write(shadowIntensity, "shadowIntensity", 0.7f);
oc.write(edgeFilteringMode, "edgeFilteringMode", EdgeFilteringMode.Bilinear);
oc.write(shadowCompareMode, "shadowCompareMode", CompareMode.Hardware);
oc.write(flushQueues, "flushQueues", false);
oc.write(edgesThickness, "edgesThickness", 1.0f);
}
16
Source : AbstractControl.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = ex.getCapsule(this);
oc.write(enabled, "enabled", true);
oc.write(spatial, "spatial", null);
}
16
Source : BIHTree.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = ex.getCapsule(this);
oc.write(mesh, "mesh", null);
oc.write(root, "root", null);
oc.write(maxTrisPerNode, "tris_per_node", 0);
oc.write(pointData, "points", null);
oc.write(triIndices, "indices", null);
}
16
Source : HingeJoint.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(axisA, "axisA", new Vector3f());
capsule.write(axisB, "axisB", new Vector3f());
capsule.write(angularOnly, "angularOnly", false);
capsule.write(((HingeConstraint) constraint).getLowerLimit(), "lowerLimit", 1e30f);
capsule.write(((HingeConstraint) constraint).getUpperLimit(), "upperLimit", -1e30f);
capsule.write(biasFactor, "biasFactor", 0.3f);
capsule.write(relaxationFactor, "relaxationFactor", 1f);
capsule.write(limitSoftness, "limitSoftness", 0.9f);
capsule.write(((HingeConstraint) constraint).getEnableAngularMotor(), "enableAngularMotor", false);
capsule.write(((HingeConstraint) constraint).getMotorTargetVelosity(), "targetVelocity", 0.0f);
capsule.write(((HingeConstraint) constraint).getMaxMotorImpulse(), "maxMotorImpulse", 0.0f);
}
16
Source : SphereCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(radius, "radius", 0.5f);
}
16
Source : SimplexCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(vector1, "simplexPoint1", null);
capsule.write(vector2, "simplexPoint2", null);
capsule.write(vector3, "simplexPoint3", null);
capsule.write(vector4, "simplexPoint4", null);
}
16
Source : PlaneCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(plane, "collisionPlane", new Plane());
}
16
Source : MeshCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(numVertices, "numVertices", 0);
capsule.write(numTriangles, "numTriangles", 0);
capsule.write(vertexStride, "vertexStride", 0);
capsule.write(triangleIndexStride, "triangleIndexStride", 0);
capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]);
capsule.write(vertexBase.array(), "vertexBase", new byte[0]);
}
16
Source : HeightfieldCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(heightStickWidth, "heightStickWidth", 0);
capsule.write(heightStickLength, "heightStickLength", 0);
capsule.write(heightScale, "heightScale", 0);
capsule.write(minHeight, "minHeight", 0);
capsule.write(maxHeight, "maxHeight", 0);
capsule.write(upAxis, "upAxis", 1);
capsule.write(heightfieldData, "heightfieldData", new float[0]);
capsule.write(flipQuadEdges, "flipQuadEdges", false);
}
16
Source : GImpactCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(worldScale, "worldScale", new Vector3f(1, 1, 1));
capsule.write(numVertices, "numVertices", 0);
capsule.write(numTriangles, "numTriangles", 0);
capsule.write(vertexStride, "vertexStride", 0);
capsule.write(triangleIndexStride, "triangleIndexStride", 0);
capsule.write(triangleIndexBase.array(), "triangleIndexBase", new byte[0]);
capsule.write(vertexBase.array(), "vertexBase", new byte[0]);
}
16
Source : CylinderCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(halfExtents, "halfExtents", new Vector3f(0.5f, 0.5f, 0.5f));
capsule.write(axis, "axis", 1);
}
16
Source : ConeCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(radius, "radius", 0.5f);
capsule.write(height, "height", 0.5f);
capsule.write(axis, "axis", PhysicsSpace.AXIS_Y);
}
16
Source : CompoundCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.writeSavableArrayList(children, "children", new ArrayList<ChildCollisionShape>());
}
16
Source : CapsuleCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(radius, "radius", 0.5f);
capsule.write(height, "height", 1);
capsule.write(axis, "axis", 1);
}
16
Source : BoxCollisionShape.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(halfExtents, "halfExtents", new Vector3f(1, 1, 1));
}
16
Source : LowPassFilter.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(volume, "volume", 0);
oc.write(highFreqVolume, "hf_volume", 0);
}
16
Source : TrackInfo.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter ex) throws IOException {
OutputCapsule c = ex.getCapsule(this);
c.writeSavableArrayList(tracks, "tracks", null);
}
16
Source : AudioTrack.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
/**
* 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);
}
16
Source : NavMesh.java
with GNU Lesser General Public License v3.0
from huliqing
with GNU Lesser General Public License v3.0
from huliqing
public void write(JmeExporter e) throws IOException {
OutputCapsule capsule = e.getCapsule(this);
capsule.writeSavableArrayList(cellList, "cellarray", null);
}
16
Source : Line2D.java
with GNU Lesser General Public License v3.0
from huliqing
with GNU Lesser General Public License v3.0
from huliqing
public void write(JmeExporter e) throws IOException {
OutputCapsule capsule = e.getCapsule(this);
capsule.write(pointA, "pointA", null);
capsule.write(pointB, "pointB", null);
capsule.write(normal, "normal", null);
}
16
Source : Cell.java
with GNU Lesser General Public License v3.0
from huliqing
with GNU Lesser General Public License v3.0
from huliqing
public void write(JmeExporter e) throws IOException {
OutputCapsule capsule = e.getCapsule(this);
// capsule.write(terrain, "terrain", null);
// capsule.write(cellPlane, "cellPlane", null);
capsule.write(verticies, "verticies", null);
// capsule.write(center, "center", null);
// capsule.write(sides, "sides", null);
capsule.write(links, "links", null);
// capsule.write(wallMidpoints, "midpoints", null);
// capsule.write(wallDistances, "distances", null);
}
16
Source : EffectSaver.java
with GNU General Public License v3.0
from actoron
with GNU General Public License v3.0
from actoron
public void write(JmeExporter ex) throws IOException {
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(particelEmmitter, "someJmeObject", new ParticleEmitter());
}
16
Source : FocusCamera.java
with GNU General Public License v3.0
from actoron
with GNU General Public License v3.0
from actoron
/**
* Write the camera
* @param ex the exporter
* @throws IOException
*/
public void write(JmeExporter ex) throws IOException {
OutputCapsule capsule = ex.getCapsule(this);
capsule.write(maxDistance, "maxDistance", 40);
capsule.write(minDistance, "minDistance", 1);
}
15
Source : GISLodControl.java
with Apache License 2.0
from twak
with Apache License 2.0
from twak
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(trisPerPixel, "trisPerPixel", 1f);
oc.write(distTolerance, "distTolerance", 1f);
oc.write(numLevels, "numLevels", 0);
oc.write(numTris, "numTris", null);
}
15
Source : QuadXZ.java
with BSD 3-Clause "New" or "Revised" License
from TehLeo
with BSD 3-Clause "New" or "Revised" License
from TehLeo
@Override
public void write(JmeExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(width, "width", 0);
capsule.write(height, "height", 0);
}
15
Source : PhysicsHoverControl.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(enabled, "enabled", true);
oc.write(spatial, "spatial", null);
}
15
Source : TerrainLodControl.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write((Node) terrain, "terrain", null);
oc.write(lodCalculator, "lodCalculator", null);
}
15
Source : TerrainGrid.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule c = ex.getCapsule(this);
c.write(gridTileLoader, "terrainQuadGrid", null);
c.write(size, "size", 0);
c.write(patchSize, "patchSize", 0);
c.write(stepScale, "stepScale", null);
c.write(offset, "offset", null);
c.write(offsetAmount, "offsetAmount", 0);
c.write(material, "material", null);
}
15
Source : NormalRecalcControl.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(terrain, "terrain", null);
}
15
Source : SpotLightShadowFilter.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(shadowRenderer, "shadowRenderer", null);
}
15
Source : ShaderNodeDefinition.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
/**
* jme seralization (not used)
*
* @param ex the exporter
* @throws IOException
*/
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(name, "name", "");
String[] str = new String[shadersLanguage.size()];
oc.write(shadersLanguage.toArray(str), "shadersLanguage", null);
oc.write(shadersPath.toArray(str), "shadersPath", null);
oc.write(type, "type", null);
oc.writeSavableArrayList((ArrayList) inputs, "inputs", new ArrayList<ShaderNodeVariable>());
oc.writeSavableArrayList((ArrayList) outputs, "inputs", new ArrayList<ShaderNodeVariable>());
}
15
Source : ShaderNode.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
/**
* jme seralization
*
* @param ex the exporter
* @throws IOException
*/
@Override
public void write(JmeExporter ex) throws IOException {
OutputCapsule oc = (OutputCapsule) ex.getCapsule(this);
oc.write(name, "name", "");
oc.write(definition, "definition", null);
oc.write(condition, "condition", null);
oc.writeSavableArrayList((ArrayList) inputMapping, "inputMapping", new ArrayList<VariableMapping>());
oc.writeSavableArrayList((ArrayList) outputMapping, "outputMapping", new ArrayList<VariableMapping>());
}
15
Source : ShaderKey.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(fragName, "fragment_name", null);
oc.write(vertLanguage, "language", null);
oc.write(fragLanguage, "frag_language", null);
}
15
Source : Torus.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(circleSamples, "circleSamples", 0);
capsule.write(radialSamples, "radialSamples", 0);
capsule.write(innerRadius, "innerRadius", 0);
capsule.write(outerRadius, "outerRadius", 0);
}
15
Source : Sphere.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
public void write(JmeExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(zSamples, "zSamples", 0);
capsule.write(radialSamples, "radialSamples", 0);
capsule.write(radius, "radius", 0);
capsule.write(useEvenSlices, "useEvenSlices", false);
capsule.write(textureMode, "textureMode", TextureMode.Original);
capsule.write(interior, "interior", false);
}
15
Source : PQTorus.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(p, "p", 0);
capsule.write(q, "q", 0);
capsule.write(radius, "radius", 0);
capsule.write(width, "width", 0);
capsule.write(steps, "steps", 0);
capsule.write(radialSamples, "radialSamples", 0);
}
15
Source : Line.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule out = ex.getCapsule(this);
out.write(start, "startVertex", null);
out.write(end, "endVertex", null);
}
15
Source : Cylinder.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter e) throws IOException {
super.write(e);
OutputCapsule capsule = e.getCapsule(this);
capsule.write(axisSamples, "axisSamples", 0);
capsule.write(radialSamples, "radialSamples", 0);
capsule.write(radius, "radius", 0);
capsule.write(radius2, "radius2", 0);
capsule.write(height, "height", 0);
capsule.write(closed, "closed", false);
capsule.write(inverted, "inverted", false);
}
15
Source : LightControl.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(controlDir, CONTROL_DIR_NAME, ControlDirection.SpatialToLight);
oc.write(light, LIGHT_NAME, null);
}
15
Source : SSAOFilter.java
with Apache License 2.0
from neuroph
with Apache License 2.0
from neuroph
@Override
public void write(JmeExporter ex) throws IOException {
super.write(ex);
OutputCapsule oc = ex.getCapsule(this);
oc.write(sampleRadius, "sampleRadius", 5.1f);
oc.write(intensity, "intensity", 1.5f);
oc.write(scale, "scale", 0.2f);
oc.write(bias, "bias", 0.1f);
}
See More Examples