|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.candidates.JoglScreenWorldCoordinates
public class JoglScreenWorldCoordinates
| 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 |
|---|
public boolean initalized
public boolean enable
| Constructor Detail |
|---|
public JoglScreenWorldCoordinates()
public JoglScreenWorldCoordinates(Origin theOrigin)
| Method Detail |
|---|
public void draw(GLContext theRenderContext)
Drawable
draw in interface DrawabletheRenderContext - GLContextpublic void begin(GLContext theRenderContext)
begin in interface CameraPluginpublic void end(GLContext theRenderContext)
end in interface CameraPluginpublic boolean isActive()
Drawable
isActive in interface Drawable
public boolean screenToWorldPosition(int theScreenX,
int theScreenY,
Plane3f thePlane,
Vector3f theResult)
public boolean worldToScreenPosition(Vector3f theWorldPosition,
Vector3f theResult)
public boolean screenPositionToWorldRay(int theScreenPositionX,
int theScreenPositionY,
Ray3f theEyeRay)
public void add(Drawable theDrawable)
Drawable
add in interface DrawabletheDrawable - Drawablepublic float getSortValue()
Drawable
getSortValue in interface Drawablepublic void setSortValue(float theSortValue)
Drawable
setSortValue in interface DrawabletheSortValue - floatpublic float[] getSortData()
Drawable
getSortData in interface Drawablepublic boolean isSortable()
Drawable
isSortable in interface Drawable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||