gestalt.candidates
Class JoglScreenWorldCoordinates

java.lang.Object
  extended by gestalt.candidates.JoglScreenWorldCoordinates
All Implemented Interfaces:
Drawable, CameraPlugin

public class JoglScreenWorldCoordinates
extends java.lang.Object
implements Drawable, CameraPlugin


Field Summary
 boolean enable
           
 boolean initalized
           
 
Constructor Summary
JoglScreenWorldCoordinates()
           
JoglScreenWorldCoordinates(Origin theOrigin)
           
 
Method Summary
 void add(Drawable theDrawable)
          this method is commonly used to store children of a drawable.
 void begin(GLContext theRenderContext)
           
 void draw(GLContext theRenderContext)
          this method is used to draw the drawable, when the context is ready.
 void end(GLContext theRenderContext)
           
 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.
 boolean screenPositionToWorldRay(int theScreenPositionX, int theScreenPositionY, Ray3f theEyeRay)
           
 boolean screenToWorldPosition(int theScreenX, int theScreenY, Plane3f thePlane, Vector3f theResult)
           
 void setSortValue(float theSortValue)
          caches the current sort value.
 boolean worldToScreenPosition(Vector3f theWorldPosition, Vector3f theResult)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initalized

public boolean initalized

enable

public boolean enable
Constructor Detail

JoglScreenWorldCoordinates

public JoglScreenWorldCoordinates()

JoglScreenWorldCoordinates

public JoglScreenWorldCoordinates(Origin theOrigin)
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

begin

public void begin(GLContext theRenderContext)
Specified by:
begin in interface CameraPlugin

end

public void end(GLContext theRenderContext)
Specified by:
end in interface CameraPlugin

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

screenToWorldPosition

public boolean screenToWorldPosition(int theScreenX,
                                     int theScreenY,
                                     Plane3f thePlane,
                                     Vector3f theResult)

worldToScreenPosition

public boolean worldToScreenPosition(Vector3f theWorldPosition,
                                     Vector3f theResult)

screenPositionToWorldRay

public boolean screenPositionToWorldRay(int theScreenPositionX,
                                        int theScreenPositionY,
                                        Ray3f theEyeRay)

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

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