Package com.jme3.scene.shape
Class Line
java.lang.Object
com.jme3.scene.Mesh
com.jme3.scene.shape.Line
- All Implemented Interfaces:
Savable
,JmeCloneable
,Cloneable
A simple line implementation with a start and an end.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetEnd()
getStart()
void
read
(JmeImporter im) protected void
updateGeometry
(Vector3f start, Vector3f end) void
updatePoints
(Vector3f start, Vector3f end) Alter the start and end.void
write
(JmeExporter ex) Methods inherited from class com.jme3.scene.Mesh
addMorphTarget, clearBuffer, clearCollisionData, clone, cloneFields, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getInstanceCount, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getMorphIndex, getMorphTarget, getMorphTargetNames, getMorphTargets, getNumLodLevels, getPatchVertexCount, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, hasMorphTargets, isAnimated, isAnimatedByBone, isAnimatedByJoint, jmeClone, prepareForAnim, removeMorphTarget, removeMorphTarget, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPatchVertexCount, setStatic, setStreamed, updateBound, updateCounts
-
Constructor Details
-
Line
protected Line()No-argument constructor needed by SavableClassUtil. -
Line
-
-
Method Details
-
updateGeometry
-
updatePoints
Alter the start and end.- Parameters:
start
- the desired mesh location of the start (not null, unaffected)end
- the desired mesh location of the end (not null, unaffected)
-
getEnd
-
getStart
-
write
- Specified by:
write
in interfaceSavable
- Overrides:
write
in classMesh
- Throws:
IOException
-
read
- Specified by:
read
in interfaceSavable
- Overrides:
read
in classMesh
- Throws:
IOException
-