|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.primitives.Mesh.MeshFile
public static class Mesh.MeshFile
| Constructor Summary | |
|---|---|
Mesh.MeshFile()
|
|
| Method Summary | |
|---|---|
RGB |
getColorAt(Vector point)
Returns the color of this Surface object at the specified point as an RGB object. |
String |
getFile()
|
int |
getFormat()
|
Vector |
getNormalAt(Vector point)
Returns a Vector object that represents the vector normal to the 3d surface at the point represented by the specified Vector object. |
boolean |
getShadeBack()
Returns true if the back side of this Surface object should be shaded. |
boolean |
getShadeFront()
Returns true if the front side of this Surface object should be shaded. |
Surface |
getSurface()
|
String |
getURL()
|
boolean |
intersect(Ray ray)
Returns true if the ray intersects the 3d surface in real space. |
Intersection |
intersectAt(Ray ray)
Returns an Intersection object that represents the values for t that solve the vector equation p = o + t * d where p is a point of intersection of the specified ray and the surface. |
void |
setFile(String f)
|
void |
setFormat(int f)
|
void |
setSurface(Surface s)
|
void |
setURL(String url)
|
RGB |
shade(ShaderParameters p)
Returns an RGB object representing the color of this surface at the specified point based on the specified parameters. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Mesh.MeshFile()
| Method Detail |
|---|
public void setFile(String f)
public String getFile()
public void setFormat(int f)
public int getFormat()
public void setURL(String url)
public String getURL()
public void setSurface(Surface s)
public Surface getSurface()
getSurface in interface SurfaceWrapperpublic boolean getShadeFront()
Surface
getShadeFront in interface Surfacepublic boolean getShadeBack()
Surface
getShadeBack in interface Surfacepublic RGB getColorAt(Vector point)
Surface
getColorAt in interface Surfacepublic Vector getNormalAt(Vector point)
Surface
getNormalAt in interface Surfacepublic boolean intersect(Ray ray)
Surface
intersect in interface Surfacepublic Intersection intersectAt(Ray ray)
Surface
intersectAt in interface Surfacepublic RGB shade(ShaderParameters p)
Surface
shade in interface SurfaceShader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||