org.osm2world.viewer.view.debug
Class MapDataDebugView

Object
  extended by DebugView
      extended by MapDataDebugView
All Implemented Interfaces:
RenderableToJOGL, Renderable

public class MapDataDebugView
extends DebugView
implements RenderableToJOGL

shows the plain MapData as a network of nodes, lines and areas


Field Summary
 
Fields inherited from class DebugView
eleData, map, mapDataPrimitiveBuffer, terrain, terrainPrimitiveBuffer
 
Constructor Summary
MapDataDebugView()
           
 
Method Summary
 boolean canBeUsed()
          returns true if this DebugView can currently be used for rendering.
 String getDescription()
          returns a description of the debug view
 void renderToImpl(GL gl, Camera camera)
          implementation for the renderTo method, provided by subclasses.
 
Methods inherited from class DebugView
drawBox, drawBoxAround, drawBoxAround, renderTo, setConversionResults, setPrimitiveBuffers
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface RenderableToJOGL
renderTo
 

Constructor Detail

MapDataDebugView

public MapDataDebugView()
Method Detail

getDescription

public String getDescription()
Description copied from class: DebugView
returns a description of the debug view

Overrides:
getDescription in class DebugView

canBeUsed

public boolean canBeUsed()
Description copied from class: DebugView
returns true if this DebugView can currently be used for rendering. By default, this checks whether all the setters have been used with non-null values, but subclasses can overwrite it with their own checks.

Overrides:
canBeUsed in class DebugView

renderToImpl

public void renderToImpl(GL gl,
                         Camera camera)
Description copied from class: DebugView
implementation for the renderTo method, provided by subclasses. Will only be called if the DebugView DebugView.canBeUsed().

Specified by:
renderToImpl in class DebugView