|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sygem.jazz3d3.Shape
Base face class. Provides common functionality for faces.
Field Summary | |
int |
b
|
int |
g
|
int |
r
|
int |
vert1
|
int |
vert2
|
int |
vert3
|
int |
vert4
|
Constructor Summary | |
Shape(int v1,
int v2,
int v3,
int r,
int g,
int b)
Default constructor. |
Method Summary | |
boolean |
getDoubleSided()
Returns whether or not this face is double-sided. |
Vertex |
getFaceNormal()
Returns the normal vector for this face. |
Render |
getRenderer()
|
int |
getTransparency()
Get the transparency value of this face. |
double |
getU(int u,
boolean wrap)
Get the U value of a particular vertex in this face |
double |
getV(int v,
boolean wrap)
Get the V value of a particular vertex in this face |
int |
getVertexID(int vert)
Returns a vertex ID from this face. |
void |
setColour(int r,
int g,
int b)
Set the colour of this face. |
void |
setDoubleSided(boolean ds)
Set this face to be double-sided (culling not applied). |
void |
setFaceNormal(Vertex norm)
Set the normal vector for this face. |
void |
setRenderer(Render r)
|
void |
setTransparency(int tr)
Set the transparency value of this face. |
void |
setUV(double u1,
double v1,
double u2,
double v2,
double u3,
double v3,
double u4,
double v4)
Set the UV coordinates of a face. |
void |
setWrapUV(double u1,
double v1,
double u2,
double v2,
double u3,
double v3,
double u4,
double v4)
Set the UV coordinates of a face when using UV wrapping. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int b
public int g
public int r
public int vert1
public int vert2
public int vert3
public int vert4
Constructor Detail |
public Shape(int v1, int v2, int v3, int r, int g, int b)
Method Detail |
public final boolean getDoubleSided()
public final Vertex getFaceNormal()
setFaceNormal(com.sygem.jazz3d3.Vertex)
public final Render getRenderer()
public final int getTransparency()
Note: This is only used by the transparent renderer.
RenderTransparent
public final double getU(int u, boolean wrap)
u
- A value between 1 & 4 - the vertex being queriedwrap
- Set to true if you want the UV wrapping co-ordpublic final double getV(int v, boolean wrap)
v
- A value between 1 & 4 - the vertex being queriedwrap
- Set to true if you want the UV wrapping co-ordpublic final int getVertexID(int vert)
public final void setColour(int r, int g, int b)
r
- The red component of the new colour (0 - 255)g
- The green component of the new colour (0 - 255)b
- The blue component of the new colour (0 - 255)Object3d.setFaceColour(int, int, int, int)
public final void setDoubleSided(boolean ds)
public final void setFaceNormal(Vertex norm)
norm
- The new face normalgetFaceNormal()
public final void setRenderer(Render r)
public final void setTransparency(int tr)
Note: This is only used by the transparent renderer.
RenderTransparent
public final void setUV(double u1, double v1, double u2, double v2, double u3, double v3, double u4, double v4)
public final void setWrapUV(double u1, double v1, double u2, double v2, double u3, double v3, double u4, double v4)
public java.lang.String toString()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |