gestalt.candidates
Class JoglCulling

java.lang.Object
  extended by gestalt.shape.AbstractDrawable
      extended by gestalt.candidates.JoglCulling
All Implemented Interfaces:
Drawable

public class JoglCulling
extends AbstractDrawable

To do:
put copyright notice here...

Field Summary
static int BOTTOM
           
static int FAR
           
 boolean FAST
           
static int LEFT
           
static int NEAR
           
static int RIGHT
           
static int TOP
           
 
Constructor Summary
JoglCulling()
           
 
Method Summary
 void draw(GLContext theContext)
          this method is used to draw the drawable, when the context is ready.
 float[][] frustum()
           
 boolean isActive()
          returns whether the drawable is active.
 boolean pointInFrustum(Vector3f thePosition)
           
 int pointInFrustumSide(Vector3f thePosition)
           
 void setActive(boolean theIsActive)
           
 boolean sphereInFrustum(Vector3f thePosition, float theRadius)
           
 int sphereInFrustumSide(Vector3f thePosition, float theRadius)
           
 
Methods inherited from class gestalt.shape.AbstractDrawable
add, getSortData, getSortValue, isSortable, setSortValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FAST

public boolean FAST

RIGHT

public static final int RIGHT
See Also:
Constant Field Values

LEFT

public static final int LEFT
See Also:
Constant Field Values

BOTTOM

public static final int BOTTOM
See Also:
Constant Field Values

TOP

public static final int TOP
See Also:
Constant Field Values

FAR

public static final int FAR
See Also:
Constant Field Values

NEAR

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

JoglCulling

public JoglCulling()
Method Detail

draw

public void draw(GLContext theContext)
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.

Parameters:
theContext - GLContext

setActive

public void setActive(boolean theIsActive)

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
Overrides:
isActive in class AbstractDrawable
Returns:
boolean

sphereInFrustum

public boolean sphereInFrustum(Vector3f thePosition,
                               float theRadius)

pointInFrustum

public boolean pointInFrustum(Vector3f thePosition)

pointInFrustumSide

public int pointInFrustumSide(Vector3f thePosition)

sphereInFrustumSide

public int sphereInFrustumSide(Vector3f thePosition,
                               float theRadius)

frustum

public float[][] frustum()


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