com.jme3.scene.shape
Class Line

java.lang.Object
  extended by com.jme3.scene.Mesh
      extended by com.jme3.scene.shape.Line
All Implemented Interfaces:
Savable, java.lang.Cloneable

public class Line
extends Mesh

A simple line implementation with a start and an end.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.scene.Mesh
Mesh.Mode
 
Constructor Summary
Line()
           
Line(Vector3f start, Vector3f end)
           
 
Method Summary
 Vector3f getEnd()
           
 Vector3f getStart()
           
 void read(JmeImporter im)
           
protected  void updateGeometry(Vector3f start, Vector3f end)
           
 void updatePoints(Vector3f start, Vector3f end)
          Update the start and end points of the line.
 void write(JmeExporter ex)
           
 
Methods inherited from class com.jme3.scene.Mesh
clearBuffer, clone, cloneForAnim, collideWith, createCollisionData, deepClone, extractVertexData, generateBindPose, getBound, getBuffer, getBufferList, getBuffers, getElementLengths, getFloatBuffer, getId, getIndexBuffer, getIndicesAsList, getLineWidth, getLodLevel, getMaxNumWeights, getMode, getModeStart, getNumLodLevels, getPointSize, getShortBuffer, getTriangle, getTriangle, getTriangle, getTriangleCount, getTriangleCount, getVertexCount, prepareForAnim, scaleTextureCoordinates, setBound, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setBuffer, setDynamic, setElementLengths, setId, setInterleaved, setLineWidth, setLodLevels, setMaxNumWeights, setMode, setModeStart, setPointSize, setStatic, setStreamed, updateBound, updateCounts
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Line

public Line()

Line

public Line(Vector3f start,
            Vector3f end)
Method Detail

updateGeometry

protected void updateGeometry(Vector3f start,
                              Vector3f end)

updatePoints

public void updatePoints(Vector3f start,
                         Vector3f end)
Update the start and end points of the line.


getEnd

public Vector3f getEnd()

getStart

public Vector3f getStart()

write

public void write(JmeExporter ex)
           throws java.io.IOException
Specified by:
write in interface Savable
Overrides:
write in class Mesh
Throws:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
Specified by:
read in interface Savable
Overrides:
read in class Mesh
Throws:
java.io.IOException