org.osm2world.core.target
Class TargetUtil

Object
  extended by TargetUtil

public final class TargetUtil
extends Object


Method Summary
static
<R extends Renderable>
void
renderObject(Target<R> target, Object object)
          renders any object to a target instance if it is a renderable compatible with that target type.
static
<R extends RenderableToPrimitiveTarget>
void
renderWorldObjects(Iterator<? extends Target<R>> targetIterator, MapData mapData, int primitiveThresholdPerTarget)
          render all world objects to a target instances that are compatible with that target type.
static
<R extends Renderable>
void
renderWorldObjects(Target<R> target, MapData mapData, boolean renderUnderground)
          render all world objects to a target instance that are compatible with that target type
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

renderWorldObjects

public static <R extends Renderable> void renderWorldObjects(Target<R> target,
                                                             MapData mapData,
                                                             boolean renderUnderground)
render all world objects to a target instance that are compatible with that target type


renderWorldObjects

public static <R extends RenderableToPrimitiveTarget> void renderWorldObjects(Iterator<? extends Target<R>> targetIterator,
                                                                              MapData mapData,
                                                                              int primitiveThresholdPerTarget)
render all world objects to a target instances that are compatible with that target type. World objects are added to a target until the number of primitives reaches the primitive threshold, then the next target is retrieved from the iterator.


renderObject

public static final <R extends Renderable> void renderObject(Target<R> target,
                                                             Object object)
renders any object to a target instance if it is a renderable compatible with that target type. Also sends Target.beginObject(WorldObject) calls.