Examples of OutputCapsule


Examples of com.ardor3d.util.export.OutputCapsule

    public Class<? extends PassNodeState> getClassTag() {
        return this.getClass();
    }

    public void write(final OutputCapsule capsule) throws IOException {
        final OutputCapsule oc = capsule;
        oc.write(_enabled, "enabled", true);
        oc.write(_passStates.values().toArray(new RenderState[0]), "passStates", null);
    }
View Full Code Here

Examples of com.jme.util.export.OutputCapsule

  return rVal;
    }

    public void write(JMEExporter e) throws IOException {
        super.write(e);
        OutputCapsule capsule = e.getCapsule(this);
        capsule.write(xExtent, "xExtent", 0);
        capsule.write(yExtent, "yExtent", 0);
        capsule.write(zExtent, "zExtent", 0);
        capsule.write(center, "center", Vector3f.ZERO);
  // TODO: texture attrs
    }
View Full Code Here

Examples of com.jme.util.export.OutputCapsule

    }

    @Override
    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(center, "center", Vector3f.ZERO);
    }
View Full Code Here

Examples of com.jme.util.export.OutputCapsule

  return rVal;
    }

    public void write(JMEExporter e) throws IOException {
        super.write(e);
        OutputCapsule capsule = e.getCapsule(this);
  // TODO: texture attrs
    }
View Full Code Here

Examples of com.jme3.export.OutputCapsule

        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void write(JmeExporter e) throws IOException {
        OutputCapsule capsule = e.getCapsule(this);
        capsule.write(this.animComponent, "animComponent", null);
    }
View Full Code Here

Examples of com.jme3.export.OutputCapsule

        addControl();
    }

    @Override
    public void write(JmeExporter e) throws IOException {
        OutputCapsule capsule = e.getCapsule(this);
        capsule.write(this.player, "player", null);
    }
View Full Code Here

Examples of com.jme3.export.OutputCapsule

     * 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);
    }
View Full Code Here

Examples of com.jme3.export.OutputCapsule

            return;
        }
    }

    public void write(JmeExporter ex) throws IOException {
        OutputCapsule oc = ex.getCapsule(this);
        oc.write(enabled, "enabled", true);
        oc.write(spatial, "spatial", null);
    }
View Full Code Here

Examples of com.jme3.export.OutputCapsule

  }

  public void write(JmeExporter e) throws IOException {

    super.write(e);
    OutputCapsule capsule = e.getCapsule(this);
    capsule.write(top, "top", null);
    capsule.write(right, "right", null);
    capsule.write(bottom, "bottom", null);
    capsule.write(left, "left", null);
    capsule.write(worldTranslation, "worldpos", null);
   
    //FIXME ev. override ? and do it only once?
    HashMap<Cell, Integer> tmp = new HashMap<Cell, Integer>();
    for(int i =0; i<mCellArray.length; i++)
      tmp.put(mCellArray[i], i);
   
    int r=0;
    int[] vals = new int[borders.keySet().size()];
    for(Cell i : borders.keySet())
      vals[r++]=tmp.get(i);
    capsule.write(vals, "borders_keys",null);
    r=0;
    for(Integer i : borders.values())
      vals[r++]=i;
    capsule.write(vals, "borders_values",null);
     
    for(int i=0;i<8;i++){
      vals = new int[allBorders.get(i).size()];
      r = 0;
      for(Cell c : allBorders.get(i))
        vals[r++]=tmp.get(c);
      capsule.write(vals, "allborders"+i,null);
    }
  }
View Full Code Here

Examples of com.jme3.export.OutputCapsule

    public Class<? extends Line2D> getClassTag() {
        return this.getClass();
    }

  public void write(JmeExporter e) throws IOException {
    OutputCapsule capsule = e.getCapsule(this);
    capsule.write(m_PointA, "m_PointA", null);
    capsule.write(m_PointB, "m_PointB", null);
    capsule.write(m_Normal, "m_Normal", null);   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.