|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjpview.transforms.LocalLightOp
public class LocalLightOp
The local operator simulates a point light that is a configurable distance from the PTM
| Constructor Summary | |
|---|---|
LocalLightOp()
|
|
| Method Summary | |
|---|---|
void |
clearCache()
Not implemented for this class |
void |
createLengthLookup()
Creates a cache of lenght lookups for computing the lighting effect at each pixel |
void |
forceUpdate()
Not implemented for this class |
void |
release()
Releases all resources associated with this object |
void |
setFlashlight(boolean b)
Turn the flashlight effect on if true; otherwise off. |
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 |
| Constructor Detail |
|---|
public LocalLightOp()
| Method Detail |
|---|
public void setFlashlight(boolean b)
b - flag - if true, flashlight effect is onpublic void createLengthLookup()
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 ptmpublic void release()
release in interface PixelTransformOppublic void forceUpdate()
forceUpdate in interface PixelTransformOppublic void clearCache()
clearCache in interface PixelTransformOp
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||