jpview.transforms
Class NormalMapOp

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

public class NormalMapOp
extends java.lang.Object
implements PixelTransformOp

The normal map operator displays the normal values of the PTM object as RGB. Red is the x-axis, Green is the y, and Blue is Z.

Author:
clyon

Constructor Summary
NormalMapOp()
           
 
Method Summary
 void clearCache()
          Not implemented for this class
 void forceUpdate()
          Not implemented for this class
 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
 void transformPixelsFast(int[] pixels, PTM ptm)
          Uses a sampling routine to speed up rendering
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalMapOp

public NormalMapOp()
Method Detail

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

transformPixelsFast

public void transformPixelsFast(int[] pixels,
                                PTM ptm)
Uses a sampling routine to speed up rendering

Parameters:
pixels - the pixel buffer
ptm - the source ptm

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 offset
mouseY - y mouse offset

release

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

Specified by:
release in interface PixelTransformOp

forceUpdate

public void forceUpdate()
Not implemented for this class

Specified by:
forceUpdate in interface PixelTransformOp

clearCache

public void clearCache()
Not implemented for this class

Specified by:
clearCache in interface PixelTransformOp