Exemple #1
0
 @Override
 public void write(final Ardor3DExporter e) throws IOException {
   super.write(e);
   final OutputCapsule capsule = e.getCapsule(this);
   capsule.write(text.toString(), "textString", "");
   capsule.write(textColor, "textColor", new ColorRGBA());
 }
Exemple #2
0
 @Override
 public void write(final OutputCapsule capsule) throws IOException {
   capsule.write(getX(), "x", 0);
   capsule.write(getY(), "y", 0);
   capsule.write(getZ(), "z", 0);
   capsule.write(getW(), "w", 0);
 }
Exemple #3
0
 @Override
 public void write(final OutputCapsule capsule) throws IOException {
   super.write(capsule);
   final OutputCapsule cap = capsule;
   cap.write(_wanderRadius, "wanderRadius", DEFAULT_RADIUS);
   cap.write(_wanderDistance, "wanderDistance", DEFAULT_DISTANCE);
   cap.write(_wanderJitter, "wanderJitter", DEFAULT_JITTER);
 }
Exemple #4
0
 @Override
 public void write(final Ardor3DExporter e) throws IOException {
   super.write(e);
   final OutputCapsule capsule = e.getCapsule(this);
   capsule.write(axisSamples, "axisSamples", 0);
   capsule.write(radialSamples, "radialSamples", 0);
   capsule.write(sphereSamples, "sphereSamples", 0);
   capsule.write(radius, "radius", 0);
   capsule.write(height, "height", 0);
 }
Exemple #5
0
 public void write(final OutputCapsule capsule) throws IOException {
   capsule.write(startIndex, "startIndex", 0);
   capsule.write(_position, "position", new Vector3(Vector3.ZERO));
   capsule.write(status, "status", Status.Available);
   capsule.write(lifeSpan, "lifeSpan", 0);
   capsule.write(currentAge, "currentAge", 0);
   capsule.write(parent, "parent", null);
   capsule.write(_velocity, "velocity", new Vector3());
   capsule.write(type, "type", ParticleSystem.ParticleType.Quad);
 }
Exemple #6
0
 @Override
 public void write(final Ardor3DExporter e) throws IOException {
   super.write(e);
   final OutputCapsule capsule = e.getCapsule(this);
   capsule.write(start, "start", 0);
   capsule.write(end, "end", 0);
   capsule.write(density, "density", 0);
   capsule.write(color, "color", new ColorRGBA(ColorRGBA.WHITE));
   capsule.write(densityFunction, "densityFunction", DensityFunction.Exponential);
   capsule.write(quality, "applyFunction", Quality.PerPixel);
   capsule.write(source, "source", CoordinateSource.Depth);
 }
 @Override
 public void write(final OutputCapsule capsule) throws IOException {
   super.write(capsule);
   try {
     capsule.write(getRadius(), "radius", 0);
   } catch (final IOException ex) {
     logger.logp(
         Level.SEVERE, this.getClass().toString(), "write(Ardor3DExporter)", "Exception", ex);
   }
 }
Exemple #8
0
 @Override
 public void write(final Ardor3DExporter e) throws IOException {
   super.write(e);
   final OutputCapsule capsule = e.getCapsule(this);
   capsule.writeSavableList(lightList, "lightList", new ArrayList<Light>());
   capsule.write(lightMask, "lightMask", 0);
   capsule.write(backLightMask, "backLightMask", 0);
   capsule.write(twoSidedOn, "twoSidedOn", false);
   capsule.write(_globalAmbient, "globalAmbient", new ColorRGBA(DEFAULT_GLOBAL_AMBIENT));
   capsule.write(localViewerOn, "localViewerOn", false);
   capsule.write(separateSpecularOn, "separateSpecularOn", false);
 }
Exemple #9
0
 @Override
 public void write(final OutputCapsule capsule) throws IOException {
   super.write(capsule);
   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);
 }
Exemple #10
0
 @Override
 public void write(final OutputCapsule capsule) throws IOException {
   super.write(capsule);
   capsule.write(_frontAmbient, "frontAmbient", (ColorRGBA) DEFAULT_AMBIENT);
   capsule.write(_frontDiffuse, "frontDiffuse", (ColorRGBA) DEFAULT_DIFFUSE);
   capsule.write(_frontSpecular, "frontSpecular", (ColorRGBA) DEFAULT_SPECULAR);
   capsule.write(_frontEmissive, "frontEmissive", (ColorRGBA) DEFAULT_EMISSIVE);
   capsule.write(_frontShininess, "frontShininess", DEFAULT_SHININESS);
   capsule.write(_backAmbient, "backAmbient", (ColorRGBA) DEFAULT_AMBIENT);
   capsule.write(_backDiffuse, "backDiffuse", (ColorRGBA) DEFAULT_DIFFUSE);
   capsule.write(_backSpecular, "backSpecular", (ColorRGBA) DEFAULT_SPECULAR);
   capsule.write(_backEmissive, "backEmissive", (ColorRGBA) DEFAULT_EMISSIVE);
   capsule.write(_backShininess, "backShininess", DEFAULT_SHININESS);
   capsule.write(_colorMaterial, "colorMaterial", DEFAULT_COLOR_MATERIAL);
   capsule.write(_colorMaterialFace, "colorMaterialFace", DEFAULT_COLOR_MATERIAL_FACE);
 }
 @Override
 public void write(final Ardor3DExporter e) throws IOException {
   super.write(e);
   final OutputCapsule cap = e.getCapsule(this);
   cap.write(_swarmRangeSQ, "swarmRangeSQ", DEFAULT_SWARM_RANGE_SQ);
   cap.write(_deviance, "deviance", DEFAULT_DEVIANCE);
   cap.write(_turnSpeed, "turnSpeed", DEFAULT_TURN_SPEED);
   cap.write(_speedBump, "speedBump", DEFAULT_SPEED_BUMP);
   cap.write(_maxSpeed, "maxSpeed", DEFAULT_MAX_SPEED);
   cap.write(_swarmOffset, "swarmOffset", new Vector3());
 }
Exemple #12
0
 public void write(final OutputCapsule capsule) throws IOException {
   capsule.write(_source, "source", null);
 }
Exemple #13
0
 @Override
 public void write(final OutputCapsule capsule) throws IOException {
   super.write(capsule);
   capsule.write(_length, "length", 1);
   capsule.write(_width, "width", .25);
 }
 @Override
 public void write(final OutputCapsule capsule) throws IOException {
   capsule.write(_data, "data", null);
   capsule.write(_type, "type", null);
 }