gestalt.util
Class CameraFrustumView

java.lang.Object
  extended by gestalt.util.CameraFrustumView
All Implemented Interfaces:
Drawable

public class CameraFrustumView
extends java.lang.Object
implements Drawable


Constructor Summary
CameraFrustumView(DrawableFactory drawablefactory)
           
 
Method Summary
 void add(Drawable theDrawable)
          this method is commonly used to store children of a drawable.
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 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 setSortValue(float theSortValue)
          caches the current sort value.
 void update(Camera theCamera)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CameraFrustumView

public CameraFrustumView(DrawableFactory drawablefactory)
Method Detail

update

public void update(Camera theCamera)

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

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


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