Exemple #1
0
 public void read(final InputCapsule capsule) throws IOException {
   startIndex = capsule.readInt("startIndex", 0);
   _position.set((Vector3) capsule.readSavable("position", new Vector3(Vector3.ZERO)));
   status = capsule.readEnum("status", Status.class, Status.Available);
   lifeSpan = capsule.readDouble("lifeSpan", 0);
   currentAge = capsule.readInt("currentAge", 0);
   parent = (ParticleSystem) capsule.readSavable("parent", null);
   _velocity.set((Vector3) capsule.readSavable("velocity", new Vector3()));
   type =
       capsule.readEnum(
           "type", ParticleSystem.ParticleType.class, ParticleSystem.ParticleType.Quad);
 }
Exemple #2
0
 @Override
 public void read(final Ardor3DImporter e) throws IOException {
   super.read(e);
   final InputCapsule capsule = e.getCapsule(this);
   start = capsule.readFloat("start", 0);
   end = capsule.readFloat("end", 0);
   density = capsule.readFloat("density", 0);
   color.set((ColorRGBA) capsule.readSavable("color", new ColorRGBA(ColorRGBA.WHITE)));
   densityFunction =
       capsule.readEnum("densityFunction", DensityFunction.class, DensityFunction.Exponential);
   quality = capsule.readEnum("applyFunction", Quality.class, Quality.PerPixel);
   source = capsule.readEnum("source", CoordinateSource.class, CoordinateSource.Depth);
 }
Exemple #3
0
 @Override
 public void read(final InputCapsule capsule) throws IOException {
   super.read(capsule);
   _frontAmbient.set((ColorRGBA) capsule.readSavable("frontAmbient", (ColorRGBA) DEFAULT_AMBIENT));
   _frontDiffuse.set((ColorRGBA) capsule.readSavable("frontDiffuse", (ColorRGBA) DEFAULT_DIFFUSE));
   _frontSpecular.set(
       (ColorRGBA) capsule.readSavable("frontSpecular", (ColorRGBA) DEFAULT_SPECULAR));
   _frontEmissive.set(
       (ColorRGBA) capsule.readSavable("frontEmissive", (ColorRGBA) DEFAULT_EMISSIVE));
   _frontShininess = capsule.readFloat("frontShininess", DEFAULT_SHININESS);
   _backAmbient.set((ColorRGBA) capsule.readSavable("backAmbient", (ColorRGBA) DEFAULT_AMBIENT));
   _backDiffuse.set((ColorRGBA) capsule.readSavable("backDiffuse", (ColorRGBA) DEFAULT_DIFFUSE));
   _backSpecular.set(
       (ColorRGBA) capsule.readSavable("backSpecular", (ColorRGBA) DEFAULT_SPECULAR));
   _backEmissive.set(
       (ColorRGBA) capsule.readSavable("backEmissive", (ColorRGBA) DEFAULT_EMISSIVE));
   _backShininess = capsule.readFloat("backShininess", DEFAULT_SHININESS);
   _colorMaterial = capsule.readEnum("colorMaterial", ColorMaterial.class, DEFAULT_COLOR_MATERIAL);
   _colorMaterialFace =
       capsule.readEnum("colorMaterialFace", MaterialFace.class, DEFAULT_COLOR_MATERIAL_FACE);
 }