|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Geometry
com.jme.scene.TriMesh
com.jme.scene.shape.Quad
public class Quad
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jme.scene.TriMesh |
|---|
TriMesh.Mode |
| Nested classes/interfaces inherited from class com.jme.scene.Spatial |
|---|
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode |
| Field Summary |
|---|
| Fields inherited from class com.jme.scene.Geometry |
|---|
states |
| Fields inherited from class com.jme.scene.Spatial |
|---|
LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, queueDistance |
| Constructor Summary | |
|---|---|
Quad()
|
|
Quad(String name)
Constructor creates a new Quad object. |
|
Quad(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. |
float |
getHeight()
|
float |
getWidth()
|
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, findCollisions, findTriangleCollision, findTrianglePick, getIndexBuffer, getMaxIndex, getMeshAsTriangles, getMeshAsTrianglesVertices, getMode, getTriangle, getTriangle, getTriangleCount, getTriangleIndices, hasCollision, hasTriangleCollision, randomPointOnTriangles, read, reconstruct, setIndexBuffer, setMode, setTriangleQuantity, write |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag |
| Constructor Detail |
|---|
public Quad()
public Quad(String name)
Quad object. That data for the
Quad is not set until a call to initialize
is made.
name - the name of this Quad.
public Quad(String name,
float width,
float height)
Quade object with the provided
width and height.
name - the name of the Quad.width - the width of the Quad.height - the height of the Quad.| Method Detail |
|---|
public void resize(float width,
float height)
resize changes the width and height of the given quad by
altering its vertices.
width - the new width of the Quad.height - the new height of the Quad.
public void initialize(float width,
float height)
initialize builds the data for the Quad
object.
width - the width of the Quad.height - the height of the Quad.public Vector3f getCenter()
getCenter returns the center of the Quad.
Quad.public float getWidth()
public float getHeight()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||