com.jme.scene.shape
Class Quad
java.lang.Object
com.jme.scene.Spatial
com.jme.scene.Geometry
com.jme.scene.TriMesh
com.jme.scene.shape.Quad
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- FlareQuad, Mouse
- public class Quad
- extends TriMesh
Quad defines a four sided, two dimensional shape. The local
height of the Quad defines it's size about the y-axis, while
the width defines the x-axis. The z-axis will always be 0.
- Version:
- $Id: Quad.java,v 1.5 2004/09/14 21:52:22 mojomonkey Exp $
- Author:
- Mark Powell
- See Also:
- Serialized Form
| Fields inherited from class com.jme.scene.Spatial |
currentStates, defaultStateList, forceCull, forceView, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, name, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
|
Constructor Summary |
Quad(java.lang.String name)
Constructor creates a new Quad object. |
Quad(java.lang.String name,
float width,
float height)
Constructor creates a new Quade object with the provided
width and height. |
|
Method Summary |
Vector3f |
getCenter()
getCenter returns the center of the Quad. |
void |
initialize(float width,
float height)
initialize builds the data for the Quad
object. |
void |
resize(float width,
float height)
resize changes the width and height of the given quad by
altering its vertices. |
| Methods inherited from class com.jme.scene.TriMesh |
clearBuffers, draw, drawBounds, findCollisions, findTriangleCollision, findTrianglePick, findWorldRotMat, getIndexAsBuffer, getIndices, getMeshAsTriangles, getTriangle, getTriangle, getTriangleQuantity, hasCollision, hasTriangleCollision, putClone, reconstruct, setIndexBuffer, setIndices, updateCollisionTree, updateIndexBuffer |
| Methods inherited from class com.jme.scene.Geometry |
applyRenderState, applyStates, copyTextureCoords, findPick, getAllTextures, getCloneID, getColorAsFloatBuffer, getColors, getModelBound, getNormalAsFloatBuffer, getNormals, getNumberOfUnits, getTextureAsFloatBuffer, getTextureAsFloatBuffer, getTextures, getTextures, getVBOColorID, getVBONormalID, getVBOTextureID, getVBOVertexID, getVerticeAsFloatBuffer, getVertices, getVertQuantity, isVBOColorEnabled, isVBONormalEnabled, isVBOTextureEnabled, isVBOVertexEnabled, randomVertice, reconstruct, setAllTextures, setColor, setColors, setFloatBuffer, setForceView, setModelBound, setNormal, setNormalBuffer, setNormals, setRandomColors, setSolidColor, setTexture, setTexture, setTextureBuffer, setTextureCoord, setTextures, setTextures, setVBOColorEnabled, setVBOColorID, setVBONormalEnabled, setVBONormalID, setVBOTextureEnabled, setVBOTextureID, setVBOVertexEnabled, setVBOVertexID, setVertex, setVertexBuffer, setVertices, updateColorBuffer, updateColorBuffer, updateModelBound, updateNormalBuffer, updateNormalBuffer, updateTextureBuffer, updateTextureBuffer, updateTextureBuffer, updateVertexBuffer, updateVertexBuffer, updateWorldBound |
| Methods inherited from class com.jme.scene.Spatial |
addController, applyDefaultStates, calculateCollisions, calculatePick, clearCurrentState, clearCurrentStates, clearRenderState, getController, getControllers, getCurrentState, getLastFrustumIntersection, getLightCombineMode, getLocalRotation, getLocalScale, getLocalTranslation, getName, getParent, getRenderQueueMode, getRenderStateList, getTextureCombineMode, getWorldBound, getWorldRotation, getWorldScale, getWorldTranslation, getZOrder, isForceCulled, isForceView, onDraw, onDrawBounds, propagateBoundToRoot, propagateStatesFromRoot, removeController, removeFromParent, setForceCull, setLightCombineMode, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalTranslation, setName, setParent, setRenderQueueMode, setRenderState, setTextureCombineMode, setWorldBound, setZOrder, toString, updateGeometricState, updateRenderState, updateRenderState, updateWorldData |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Quad
public Quad(java.lang.String name)
- Constructor creates a new
Quad object. That data for the
Quad is not set until a call to initialize
is made.
- Parameters:
name - the name of this Quad.
Quad
public Quad(java.lang.String name,
float width,
float height)
- Constructor creates a new
Quade object with the provided
width and height.
- Parameters:
name - the name of the Quad.width - the width of the Quad.height - the height of the Quad.
resize
public void resize(float width,
float height)
resize changes the width and height of the given quad by
altering its vertices.
- Parameters:
width - the new width of the Quad.height - the new height of the Quad.
initialize
public void initialize(float width,
float height)
initialize builds the data for the Quad
object.
- Parameters:
width - the width of the Quad.height - the height of the Quad.
getCenter
public Vector3f getCenter()
getCenter returns the center of the Quad.
- Returns:
- Vector3f the center of the
Quad.