|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
R
- subtype of Renderable
designed for visualization
with this targetpublic interface Target<R extends Renderable>
A sink for rendering/writing WorldObject
s to.
Method Summary | |
---|---|
void |
beginObject(WorldObject object)
announces the begin of the draw* calls for a WorldObject . |
void |
drawBox(Material material,
VectorXYZ bottomCenter,
VectorXZ faceDirection,
double height,
double width,
double depth)
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 |
drawConvexPolygon(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists)
draws a convex polygon |
void |
drawTriangleFan(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists)
draws a triangle fan. |
void |
drawTriangles(Material material,
Collection<? extends TriangleXYZ> triangles,
List<List<VectorXZ>> texCoordLists)
draws triangles. |
void |
drawTriangleStrip(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists)
draws a triangle strip. |
void |
drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
List<List<VectorXZ>> texCoordLists)
draws triangles with explicitly defined normal vectors. |
void |
finish()
gives the target the chance to perform finish/cleanup operations after all objects have been drawn. |
Class<R> |
getRenderableType()
returns the renderable type designed for this target |
void |
render(R renderable)
renders a renderable object to this target. |
void |
setConfiguration(Configuration config)
|
Method Detail |
---|
Class<R> getRenderableType()
void setConfiguration(Configuration config)
void render(R renderable)
void beginObject(WorldObject object)
WorldObject
.
This allows targets to group them, if desired.
Otherwise, this can be ignored.
void drawTriangles(Material material, Collection<? extends TriangleXYZ> triangles, List<List<VectorXZ>> texCoordLists)
texCoordLists
- one texture coordinate list per texture.
Each must have three coordinates per triangle.
Can be null if no texturing information is available.void drawTrianglesWithNormals(Material material, Collection<? extends TriangleXYZWithNormals> triangles, List<List<VectorXZ>> texCoordLists)
drawTriangles(Material, Collection, List)
void drawTriangleStrip(Material material, List<VectorXYZ> vs, List<List<VectorXZ>> texCoordLists)
vs
- vertices of the triangle striptexCoordLists
- one texture coordinate list per texture.
Each must have the same length as the "vs" parameter.
Can be null if no texturing information is available.void drawTriangleFan(Material material, List<VectorXYZ> vs, List<List<VectorXZ>> texCoordLists)
drawTriangleStrip(Material, List, List)
void drawConvexPolygon(Material material, List<VectorXYZ> vs, List<List<VectorXZ>> texCoordLists)
drawTriangleStrip(Material, List, List)
void drawBox(Material material, VectorXYZ bottomCenter, VectorXZ faceDirection, double height, double width, double depth)
faceDirection
- direction for the "front" of the boxvoid drawColumn(Material material, Integer corners, VectorXYZ base, double height, double radiusBottom, double radiusTop, boolean drawBottom, boolean drawTop)
corners
- number of corners; null creates a cylinder
for radiusBottom == radiusTop or (truncated) cone otherwisevoid finish()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |