|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--marchingcubes.MCRenderer
| Field Summary | |
static java.awt.Color |
BKG_COLOR
|
static double |
DEFAULT_FOCAL
|
static java.awt.Color |
EDGE_COLOR
|
protected static java.awt.Graphics |
g
|
static java.awt.Color |
I_VERTEX_COLOR
|
static int |
LI_MODL_LAMBERT
|
static int |
LI_MODL_PHONG
|
protected static java.util.Vector |
lights
|
protected static int |
liModl
|
protected static marchingcubes.MCMaterial |
material
|
static java.awt.Color |
TEXT_COLOR
|
| Constructor Summary | |
MCRenderer()
|
|
| Method Summary | |
static void |
buildPrMatrix(double r)
builds the projection matrix |
static void |
clearZBuffer()
clears the depth buffer; should be called at the beginning of each new frame |
static void |
drawCircle(marchingcubes.MCVector4 center,
int size)
draws a circle in a 3D space |
static void |
drawLine(marchingcubes.MCVector3 v1,
marchingcubes.MCVector3 v2)
draws a line between two points of a 3D space |
static void |
drawString(marchingcubes.MCVector3 p,
java.lang.String s)
draws a string in the 3D space |
static void |
drawTriangleFlat(marchingcubes.MCVector3 v1,
marchingcubes.MCVector3 v2,
marchingcubes.MCVector3 v3,
marchingcubes.MCVector3 n)
draws a filled triangle using flat shading method |
static void |
setWindow(java.awt.Image img)
sets the size of the target window used when rendering |
static java.awt.Color |
vertexColor(int w)
computes the color of a vertex depending on its weight |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.awt.Color EDGE_COLOR
public static final java.awt.Color I_VERTEX_COLOR
public static final java.awt.Color TEXT_COLOR
public static final java.awt.Color BKG_COLOR
public static final double DEFAULT_FOCAL
public static final int LI_MODL_LAMBERT
public static final int LI_MODL_PHONG
protected static int liModl
protected static java.util.Vector lights
protected static marchingcubes.MCMaterial material
protected static java.awt.Graphics g
| Constructor Detail |
public MCRenderer()
| Method Detail |
public static void buildPrMatrix(double r)
r - focal valuepublic static void setWindow(java.awt.Image img)
img - image used for renderingpublic static void clearZBuffer()
public static java.awt.Color vertexColor(int w)
w - the weight of the vertex
public static void drawString(marchingcubes.MCVector3 p,
java.lang.String s)
p - position in the 3D spaces - string to display
public static void drawLine(marchingcubes.MCVector3 v1,
marchingcubes.MCVector3 v2)
public static void drawCircle(marchingcubes.MCVector4 center,
int size)
center - center of the circlesize - size of the circle
public static void drawTriangleFlat(marchingcubes.MCVector3 v1,
marchingcubes.MCVector3 v2,
marchingcubes.MCVector3 v3,
marchingcubes.MCVector3 n)
v1 - first vertex of the trianglev2 - second vertex of the trianglev3 - third trianglen - normal vector to the triangle
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||