org.osm2world.core.target
Interface Target

All Known Implementing Classes:
AbstractTarget, JOGLTarget, ObjTarget, POVRayTarget, PrimitiveBuffer, PrimitiveTarget

public interface Target


Method Summary
 void beginObject(WorldObject object)
          announces the begin of the draw* calls for a WorldObject.
 void drawBox(Material material, VectorXYZ frontLowerLeft, VectorXYZ rightVector, VectorXYZ upVector, VectorXYZ backVector)
          draws a box with outward-facing polygons
 void drawColumn(Material material, Integer corners, VectorXYZ base, double height, double radiusBottom, double radiusTop, boolean drawBottom, boolean drawTop)
          draws a column with outward-facing polygons around a point.
 void drawPolygon(Material material, VectorXYZ... vs)
           
 void drawTriangleFan(Material material, List<? extends VectorXYZ> vs)
           
 void drawTriangles(Material material, Collection<? extends TriangleXYZ> triangles)
           
 void drawTriangleStrip(Material material, List<? extends VectorXYZ> vs)
           
 void drawTriangleStrip(Material material, VectorXYZ... vs)
           
 void drawTrianglesWithNormals(Material material, Collection<? extends TriangleXYZWithNormals> triangles)
           
 

Method Detail

beginObject

void beginObject(WorldObject object)
announces the begin of the draw* calls for a WorldObject. This allows targets to group them, if desired. Otherwise, this can be ignored.


drawTriangles

void drawTriangles(Material material,
                   Collection<? extends TriangleXYZ> triangles)

drawTrianglesWithNormals

void drawTrianglesWithNormals(Material material,
                              Collection<? extends TriangleXYZWithNormals> triangles)

drawTriangleStrip

void drawTriangleStrip(Material material,
                       VectorXYZ... vs)

drawTriangleStrip

void drawTriangleStrip(Material material,
                       List<? extends VectorXYZ> vs)

drawTriangleFan

void drawTriangleFan(Material material,
                     List<? extends VectorXYZ> vs)

drawPolygon

void drawPolygon(Material material,
                 VectorXYZ... vs)

drawBox

void drawBox(Material material,
             VectorXYZ frontLowerLeft,
             VectorXYZ rightVector,
             VectorXYZ upVector,
             VectorXYZ backVector)
draws a box with outward-facing polygons


drawColumn

void drawColumn(Material material,
                Integer corners,
                VectorXYZ base,
                double height,
                double radiusBottom,
                double radiusTop,
                boolean drawBottom,
                boolean drawTop)
draws a column with outward-facing polygons around a point. A column is a polygon with > 3 corners extruded upwards. The implementation may decide to reduce the number of corners in order to improve performance (or make rendering possible when a perfect cylinder isn't supported).

Parameters:
corners - number of corners; null creates a cylinder for radiusBottom == radiusTop or (truncated) cone otherwise