|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.surfaceUI.AbstractSurfaceUI
public abstract class AbstractSurfaceUI
AbstractSurfaceUI is an abstract implementation of the SurfaceUI interface that takes care of all of the standard methods of SurfaceUI that all SurfaceUI implementations use in the same way. The name is "Surface" by default.
| Constructor Summary | |
|---|---|
AbstractSurfaceUI()
Sets all values to the default. |
|
AbstractSurfaceUI(AbstractSurface surface)
Sets the underlying AbstractSurface object of this AbstractSurfaceUI to the specified AbstractSurface object. |
|
AbstractSurfaceUI(AbstractSurface surface,
String name)
Sets the underlying AbstractSurface object of this AbstractSurfaceUI to the specified AbstractSurface object and sets the name to the specified String object. |
|
| Method Summary | |
|---|---|
RGB |
getColorAt(Vector point)
Returns the color of this AbstractSurfaceUI at the specified point as an RGB object. |
Dialog |
getDialog()
Returns null. |
Icon |
getIcon()
|
String |
getName()
Returns the name of this AbstractSurfaceUI as a String object. |
Vector |
getNormalAt(Vector point)
Returns a Vector object that represents the vector normal to this surface at the point represented by the specified Vector object. |
boolean |
getShadeBack()
Returns the value returned by the getShadeBack() method of the underlying AbstractSurface stored by this AbstractSurfaceUI. |
boolean |
getShadeFront()
Returns the value returned by the getShadeFront() method of the underlying AbstractSurface stored by this AbstractSurfaceUI. |
Surface |
getSurface()
Returns the underlying AbstractSurface object stored by this AbstractSurfaceUI. |
boolean |
hasDialog()
Returns false. |
boolean |
intersect(Ray ray)
Returns true if the ray represented by the specified Ray object intersects the surface represented by this AbstractSurfaceUI in real space. |
Intersection |
intersectAt(Ray ray)
Returns an Intersection object representing the point along the ray represented by the specified Ray object that intersection between the ray and the surface represented by this AbstractSurfaceUI occurs. |
void |
setName(String name)
Sets the name of this AbstractSurfaceUI to the specified String object. |
void |
setParent(SurfaceGroup parent)
Sets the parent of the underlying AbstractSurface object stored by this AbstractSurfaceUI. |
void |
setSurface(AbstractSurface surface)
Sets the underlying AbstractSurface object stored by this AbstractSurfaceUI to the specified AbstractSurface object. |
RGB |
shade(ShaderParameters parameters)
Returns the value of shade() obtained from the AbstractSurface object stored by this AbstractSurfaceUI. |
String |
toString()
Returns the name of this AbstractSurfaceUI as a String object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.j3d.threeD.raytracer.surfaceUI.SurfaceUI |
|---|
draw, getType |
| Constructor Detail |
|---|
public AbstractSurfaceUI()
public AbstractSurfaceUI(AbstractSurface surface)
public AbstractSurfaceUI(AbstractSurface surface,
String name)
| Method Detail |
|---|
public boolean getShadeFront()
getShadeFront in interface Surfacepublic boolean getShadeBack()
getShadeBack in interface Surfacepublic void setName(String name)
setName in interface SurfaceUIpublic String getName()
getName in interface SurfaceUIpublic boolean hasDialog()
hasDialog in interface SurfaceUIpublic Dialog getDialog()
getDialog in interface SurfaceUIpublic Icon getIcon()
getIcon in interface SurfaceUIpublic void setParent(SurfaceGroup parent)
parent - The new parentpublic void setSurface(AbstractSurface surface)
public Surface getSurface()
getSurface in interface SurfaceWrapperpublic String toString()
toString in class Objectpublic RGB getColorAt(Vector point)
getColorAt in interface Surfacepublic Vector getNormalAt(Vector point)
getNormalAt in interface Surfacepublic boolean intersect(Ray ray)
intersect in interface Surfacepublic Intersection intersectAt(Ray ray)
intersectAt in interface Surfacepublic RGB shade(ShaderParameters parameters)
shade in interface SurfaceShader
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||