|
||||||||||
| 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
org.xith3d.scenegraph.primitives.RectBillboard
public class RectBillboard
This is a reguar Rectangle, which will always face the View.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.xith3d.scenegraph.primitives.Rectangle |
|---|
Rectangle.ZeroPointLocation |
| Field Summary | |
|---|---|
protected org.openmali.vecmath2.Point3f[] |
transformedVertices
|
protected org.openmali.vecmath2.Tuple3f[] |
zeroVertices
|
| Fields inherited from class org.xith3d.scenegraph.Node |
|---|
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, parent, transformGroup, untransformedBounds |
| Fields inherited from class org.xith3d.scenegraph.SceneGraphObject |
|---|
XITH3D_USERDATAKEY_OLDUSERDATA |
| Constructor Summary | |
|---|---|
RectBillboard(float width,
float height)
Creates an untextured RectBillboard. |
|
RectBillboard(float width,
float height,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored RectBillboard. |
|
RectBillboard(float width,
float height,
float zOffset)
Creates an untextured RectBillboard without alpha channel. |
|
RectBillboard(float width,
float height,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored RectBillboard. |
|
RectBillboard(float width,
float height,
float zOffset,
java.lang.String texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
float zOffset,
Texture texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl)
Creates an untextured RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
Creates an untextured RectBillboard without alpha channel. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
java.lang.String texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
java.lang.String texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
Rectangle.ZeroPointLocation zpl,
Texture texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
java.lang.String texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
Texture texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
Creates an untextured RectBillboard without alpha channel. |
|
RectBillboard(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
org.openmali.vecmath2.Colorf color)
Creates an untextured, but colored RectBillboard. |
|
RectBillboard(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
java.lang.String texture)
Creates a textured RectBillboard. |
|
RectBillboard(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 RectBillboard. |
|
RectBillboard(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 RectBillboard. |
|
RectBillboard(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture)
Creates a textured RectBillboard. |
|
RectBillboard(float width,
float height,
org.openmali.vecmath2.Tuple3f offset,
Texture texture,
org.openmali.vecmath2.Tuple2f texLowerLeft,
org.openmali.vecmath2.Tuple2f texUpperRight)
Creates a textured RectBillboard. |
|
RectBillboard(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 RectBillboard. |
|
RectBillboard(Texture texture,
float width,
float height,
Rectangle.ZeroPointLocation zpl,
float zOffset)
Creates a textured RectBillboard. |
|
| Method Summary | |
|---|---|
void |
absorbDetails(Node node)
Turns the receiver into a shared copy of the node parameter. |
org.openmali.types.twodee.Sized2iRO |
getSizeOnScreen()
Returns the Billboard desired on screen dimensions. |
RectBillboard |
sharedCopy()
Creates a shared copy of this Node. |
RectBillboard |
sharedCopy(CopyListener listener)
Creates a shared copy of this Node. |
void |
updateFaceToCamera(org.openmali.vecmath2.Matrix3f viewRotation,
long frameId,
long nanoTime,
long nanoStep)
This method is called by the renderer each frame, the BillBoard is rendered. |
| 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 |
|---|
freeOpenGLResources, getAppearance, getAppearance, isBumpMappingEnabled, isShadowReceiver, isVisible, newAppearance, setAppearance, setBounds, setBumpMappingEnabled, setBumpMappingEnabled, setGeometry, setIsShadowReceiver, setLive, setModListener, setVisible, 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, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected org.openmali.vecmath2.Tuple3f[] zeroVertices
protected org.openmali.vecmath2.Point3f[] transformedVertices
| Constructor Detail |
|---|
public RectBillboard(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 RectBillboard(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 coordinate
public RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(float width,
float height,
float zOffset)
width - width of the Rectangleheight - height of the RectanglezOffset - relative z-Location of the Rectangle
public RectBillboard(float width,
float height,
org.openmali.vecmath2.Tuple3f offset)
width - width of the Rectangleheight - height of the Rectangleoffset -
public RectBillboard(float width,
float height)
width - width of the Rectangleheight - height of the Rectangle
public RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(Texture texture,
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 Rectangletexture - the name of the texture (loaded with the TextureLoader)
public RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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 RectBillboard(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| Method Detail |
|---|
public org.openmali.types.twodee.Sized2iRO getSizeOnScreen()
null, as the on-screen dimension is dependant on the
distance between the Billboard and the camera.
If the desired effect is a Billboard having a constant size on screen (usefull for icons,
or textual information that should be readable at any distance), then this method should
return the desired size in pixels. In this case, the Sized2iRO returned will
generally be a constant.
This method is called by the renderer each frame the Billboard is rendered.
Note to implementers: for this behaviour to work properly, the unmodified geometry
should of course have a unit size, ie: the width and the height should should be
equal to 1f. Else the effective desired size on screen will be scaled accordingly.
getSizeOnScreen in interface Billboardnull for a standard billboard.
public void updateFaceToCamera(org.openmali.vecmath2.Matrix3f viewRotation,
long frameId,
long nanoTime,
long nanoStep)
updateFaceToCamera in interface BillboardviewRotation - the camera's rotationframeId - the current rendered frame's idpublic void absorbDetails(Node node)
absorbDetails in class Shape3Dnode - the node to copy.Node.sharedCopy()public RectBillboard sharedCopy(CopyListener listener)
sharedCopy in class Shape3DNode.absorbDetails(Node)public RectBillboard sharedCopy()
sharedCopy in class Shape3DNode.absorbDetails(Node)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||