jpview.transforms
Interface PixelTransformOp

All Known Implementing Classes:
DiffuseGainOp, DirectionalLightOp, EnvironmentMapOp, LocalLightOp, NormalMapOp, SpecularOp

public interface PixelTransformOp

The pixel transform operator provides the contract for operators which read the PTM data and modify it for display

Author:
clyon

Method Summary
 void clearCache()
          For operators that cache information, this method clears the contents of the cache
 void forceUpdate()
          For operators that cache or otherwise try to be smart about performance, this method will bypass optimizations.
 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
 

Method Detail

transformPixels

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

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

transformPixels

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

Parameters:
pixels - the pixel buffer for display
ptm - the source ptm object
mouseX - x mouse offset
mouseY - y mouse offset

forceUpdate

void forceUpdate()
For operators that cache or otherwise try to be smart about performance, this method will bypass optimizations.


release

void release()
Releases all resources associated with this object


clearCache

void clearCache()
For operators that cache information, this method clears the contents of the cache