jpview.transforms
Class DirectionalLightOp

java.lang.Object
  extended by jpview.transforms.DirectionalLightOp
All Implemented Interfaces:
PixelTransformOp

public class DirectionalLightOp
extends java.lang.Object
implements PixelTransformOp

The directional light simulates the effect of light from an infinite distance

Author:
clyon

Constructor Summary
DirectionalLightOp()
           
 
Method Summary
 void clearCache()
          Inherited method not implemented for this operator
 void forceUpdate()
          Inherited method not implemented for this operator
 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
 

Constructor Detail

DirectionalLightOp

public DirectionalLightOp()
Method Detail

transformPixels

public void transformPixels(int[] pixels,
                            PTM ptm,
                            int mouseX,
                            int mouseY)
Transforms pixels using the given mouse location

Specified by:
transformPixels in interface PixelTransformOp
Parameters:
pixels - the pixel buffer
ptm - the source ptm
mouseX - x mouse offet
mouseY - y mouse offset

transformPixels

public void transformPixels(int[] pixels,
                            PTM ptm)
Transforms pixels using the default mouse location

Specified by:
transformPixels in interface PixelTransformOp
Parameters:
pixels - the pixel buffer
ptm - the source ptm

release

public void release()
Releases all resources associated with this object

Specified by:
release in interface PixelTransformOp

forceUpdate

public void forceUpdate()
Inherited method not implemented for this operator

Specified by:
forceUpdate in interface PixelTransformOp

clearCache

public void clearCache()
Inherited method not implemented for this operator

Specified by:
clearCache in interface PixelTransformOp