|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractTarget<R>
public abstract class AbstractTarget<R extends Renderable>
superclass for Target
implementations that defines some
of the required methods using others. Extending it reduces the number of
methods that have to be provided by the implementation
Constructor Summary | |
---|---|
AbstractTarget()
|
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 |
drawBox(Material material,
VectorXYZ bottomCenter,
VectorXZ backDirection,
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 |
drawPolygon(Material material,
VectorXYZ... vs)
|
void |
drawTriangleFan(Material material,
List<? extends VectorXYZ> vs)
|
void |
drawTriangleStrip(Material material,
List<? extends VectorXYZ> vs)
|
void |
drawTriangleStrip(Material material,
VectorXYZ... vectors)
|
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface Target |
---|
drawTriangles, drawTrianglesWithNormals, getRenderableType, render |
Constructor Detail |
---|
public AbstractTarget()
Method Detail |
---|
public void beginObject(WorldObject object)
Target
WorldObject
.
This allows targets to group them, if desired.
Otherwise, this can be ignored.
beginObject
in interface Target<R extends Renderable>
public void drawBox(Material material, VectorXYZ frontLowerLeft, VectorXYZ rightVector, VectorXYZ upVector, VectorXYZ backVector)
Target
drawBox
in interface Target<R extends Renderable>
public void drawBox(Material material, VectorXYZ bottomCenter, VectorXZ backDirection, double height, double width, double depth)
Target
drawBox
in interface Target<R extends Renderable>
public void drawColumn(Material material, Integer corners, VectorXYZ base, double height, double radiusBottom, double radiusTop, boolean drawBottom, boolean drawTop)
Target
drawColumn
in interface Target<R extends Renderable>
corners
- number of corners; null creates a cylinder
for radiusBottom == radiusTop or (truncated) cone otherwisepublic void drawTriangleStrip(Material material, VectorXYZ... vectors)
drawTriangleStrip
in interface Target<R extends Renderable>
public void drawTriangleStrip(Material material, List<? extends VectorXYZ> vs)
drawTriangleStrip
in interface Target<R extends Renderable>
public void drawTriangleFan(Material material, List<? extends VectorXYZ> vs)
drawTriangleFan
in interface Target<R extends Renderable>
public void drawPolygon(Material material, VectorXYZ... vs)
drawPolygon
in interface Target<R extends Renderable>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |