|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object AbstractTarget<RenderableToPOVRay> POVRayTarget
public class POVRayTarget
Field Summary |
---|
Fields inherited from class AbstractTarget |
---|
BOX_TEX_COORDS_1, BOX_TEX_COORDS_2, config |
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 |
appendDefaultParameterValue(String name,
String value)
|
void |
appendInverseVector(VectorXZ vector)
append a vector with inverted coordinates |
void |
appendMaterialDefinitions()
|
void |
appendMaterialOrName(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 |
appendTriangle(VectorXYZ a,
VectorXYZ b,
VectorXYZ c,
VectorXYZ na,
VectorXYZ nb,
VectorXYZ nc,
VectorXZ ta,
VectorXZ tb,
VectorXZ tc,
boolean smooth,
boolean texture)
|
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 |
drawConvexPolygon(Material material,
List<VectorXYZ> vs,
List<List<VectorXZ>> texCoordLists)
draws a convex polygon |
void |
drawTriangles(Material material,
Collection<? extends TriangleXYZ> triangles,
List<List<VectorXZ>> texCoordLists)
draws triangles. |
void |
drawTrianglesWithNormals(Material material,
Collection<? extends TriangleXYZWithNormals> triangles,
List<List<VectorXZ>> texCoordLists)
draws triangles with explicitly defined normal vectors. |
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, finish, setConfiguration |
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 appendDefaultParameterValue(String name, String value)
public void appendMaterialDefinitions()
public void drawTriangles(Material material, Collection<? extends TriangleXYZ> triangles, List<List<VectorXZ>> texCoordLists)
Target
texCoordLists
- one texture coordinate list per texture.
Each must have three coordinates per triangle.
Can be null if no texturing information is available.public void drawTrianglesWithNormals(Material material, Collection<? extends TriangleXYZWithNormals> triangles, List<List<VectorXZ>> texCoordLists)
Target
Target.drawTriangles(Material, Collection, List)
public void drawConvexPolygon(Material material, List<VectorXYZ> vs, List<List<VectorXZ>> texCoordLists)
Target
drawConvexPolygon
in interface Target<RenderableToPOVRay>
drawConvexPolygon
in class AbstractTarget<RenderableToPOVRay>
Target.drawTriangleStrip(Material, List, List)
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 appendTriangle(VectorXYZ a, VectorXYZ b, VectorXYZ c, VectorXYZ na, VectorXYZ nb, VectorXYZ nc, VectorXZ ta, VectorXZ tb, VectorXZ tc, boolean smooth, boolean texture)
public void appendRGBColor(Color color)
public void appendMaterialOrName(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 appendInverseVector(VectorXZ vector)
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 |