Esempio n. 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);
 }
Esempio n. 2
0
 @Override
 public void read(final Ardor3DImporter e) throws IOException {
   super.read(e);
   final InputCapsule capsule = e.getCapsule(this);
   text = new StringBuffer(capsule.readString("textString", ""));
   textColor = (ColorRGBA) capsule.readSavable("textColor", new ColorRGBA());
 }
Esempio n. 3
0
 @Override
 public void read(final Ardor3DImporter e) throws IOException {
   super.read(e);
   final InputCapsule cap = e.getCapsule(this);
   _swarmRangeSQ = cap.readDouble("swarmRangeSQ", DEFAULT_SWARM_RANGE_SQ);
   _deviance = cap.readDouble("deviance", DEFAULT_DEVIANCE);
   _turnSpeed = cap.readDouble("turnSpeed", DEFAULT_TURN_SPEED);
   _speedBump = cap.readDouble("speedBump", DEFAULT_SPEED_BUMP);
   _maxSpeed = cap.readDouble("maxSpeed", DEFAULT_MAX_SPEED);
   _swarmOffset.set((Vector3) cap.readSavable("swarmOffset", new Vector3()));
 }
Esempio n. 4
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);
 }
Esempio n. 5
0
 @Override
 public void read(final Ardor3DImporter e) throws IOException {
   super.read(e);
   final InputCapsule capsule = e.getCapsule(this);
   lightList = capsule.readSavableList("lightList", new ArrayList<Light>());
   lightMask = capsule.readInt("lightMask", 0);
   backLightMask = capsule.readInt("backLightMask", 0);
   twoSidedOn = capsule.readBoolean("twoSidedOn", false);
   _globalAmbient =
       (ColorRGBA) capsule.readSavable("globalAmbient", new ColorRGBA(DEFAULT_GLOBAL_AMBIENT));
   localViewerOn = capsule.readBoolean("localViewerOn", false);
   separateSpecularOn = capsule.readBoolean("separateSpecularOn", false);
 }
Esempio n. 6
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);
 }
Esempio n. 7
0
 public void read(final InputCapsule capsule) throws IOException {
   _source = (Ring) capsule.readSavable("source", null);
 }