|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpview.transforms.SpecularOp
public final class SpecularOp
Uses Phong lighting to simulate a shiny metallic surface
| Field Summary | |
|---|---|
Vec3f[] |
normals
A reference to the array of normals used for lighting calculations |
| Constructor Summary | |
|---|---|
SpecularOp()
|
|
| Method Summary | |
|---|---|
void |
clearCache()
Clears the mouse location cache and piecewise approximation of the specular term |
void |
forceUpdate()
Bypasses optimizations and forces a complete update |
void |
release()
Releases all resources associated with this object |
void |
transformPixels(int[] pixels,
PTM ptm)
Transforms pixels using the default mouse location |
void |
transformPixels(int[] pixels,
PTM ptm,
int mouseX,
int mouseY)
Transforms pixels using the given mouse location. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Vec3f[] normals
| Constructor Detail |
|---|
public SpecularOp()
| Method Detail |
|---|
public void forceUpdate()
forceUpdate in interface PixelTransformOppublic void clearCache()
clearCache in interface PixelTransformOppublic void release()
release in interface PixelTransformOp
public void transformPixels(int[] pixels,
PTM ptm,
int mouseX,
int mouseY)
transformPixels in interface PixelTransformOppixels - the pixel bufferptm - the source ptmmouseX - x mouse offsetmouseY - y mouse offset
public void transformPixels(int[] pixels,
PTM ptm)
transformPixels in interface PixelTransformOppixels - the pixel bufferptm - the source ptm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||