org.osm2world.viewer.view.debug
public abstract class DebugView extends Object
Modifier and Type | Field and Description |
---|---|
protected Camera |
camera |
protected Configuration |
config |
protected TerrainElevationData |
eleData |
protected MapData |
map |
protected Projection |
projection |
Constructor and Description |
---|
DebugView() |
Modifier and Type | Method and Description |
---|---|
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(GL gl,
Camera camera,
Projection projection)
renders the content added by
fillTarget(JOGLTarget) . |
void |
reset() |
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) . |
protected Configuration config
protected MapData map
protected TerrainElevationData eleData
protected Camera camera
protected Projection projection
public final void setConfiguration(Configuration config)
public void reset()
public void setConversionResults(ConversionFacade.Results conversionResults)
public boolean canBeUsed()
public String getDescription()
public void renderTo(GL 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)