本文整理汇总了Java中com.jme3.export.InputCapsule.readFloatArray方法的典型用法代码示例。如果您正苦于以下问题:Java InputCapsule.readFloatArray方法的具体用法?Java InputCapsule.readFloatArray怎么用?Java InputCapsule.readFloatArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jme3.export.InputCapsule
的用法示例。
在下文中一共展示了InputCapsule.readFloatArray方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
InputCapsule in = im.getCapsule(this);
controlPoints = (ArrayList<Vector3f>) in.readSavableArrayList("wayPoints", null);
float list[] = in.readFloatArray("segmentsLength", null);
if (list != null) {
segmentsLength = new ArrayList<Float>();
for (int i = 0; i < list.length; i++) {
segmentsLength.add(new Float(list[i]));
}
}
type = in.readEnum("pathSplineType", SplineType.class, SplineType.CatmullRom);
totalLength = in.readFloat("totalLength", 0);
CRcontrolPoints = (ArrayList<Vector3f>) in.readSavableArrayList("CRControlPoints", null);
curveTension = in.readFloat("curveTension", 0.5f);
cycle = in.readBoolean("cycle", false);
knots = in.readSavableArrayList("knots", null);
weights = in.readFloatArray("weights", null);
basisFunctionDegree = in.readInt("basisFunctionDegree", 0);
}
示例2: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
size = ic.readInt("size", 16);
totalSize = ic.readInt("totalSize", 16);
quadrant = ic.readShort("quadrant", (short)0);
stepScale = (Vector3f) ic.readSavable("stepScale", Vector3f.UNIT_XYZ);
offset = (Vector2f) ic.readSavable("offset", Vector3f.UNIT_XYZ);
offsetAmount = ic.readFloat("offsetAmount", 0);
lodCalculator = (LodCalculator) ic.readSavable("lodCalculator", new DistanceLodCalculator());
lodCalculator.setTerrainPatch(this);
lodCalculatorFactory = (LodCalculatorFactory) ic.readSavable("lodCalculatorFactory", null);
lodEntropy = ic.readFloatArray("lodEntropy", null);
geomap = (LODGeomap) ic.readSavable("geomap", null);
}
示例3: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter e) throws IOException {
InputCapsule capsule = e.getCapsule(this);
location = (Vector3f) capsule.readSavable("location", Vector3f.ZERO.clone());
rotation = (Quaternion) capsule.readSavable("rotation", Quaternion.DIRECTION_Z.clone());
frustumNear = capsule.readFloat("frustumNear", 1);
frustumFar = capsule.readFloat("frustumFar", 2);
frustumLeft = capsule.readFloat("frustumLeft", -0.5f);
frustumRight = capsule.readFloat("frustumRight", 0.5f);
frustumTop = capsule.readFloat("frustumTop", 0.5f);
frustumBottom = capsule.readFloat("frustumBottom", -0.5f);
coeffLeft = capsule.readFloatArray("coeffLeft", new float[2]);
coeffRight = capsule.readFloatArray("coeffRight", new float[2]);
coeffBottom = capsule.readFloatArray("coeffBottom", new float[2]);
coeffTop = capsule.readFloatArray("coeffTop", new float[2]);
viewPortLeft = capsule.readFloat("viewPortLeft", 0);
viewPortRight = capsule.readFloat("viewPortRight", 1);
viewPortTop = capsule.readFloat("viewPortTop", 1);
viewPortBottom = capsule.readFloat("viewPortBottom", 0);
width = capsule.readInt("width", 1);
height = capsule.readInt("height", 1);
name = capsule.readString("name", null);
onFrustumChange();
onViewPortChange();
onFrameChange();
}
示例4: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
InputCapsule ic = im.getCapsule(this);
mesh = (Mesh) ic.readSavable("mesh", null);
root = (BIHNode) ic.readSavable("root", null);
maxTrisPerNode = ic.readInt("tris_per_node", 0);
pointData = ic.readFloatArray("points", null);
triIndices = ic.readIntArray("indices", null);
}
示例5: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
/**
* Load the heightMap for a BinaryImporter
*
* @param in
* @throws IOException
* @throws ClassNotFoundException
*/
@Override
public void read( JmeImporter im ) throws IOException
{
InputCapsule ic = im.getCapsule( this );
size = ic.readInt( "size", 0 );
heightScale = ic.readFloat( "heightScale", 1.0f );
filter = ic.readFloat( "filter", 0.5f );
heightData = ic.readFloatArray( "heightData", null );
}
示例6: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule ic = im.getCapsule(this);
spatialName = ic.readString("spatialName", "");
endRotation = ic.readFloatArray("endRotation", null);
}
示例7: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule capsule = im.getCapsule(this);
// for backwards compatability
Mesh mesh = (Mesh) capsule.readSavable("hullMesh", null);
if (mesh != null) {
this.points = getPoints(mesh);
} else {
this.points = capsule.readFloatArray("points", null);
}
createShape(this.points);
}
示例8: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter im) throws IOException {
super.read(im);
InputCapsule capsule = im.getCapsule(this);
heightStickWidth = capsule.readInt("heightStickWidth", 0);
heightStickLength = capsule.readInt("heightStickLength", 0);
heightScale = capsule.readFloat("heightScale", 0);
minHeight = capsule.readFloat("minHeight", 0);
maxHeight = capsule.readFloat("maxHeight", 0);
upAxis = capsule.readInt("upAxis", 1);
heightfieldData = capsule.readFloatArray("heightfieldData", new float[0]);
flipQuadEdges = capsule.readBoolean("flipQuadEdges", false);
createShape();
}
示例9: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
InputCapsule ic = im.getCapsule(this);
type = ic.readByte("t", (byte) 0);
switch (type) {
case ARRAY_BYTE:
value = ic.readByteArray("v", null);
break;
case ARRAY_SHORT:
value = ic.readShortArray("v", null);
break;
case ARRAY_INTEGER:
value = ic.readIntArray("v", null);
break;
case ARRAY_FLOAT:
value = ic.readFloatArray("v", null);
break;
case ARRAY_LONG:
value = ic.readLongArray("v", null);
break;
case ARRAY_DOUBLE:
value = ic.readDoubleArray("v", null);
break;
case ARRAY_BOOLEAN:
value = ic.readBooleanArray("v", null);
break;
default :
throw new UnsupportedOperationException("Unknown type of stored data: " + type);
}
}
示例10: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
@Override
public void read(JmeImporter im) throws IOException {
InputCapsule in = im.getCapsule(this);
array = in.readFloatArray("array", null);
index = in.readIntArray("index", null);
}
示例11: read
import com.jme3.export.InputCapsule; //导入方法依赖的package包/类
public void read(JmeImporter i) throws IOException {
InputCapsule in = i.getCapsule(this);
poses = (Pose[]) in.readSavableArray("poses", null);
weights = in.readFloatArray("weights", null);
}