com.jme3.scene.shape
Class Quad

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

public class Quad
extends Mesh

Quad represents a rectangular plane in space defined by 4 vertices. The quad's lower-left side is contained at the local space origin (0, 0, 0), while the upper-right side is located at the width/height coordinates (width, height, 0).


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.scene.Mesh
Mesh.Mode
 
Constructor Summary
Quad()
          Serialization only.
Quad(float width, float height)
          Create a quad with the given width and height.
Quad(float width, float height, boolean flipCoords)
          Create a quad with the given width and height.
 
Method Summary
 float getHeight()
           
 float getWidth()
           
 void updateGeometry(float width, float height)
           
 void updateGeometry(float width, float height, boolean flipCoords)
           
 
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, read, 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, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Quad

public Quad()
Serialization only. Do not use.


Quad

public Quad(float width,
            float height)
Create a quad with the given width and height. The quad is always created in the XY plane.

Parameters:
width - The X extent or width
height - The Y extent or width

Quad

public Quad(float width,
            float height,
            boolean flipCoords)
Create a quad with the given width and height. The quad is always created in the XY plane.

Parameters:
width - The X extent or width
height - The Y extent or width
flipCoords - If true, the texture coordinates will be flipped along the Y axis.
Method Detail

getHeight

public float getHeight()

getWidth

public float getWidth()

updateGeometry

public void updateGeometry(float width,
                           float height)

updateGeometry

public void updateGeometry(float width,
                           float height,
                           boolean flipCoords)