org.xith3d.scenegraph.primitives
Class FixedSizedBillboardFactory

java.lang.Object
  extended by org.xith3d.scenegraph.primitives.FixedSizedBillboardFactory

public class FixedSizedBillboardFactory
extends java.lang.Object

A factory class to create FixedSizedBillboard instances with specific parameters.


Method Summary
static FixedSizedBillboard createColoredBillboard(float width, float height, org.openmali.vecmath2.Colorf color)
           
static FixedSizedBillboard createColoredBillboard(org.openmali.vecmath2.Tuple3f center, float width, float height, org.openmali.vecmath2.Colorf color)
           
static FixedSizedBillboard createConstantSizedTextBillboard(java.lang.String text, int alignment, java.awt.Font font, org.openmali.vecmath2.Colorf color)
           
static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth, int screenHeight, java.lang.String texture)
          Creates a FixedSizedBillboard instance from the given Texture.
static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth, int screenHeight, java.lang.String textureName, org.openmali.vecmath2.Tuple2f textureLowerLeft, org.openmali.vecmath2.Tuple2f textureUpperRight)
          Creates a constant-size billboard from the given Texture and texture coordinates.
static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth, int screenHeight, Texture texture)
          Creates a FixedSizedBillboard instance from the given Texture.
static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth, int screenHeight, Texture texture, org.openmali.vecmath2.Tuple2f textureLowerLeft, org.openmali.vecmath2.Tuple2f textureUpperRight)
          Creates a constant-size billboard from the given Texture and texture coordinates.
static FixedSizedBillboard createConstantSizeTexturedBillboard(java.lang.String texture)
          Creates a FixedSizedBillboard instance from the given texture name.
static FixedSizedBillboard createConstantSizeTexturedBillboard(Texture texture)
          Creates a FixedSizedBillboard instance from the given Texture.
static FixedSizedBillboard createTexturedBillboard(org.openmali.vecmath2.Tuple3f center, float width, float height, java.lang.String textureName, org.openmali.vecmath2.Tuple2f textureLowerLeft, org.openmali.vecmath2.Tuple2f textureUpperRight)
           
static FixedSizedBillboard createTexturedBillboard(org.openmali.vecmath2.Tuple3f center, float width, float height, Texture texture)
           
static FixedSizedBillboard createTexturedBillboard(org.openmali.vecmath2.Tuple3f center, float width, float height, Texture texture, org.openmali.vecmath2.Tuple2f textureLowerLeft, org.openmali.vecmath2.Tuple2f textureUpperRight)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createColoredBillboard

public static FixedSizedBillboard createColoredBillboard(float width,
                                                         float height,
                                                         org.openmali.vecmath2.Colorf color)

createColoredBillboard

public static FixedSizedBillboard createColoredBillboard(org.openmali.vecmath2.Tuple3f center,
                                                         float width,
                                                         float height,
                                                         org.openmali.vecmath2.Colorf color)

createTexturedBillboard

public static FixedSizedBillboard createTexturedBillboard(org.openmali.vecmath2.Tuple3f center,
                                                          float width,
                                                          float height,
                                                          Texture texture)

createTexturedBillboard

public static FixedSizedBillboard createTexturedBillboard(org.openmali.vecmath2.Tuple3f center,
                                                          float width,
                                                          float height,
                                                          Texture texture,
                                                          org.openmali.vecmath2.Tuple2f textureLowerLeft,
                                                          org.openmali.vecmath2.Tuple2f textureUpperRight)

createTexturedBillboard

public static FixedSizedBillboard createTexturedBillboard(org.openmali.vecmath2.Tuple3f center,
                                                          float width,
                                                          float height,
                                                          java.lang.String textureName,
                                                          org.openmali.vecmath2.Tuple2f textureLowerLeft,
                                                          org.openmali.vecmath2.Tuple2f textureUpperRight)

createConstantSizeTexturedBillboard

public static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth,
                                                                      int screenHeight,
                                                                      java.lang.String textureName,
                                                                      org.openmali.vecmath2.Tuple2f textureLowerLeft,
                                                                      org.openmali.vecmath2.Tuple2f textureUpperRight)
Creates a constant-size billboard from the given Texture and texture coordinates.

Parameters:
screenWidth - desired width on screen.
screenHeight - desired height on screen.
textureName - name of the texture to use.
textureLowerLeft -
textureUpperRight -

createConstantSizeTexturedBillboard

public static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth,
                                                                      int screenHeight,
                                                                      Texture texture,
                                                                      org.openmali.vecmath2.Tuple2f textureLowerLeft,
                                                                      org.openmali.vecmath2.Tuple2f textureUpperRight)
Creates a constant-size billboard from the given Texture and texture coordinates.

Parameters:
screenWidth - desired width on screen.
screenHeight - desired height on screen.
texture - texture to use.
textureLowerLeft -
textureUpperRight -

createConstantSizeTexturedBillboard

public static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth,
                                                                      int screenHeight,
                                                                      java.lang.String texture)
Creates a FixedSizedBillboard instance from the given Texture. The billboard will be rendered as a rectangle with the specified dimensions.

Parameters:
screenWidth - desired width on screen.
screenHeight - desired height on screen.
texture - texture to use.

createConstantSizeTexturedBillboard

public static FixedSizedBillboard createConstantSizeTexturedBillboard(int screenWidth,
                                                                      int screenHeight,
                                                                      Texture texture)
Creates a FixedSizedBillboard instance from the given Texture. The billboard will be rendered as a rectangle with the specified dimensions.

Parameters:
screenWidth - desired width on screen.
screenHeight - desired height on screen.
texture - texture to use.

createConstantSizeTexturedBillboard

public static FixedSizedBillboard createConstantSizeTexturedBillboard(Texture texture)
Creates a FixedSizedBillboard instance from the given Texture. The billboard will be rendered as a rectangle with the same dimensions as the given Texture.

Parameters:
texture - texture to use.

createConstantSizeTexturedBillboard

public static FixedSizedBillboard createConstantSizeTexturedBillboard(java.lang.String texture)
Creates a FixedSizedBillboard instance from the given texture name. The billboard will be rendered as a rectangle with the same dimensions as the given Texture.

Parameters:
texture - texture to use.

createConstantSizedTextBillboard

public static FixedSizedBillboard createConstantSizedTextBillboard(java.lang.String text,
                                                                   int alignment,
                                                                   java.awt.Font font,
                                                                   org.openmali.vecmath2.Colorf color)