本文整理汇总了Java中com.jme.util.export.JMEImporter.getCapsule方法的典型用法代码示例。如果您正苦于以下问题:Java JMEImporter.getCapsule方法的具体用法?Java JMEImporter.getCapsule怎么用?Java JMEImporter.getCapsule使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jme.util.export.JMEImporter
的用法示例。
在下文中一共展示了JMEImporter.getCapsule方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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包/类
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);
}
示例3: 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()));
}
示例4: 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
}
示例5: 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);
}