当前位置: 首页>>代码示例>>Java>>正文


Java JMEImporter类代码示例

本文整理汇总了Java中com.jme.util.export.JMEImporter的典型用法代码示例。如果您正苦于以下问题:Java JMEImporter类的具体用法?Java JMEImporter怎么用?Java JMEImporter使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


JMEImporter类属于com.jme.util.export包,在下文中一共展示了JMEImporter类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
public void read(JMEImporter e) throws IOException {
       super.read(e);
       InputCapsule capsule = e.getCapsule(this);
       xExtent = capsule.readFloat("xExtent", 0);
       yExtent = capsule.readFloat("yExtent", 0);
       zExtent = capsule.readFloat("zExtent", 0);
       center.set((Vector3f) capsule.readSavable("center", Vector3f.ZERO.clone()));
// TODO: texture attrs
   }
 
开发者ID:josmas,项目名称:openwonderland,代码行数:10,代码来源:TexturedBox.java

示例2: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
@Override
public void read(JMEImporter jmei) throws IOException {
    super.read(jmei);
    perishable = jmei.getCapsule(this).readBoolean("perishable", false);
    stillValid = jmei.getCapsule(this).readBoolean("stillValid", true);
    ts = (TextureState) jmei.getCapsule(this).readSavable("ts", null);
    validPeriod = jmei.getCapsule(this).readInt("validPeriod", 0);

}
 
开发者ID:CST-Group,项目名称:ws3d,代码行数:10,代码来源:Food.java

示例3: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
public void read(JMEImporter jmei) throws IOException {
        InputCapsule ic = jmei.getCapsule(this);
//        hardness = ic.readDouble("hardness", 1.0);
//        previousColor = (ColorRGBA) ic.readSavable("previousColor", ColorRGBA.blue);
        shape = (Node) ic.readSavable("shape", null);
        x1 = ic.readDouble("x1", 0.0d);
        y1 = ic.readDouble("y1", 0.0d);
        x2 = ic.readDouble("x2", 0.0d);
        y2 = ic.readDouble("y2", 0.0d);
        zZ = ic.readDouble("zZ", 0.0d);
        previousZ = ic.readDouble("previousZ", 0.0d);
        comX = ic.readDouble("x", 0.0d);
        comY = ic.readDouble("y", 0.0d);
        size = ic.readDouble("size", 0);
        pitch = ic.readDouble("pitch", -1);
        category = ic.readInt("category", -1);
        //imADeliverySot = ic.readBoolean("imADeliverySot", false);
        boundingBox = (BoundingBox) ic.readSavable("boundingBox", null);
        material = (Material3D) ic.readSavable("material", null);
        ms = (MaterialState) ic.readSavable("ms", null);
        depth = ic.readFloat("depth", 0f);
        wasHidden = ic.readBoolean("wasHidden", false);
        isOccluded = ic.readInt("isOccluded", 0);
        arrow = (Node) ic.readSavable("arrow", null);
        ID = ic.readLong("ID", 0);
        myName = ic.readString("myName", null);
    }
 
开发者ID:CST-Group,项目名称:ws3d,代码行数:28,代码来源:Thing.java

示例4: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
public void read(JMEImporter e) throws IOException {
    super.read(e);
    InputCapsule capsule = e.getCapsule(this);
    vertices[0].set((Vector3f) capsule.readSavable("vertex0", Vector3f.ZERO.clone()));
    vertices[1].set((Vector3f) capsule.readSavable("vertex1", Vector3f.ZERO.clone()));
    vertices[2].set((Vector3f) capsule.readSavable("vertex2", Vector3f.ZERO.clone()));
    vertices[3].set((Vector3f) capsule.readSavable("vertex3", Vector3f.ZERO.clone()));

    center.set((Vector3f) capsule.readSavable("center", Vector3f.ZERO.clone()));
}
 
开发者ID:sambayless,项目名称:golems,代码行数:11,代码来源:Tetrahedron.java

示例5: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
public void read(JMEImporter e) throws IOException {
       super.read(e);
       InputCapsule capsule = e.getCapsule(this);
// TODO: texture attrs
   }
 
开发者ID:josmas,项目名称:openwonderland,代码行数:6,代码来源:TexturedQuad.java

示例6: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
@Override
public void read(JMEImporter jmei) throws IOException {
    super.read(jmei);
    box = (Box) jmei.getCapsule(this).readSavable("box", null);

}
 
开发者ID:CST-Group,项目名称:ws3d,代码行数:7,代码来源:Brick.java

示例7: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
public void read(JMEImporter jmei) throws IOException {
    InputCapsule ic = jmei.getCapsule(this);
    pf = (PerishableFood) ic.readSavable("pf", null);
    pathToTexture = ic.readString("pathToTexture", null);

}
 
开发者ID:CST-Group,项目名称:ws3d,代码行数:7,代码来源:PerishableFood.java

示例8: read

import com.jme.util.export.JMEImporter; //导入依赖的package包/类
@Override
public void read(JMEImporter jmei) throws IOException {
    super.read(jmei);
    jewel = (Octahedron) jmei.getCapsule(this).readSavable("jewel", null);

}
 
开发者ID:CST-Group,项目名称:ws3d,代码行数:7,代码来源:Jewel.java


注:本文中的com.jme.util.export.JMEImporter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。