|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object DebugView
public abstract class DebugView
contains some common methods for debug views
Field Summary | |
---|---|
protected Camera |
camera
|
protected Configuration |
config
|
protected CellularTerrainElevation |
eleData
|
protected MapData |
map
|
protected Projection |
projection
|
protected Terrain |
terrain
|
Constructor Summary | |
---|---|
DebugView()
|
Method Summary | |
---|---|
boolean |
canBeUsed()
returns true if this DebugView can currently be used for rendering. |
protected static void |
drawArrow(JOGLTarget target,
Color color,
float headLength,
VectorXYZ... vs)
|
protected static void |
drawBox(JOGLTarget target,
Color color,
VectorXYZ v1,
VectorXYZ v2,
VectorXYZ v3,
VectorXYZ v4)
|
protected static void |
drawBoxAround(JOGLTarget target,
VectorXYZ center,
Color color,
float halfWidth)
|
protected static void |
drawBoxAround(JOGLTarget target,
VectorXZ center,
Color color,
float halfWidth)
|
protected abstract void |
fillTarget(JOGLTarget target)
lets the subclass add all content and settings for rendering. |
String |
getDescription()
returns a description of the debug view |
void |
renderTo(GL2 gl,
Camera camera,
Projection projection)
renders the content added by fillTarget(JOGLTarget) . |
void |
setConfiguration(Configuration config)
|
void |
setConversionResults(ConversionFacade.Results conversionResults)
|
protected void |
updateTarget(JOGLTarget target,
boolean viewChanged)
lets the subclass update the target after the initial fillTarget(JOGLTarget) . |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Configuration config
protected MapData map
protected Terrain terrain
protected CellularTerrainElevation eleData
protected Camera camera
protected Projection projection
Constructor Detail |
---|
public DebugView()
Method Detail |
---|
public final void setConfiguration(Configuration config)
public void setConversionResults(ConversionFacade.Results conversionResults)
public boolean canBeUsed()
public String getDescription()
public void renderTo(GL2 gl, Camera camera, Projection projection)
fillTarget(JOGLTarget)
.
Only has an effect if canBeUsed()
is true.
gl
- needs to be the same gl as in previous callsprotected abstract void fillTarget(JOGLTarget target)
canBeUsed()
is true.
protected void updateTarget(JOGLTarget target, boolean viewChanged)
fillTarget(JOGLTarget)
.
viewChanged
- true if camera or projection have changedprotected static final void drawBoxAround(JOGLTarget target, VectorXZ center, Color color, float halfWidth)
protected static final void drawBoxAround(JOGLTarget target, VectorXYZ center, Color color, float halfWidth)
protected static final void drawBox(JOGLTarget target, Color color, VectorXYZ v1, VectorXYZ v2, VectorXYZ v3, VectorXYZ v4)
protected static final void drawArrow(JOGLTarget target, Color color, float headLength, VectorXYZ... vs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |