|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractTarget<RenderableToPOVRay>
POVRayTarget
public class POVRayTarget
Constructor Summary | |
---|---|
POVRayTarget(PrintStream output)
|
Method Summary | |
---|---|
void |
append(double value)
|
void |
append(int value)
|
void |
append(String code)
provides direct write access to the generated source code. |
void |
appendMaterial(Material material)
|
void |
appendPolygon(VectorXYZ... vs)
|
void |
appendPrism(float y1,
float y2,
VectorXZ... vs)
|
void |
appendRGBColor(Color color)
adds a color. |
void |
appendTriangle(VectorXYZ a,
VectorXYZ b,
VectorXYZ c)
|
void |
appendTriangle(VectorXYZ a,
VectorXYZ b,
VectorXYZ c,
VectorXYZ na,
VectorXYZ nb,
VectorXYZ nc,
boolean smooth)
|
void |
appendVector(double x,
double z)
adds a vector to the String built by a StringBuilder. |
void |
appendVector(double x,
double y,
double z)
|
void |
appendVector(float x,
float y,
float z)
adds a vector to the String built by a StringBuilder. |
void |
appendVector(VectorXYZ vector)
alternative to appendVector(double, double)
using a vector object as parameter instead of individual coordinates |
void |
appendVector(VectorXZ vector)
alternative to appendVector(double, double)
using a vector object as parameter instead of individual coordinates |
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 |
drawColumn(Material material,
Integer corners,
VectorXYZ base,
VectorXYZ cap,
double radiusBottom,
double radiusTop,
boolean drawBottom,
boolean drawTop)
variant of drawColumn(Material, Integer, VectorXYZ, double, double, double, boolean, boolean)
that allows arbitrarily placed columns |
void |
drawPolygon(Material material,
VectorXYZ... vs)
|
void |
drawTriangles(Material material,
Collection<? extends TriangleXYZ> triangles)
|
void |
drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles)
|
void |
drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
boolean asMesh)
|
Class<RenderableToPOVRay> |
getRenderableType()
returns the renderable type designed for this target |
void |
render(RenderableToPOVRay renderable)
renders a renderable object to this target. |
Methods inherited from class AbstractTarget |
---|
beginObject, drawBox, drawTriangleFan, drawTriangleStrip, drawTriangleStrip |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public POVRayTarget(PrintStream output)
Method Detail |
---|
public Class<RenderableToPOVRay> getRenderableType()
Target
public void render(RenderableToPOVRay renderable)
Target
public void append(String code)
public void append(int value)
public void append(double value)
public void drawTriangles(Material material, Collection<? extends TriangleXYZ> triangles)
public void drawTrianglesWithNormals(Material material, Collection<? extends TriangleXYZWithNormals> triangles)
public void drawTrianglesWithNormals(Material material, Collection<? extends TriangleXYZWithNormals> triangles, boolean asMesh)
public void drawPolygon(Material material, VectorXYZ... vs)
drawPolygon
in interface Target<RenderableToPOVRay>
drawPolygon
in class AbstractTarget<RenderableToPOVRay>
public void drawColumn(Material material, Integer corners, VectorXYZ base, double height, double radiusBottom, double radiusTop, boolean drawBottom, boolean drawTop)
Target
drawColumn
in interface Target<RenderableToPOVRay>
drawColumn
in class AbstractTarget<RenderableToPOVRay>
corners
- number of corners; null creates a cylinder
for radiusBottom == radiusTop or (truncated) cone otherwisepublic void drawColumn(Material material, Integer corners, VectorXYZ base, VectorXYZ cap, double radiusBottom, double radiusTop, boolean drawBottom, boolean drawTop)
drawColumn(Material, Integer, VectorXYZ, double, double, double, boolean, boolean)
that allows arbitrarily placed columns
public void appendTriangle(VectorXYZ a, VectorXYZ b, VectorXYZ c)
public void appendTriangle(VectorXYZ a, VectorXYZ b, VectorXYZ c, VectorXYZ na, VectorXYZ nb, VectorXYZ nc, boolean smooth)
public void appendRGBColor(Color color)
public void appendMaterial(Material material)
public void appendVector(float x, float y, float z)
public void appendVector(double x, double y, double z)
public void appendVector(VectorXYZ vector)
appendVector(double, double)
using a vector object as parameter instead of individual coordinates
public void appendVector(double x, double z)
public void appendVector(VectorXZ vector)
appendVector(double, double)
using a vector object as parameter instead of individual coordinates
public void appendPolygon(VectorXYZ... vs)
vs
- polygon vertices; first and last should be equalpublic void appendPrism(float y1, float y2, VectorXZ... vs)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |