本文整理汇总了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
}
示例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);
}
示例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);
}
示例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()));
}
示例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
}
示例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);
}
示例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);
}
示例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);
}