gestalt.candidates
Class JoglDisposableBin

java.lang.Object
  extended by gestalt.candidates.JoglDisposableBin
All Implemented Interfaces:
Drawable

public class JoglDisposableBin
extends java.lang.Object
implements Drawable


Field Summary
 boolean active
           
 boolean autoclear
           
 boolean fill
           
 Material material
           
static int PLANE_XY
           
static int PLANE_XZ
           
static int PLANE_YZ
           
 Vector3f position
           
 Vector3f scale
           
 boolean wireframe
           
 Color wireframe_color
           
 
Constructor Summary
JoglDisposableBin()
           
 
Method Summary
 void add(Drawable theDrawable)
          this method is commonly used to store children of a drawable.
 void box(Vector3f thePosition, Vector3f theScale)
           
 void circle(float theX, float theY, float theZ, float theRadius)
           
 void circle(float theX, float theY, float theZ, float theRadius, int thePlane)
           
 void circle(Vector3f theCenter, float theRadius)
           
 void circle(Vector3f theCenter, float theRadius, int thePlane)
           
 void clear()
           
 Color color()
           
 void color(Color theColor)
           
 void color(float g)
           
 void color(float g, float a)
           
 void color(float r, float g, float b, float a)
           
 void cross(float theX, float theY, float theZ, float theD)
           
 void cross(Vector3f theV, float theD)
           
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 void font(int theFont)
           
 float[] getSortData()
          returns the data upon which a sort value is calculated.
 float getSortValue()
          returns the last sort value.
 boolean isActive()
          returns whether the drawable is active.
 boolean isSortable()
          returns true if the 'drawable' should be sorted before drawing.
 void line(float startX, float startY, float endX, float endY)
           
 void line(float startX, float startY, float startZ, float endX, float endY, float endZ)
           
 void line(Vector3f theStart, Vector3f theEnd)
           
 void lineto(Vector3f theStart, Vector3f theEnd)
           
 void point(float x, float y)
           
 void point(float x, float y, float z)
           
 void point(Vector3f thePoint)
           
 void quicksphere(Vector3f theCenter, float theRadius)
           
 void setSortValue(float theSortValue)
          caches the current sort value.
 void text(float theValue, float x, float y)
           
 void text(float theValue, float x, float y, float z)
           
 void text(java.lang.String theText, float x, float y)
           
 void text(java.lang.String theText, float x, float y, float z)
           
 void textalign(int theTextAlign)
           
 void triangle(float a0, float a1, float a2, float b0, float b1, float b2, float c0, float c1, float c2)
           
 void triangle(Vector3f a, Vector3f b, Vector3f c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scale

public Vector3f scale

position

public Vector3f position

active

public boolean active

autoclear

public boolean autoclear

wireframe

public boolean wireframe

fill

public boolean fill

material

public final Material material

wireframe_color

public final Color wireframe_color

PLANE_XY

public static final int PLANE_XY
See Also:
Constant Field Values

PLANE_XZ

public static final int PLANE_XZ
See Also:
Constant Field Values

PLANE_YZ

public static final int PLANE_YZ
See Also:
Constant Field Values
Constructor Detail

JoglDisposableBin

public JoglDisposableBin()
Method Detail

draw

public void draw(GLContext theRenderContext)
Description copied from interface: Drawable
this method is used to draw the drawable, when the context is ready. although the behavior sometimes varies and doesn t always need to have a visual representation depending on the implementation.

Specified by:
draw in interface Drawable
Parameters:
theRenderContext - GLContext

textalign

public void textalign(int theTextAlign)

color

public void color(float r,
                  float g,
                  float b,
                  float a)

color

public void color(float g,
                  float a)

color

public void color(float g)

color

public void color(Color theColor)

color

public Color color()

clear

public void clear()

add

public void add(Drawable theDrawable)
Description copied from interface: Drawable
this method is commonly used to store children of a drawable.

Specified by:
add in interface Drawable
Parameters:
theDrawable - Drawable

isActive

public boolean isActive()
Description copied from interface: Drawable
returns whether the drawable is active. it is commonly implemented so that the drawables 'draw' method will be ommitted if 'isActive' return false, although this behavior can vary depending on the implementation.

Specified by:
isActive in interface Drawable
Returns:
boolean

getSortValue

public float getSortValue()
Description copied from interface: Drawable
returns the last sort value.

Specified by:
getSortValue in interface Drawable
Returns:
float

setSortValue

public void setSortValue(float theSortValue)
Description copied from interface: Drawable
caches the current sort value.

Specified by:
setSortValue in interface Drawable
Parameters:
theSortValue - float

getSortData

public float[] getSortData()
Description copied from interface: Drawable
returns the data upon which a sort value is calculated.

Specified by:
getSortData in interface Drawable
Returns:
float[]

isSortable

public boolean isSortable()
Description copied from interface: Drawable
returns true if the 'drawable' should be sorted before drawing.

Specified by:
isSortable in interface Drawable
Returns:
boolean

point

public void point(float x,
                  float y)

point

public void point(float x,
                  float y,
                  float z)

point

public void point(Vector3f thePoint)

text

public void text(java.lang.String theText,
                 float x,
                 float y,
                 float z)

text

public void text(java.lang.String theText,
                 float x,
                 float y)

text

public void text(float theValue,
                 float x,
                 float y,
                 float z)

text

public void text(float theValue,
                 float x,
                 float y)

font

public void font(int theFont)

line

public void line(float startX,
                 float startY,
                 float endX,
                 float endY)

line

public void line(float startX,
                 float startY,
                 float startZ,
                 float endX,
                 float endY,
                 float endZ)

line

public void line(Vector3f theStart,
                 Vector3f theEnd)

lineto

public void lineto(Vector3f theStart,
                   Vector3f theEnd)

cross

public void cross(float theX,
                  float theY,
                  float theZ,
                  float theD)

cross

public void cross(Vector3f theV,
                  float theD)

circle

public void circle(Vector3f theCenter,
                   float theRadius)

circle

public void circle(float theX,
                   float theY,
                   float theZ,
                   float theRadius)

circle

public void circle(Vector3f theCenter,
                   float theRadius,
                   int thePlane)

circle

public void circle(float theX,
                   float theY,
                   float theZ,
                   float theRadius,
                   int thePlane)

quicksphere

public void quicksphere(Vector3f theCenter,
                        float theRadius)

triangle

public void triangle(Vector3f a,
                     Vector3f b,
                     Vector3f c)

triangle

public void triangle(float a0,
                     float a1,
                     float a2,
                     float b0,
                     float b1,
                     float b2,
                     float c0,
                     float c1,
                     float c2)

box

public void box(Vector3f thePosition,
                Vector3f theScale)


processing library gestalt_p5 by Patrick Kochlik + Dennis Paul. (c) 2009