|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.scenegraph.SceneGraphObject
org.xith3d.scenegraph.Node
org.xith3d.scenegraph.Leaf
org.xith3d.scenegraph.Shape3D
org.xith3d.scenegraph.primitives.Quad
org.xith3d.scenegraph.primitives.Rectangle
public class Rectangle
This is a simple, single textured rectangle implementation. Useful for loading screens and Foreground objects.
| Nested Class Summary | |
|---|---|
static class |
Rectangle.ZeroPointLocation
|
| Field Summary |
|---|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
|
Rectangle(float width,
float height)
Creates an untextured Rectangle. |
protected |
Rectangle(float width,
float height,
boolean generateNormals,
Rectangle.ZeroPointLocation zpl,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
|
Rectangle(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl)
Creates an untextured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
Creates an untextured Rectangle without alpha channel. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
|
Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
|
Rectangle(Texture texture,
float width,
float height)
Deprecated. please use Rectangle(float, float, Texture) |
| Method Summary | |
|---|---|
protected static org.openmali.vecmath2.Tuple3f |
createPosition(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Vector3f result)
|
protected static org.openmali.vecmath2.Tuple3f |
createPosition(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset)
|
static org.openmali.vecmath2.TexCoord2f[] |
createTextureCoordinates(org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
|
static org.openmali.vecmath2.Point3f[] |
createVertexCoords(float width,
float height,
float offX,
float offY,
float offZ)
|
static org.openmali.vecmath2.Point3f[] |
createVertexCoords(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
|
static Rectangle |
createWithoutNormals(float width,
float height)
Creates an untextured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl)
Creates an untextured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
Creates an untextured Rectangle without alpha channel. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
Creates an untextured Rectangle without alpha channel. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured Rectangle. |
static Rectangle |
createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
Creates a textured Rectangle. |
float |
getHeight()
|
org.openmali.types.twodee.Dim2f |
getSize()
|
Texture |
getTexture()
|
float |
getWidth()
|
boolean |
resize(float width,
float height)
Resizes and repositions the Rectangle. |
boolean |
resize(float width,
float height,
float xOffset,
float yOffset,
float zOffset)
Resizes and repositions the Rectangle. |
boolean |
resize(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
Resizes and repositions the Rectangle. |
boolean |
resize(org.openmali.vecmath2.Tuple2f size)
Resizes and repositions the Rectangle. |
boolean |
resize(org.openmali.vecmath2.Tuple2f size,
float xOffset,
float yOffset,
float zOffset)
Resizes and repositions the Rectangle. |
boolean |
resize(org.openmali.vecmath2.Tuple2f size,
org.openmali.vecmath2.Tuple3f offset)
Resizes and repositions the Rectangle. |
void |
setTexture(java.lang.String texture)
Sets the new Texture for this Rectangle. |
void |
setTexture(java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new Texture together with texture-coordinates for this Rectangle. |
void |
setTexture(Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new Texture together with texture-coordinates for this Rectangle. |
void |
setTexturePosition(org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new texture-coordinates for this Rectangle. |
void |
setTexturePosition(org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Sets the new texture-coordinates for this Rectangle. |
| Methods inherited from class org.xith3d.scenegraph.primitives.Quad |
|---|
createGeometry, generateNormals, getAlpha, getColor, getGeometry, setAlpha, setColor, setTexture, setTexture, setTexture, setTextureCoordinates, setTexturePosition, setVertexCoords, setVertexCoords, setVertexCoords, update, update |
| Methods inherited from class org.xith3d.scenegraph.Shape3D |
|---|
absorbDetails, copy, freeOpenGLResources, getAppearance, getAppearance, getCustomComparable, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, newInstance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setCustomComparable, setGeometry, setIsShadowReceiver, setModListener, setVisible, sharedCopy, sharedCopy, traverse, updateBounds, updateBoundsCheap, updateWorldTransform, verifyAppChange |
| Methods inherited from class org.xith3d.scenegraph.Leaf |
|---|
dump, getPickHost, setPickHost |
| Methods inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinatecolor - the color for the ColoringAttributes
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinatecolor - the color for the ColoringAttributes
public Rectangle(float width,
float height,
Texture texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset,
java.lang.String texture)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangle
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
width - width of the Rectangleheight - height of the Rectangleoffset -
public Rectangle(float width,
float height)
width - width of the Rectangleheight - height of the Rectangle
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
@Deprecated
public Rectangle(Texture texture,
float width,
float height)
Rectangle(float, float, Texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset,
Texture texture)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectanglecolor - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectanglecolor - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglecolor - the color to use for colorin this Rectangle
protected Rectangle(float width,
float height,
boolean generateNormals,
Rectangle.ZeroPointLocation zpl,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectanglecolor - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)color - the color to use for colorin this Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectanglecolor - the color to use for coloring this Rectangle
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public Rectangle(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate| Method Detail |
|---|
public void setTexturePosition(org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
texLowerLeft - the Lower-left texture coordinatetexUpperRight - the Upper-right texture coordinatepublic void setTexturePosition(org.openmali.vecmath2.Tuple2f texUpperRight)
texUpperRight - the Upper-right texture coordinate
public void setTexture(Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
texture - the new TexturetexLowerLeft - the Lower-left texture coordinatetexUpperRight - the Upper-right texture coordinate
public void setTexture(java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
texture - the new Texture resourcetexLowerLeft - the Lower-left texture coordinatetexUpperRight - the Upper-right texture coordinatepublic void setTexture(java.lang.String texture)
setTexture in class Quadtexture - the new Texture resourcepublic Texture getTexture()
getTexture in class Quad
protected static org.openmali.vecmath2.Tuple3f createPosition(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Vector3f result)
protected static org.openmali.vecmath2.Tuple3f createPosition(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset)
public org.openmali.types.twodee.Dim2f getSize()
public final float getWidth()
public final float getHeight()
public boolean resize(float width,
float height,
float xOffset,
float yOffset,
float zOffset)
width - the new widthheight - the new heightxOffset - relative x-Location of the RectangleyOffset - relative y-Location of the RectanglezOffset - relative z-Location of the Rectangle
public final boolean resize(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
width - the new widthheight - the new heightoffset - the new relative position
public final boolean resize(float width,
float height)
width - the new widthheight - the new height
public final boolean resize(org.openmali.vecmath2.Tuple2f size,
float xOffset,
float yOffset,
float zOffset)
size - the new size for the RectanglexOffset - relative x-Location of the RectangleyOffset - relative y-Location of the RectanglezOffset - relative z-Location of the Rectangle
public final boolean resize(org.openmali.vecmath2.Tuple2f size,
org.openmali.vecmath2.Tuple3f offset)
size - the new size for the Rectangleoffset - the new relative positionpublic final boolean resize(org.openmali.vecmath2.Tuple2f size)
size - the new size for the Rectangle
public static org.openmali.vecmath2.Point3f[] createVertexCoords(float width,
float height,
float offX,
float offY,
float offZ)
public static org.openmali.vecmath2.Point3f[] createVertexCoords(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
public static org.openmali.vecmath2.TexCoord2f[] createTextureCoordinates(org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinatecolor - the color for the ColoringAttributes
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinatecolor - the color for the ColoringAttributes
public static final Rectangle createWithoutNormals(float width,
float height,
Texture texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
float zOffset,
java.lang.String texture)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
float zOffset)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
width - width of the Rectangleheight - height of the Rectangleoffset -
public static final Rectangle createWithoutNormals(float width,
float height)
width - width of the Rectangleheight - height of the Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
float zOffset,
Texture texture)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectangletexture - the texturetexLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectangleoffset - relative Location of the Rectanglecolor - the color to use for colorin this Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectanglecolor - the color to use for colorin this Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglecolor - the color to use for colorin this Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)texture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)zOffset - relative z-Location of the Rectanglecolor - the color to use for colorin this Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)color - the color to use for colorin this Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectanglecolor - the color to use for coloring this Rectangle
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)
public static final Rectangle createWithoutNormals(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
width - width of the Rectangleheight - height of the Rectanglezpl - the location of the point (0, 0, 0)offset - relative Location of the Rectangletexture - the name of the texture (loaded with the TextureLoader)texLowerLeft - Lower-left texture coordinatetexUpperRight - Upper-right texture coordinate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||